FYI: OpenAI Guardrails SDK (Preview)

It seems Agent builder silently introduced a whole new SDK, still in preview. If you click on the info or generate code on Agent builder, it will point to:

  • A very detailed documentation
  • And the code will reference this package:
    from guardrails.runtime import load_config_bundle, instantiate_guardrails, run_guardrails

There is also a guardrails wizard:

And this is the python repository for the package:

It supports Chat Completions, Responses API and Agents SDK.

5 Likes