Application safeguards (TypeScript)
Validate input and tool arguments in your application, restrict credentials, and handle API errors. Do not assume the SDK provides the formerly documented client.guardrails management methods.
This guide uses the official OpenAI client with TheRouter; it is not a TheRouter-owned SDK. The therouter and @therouter/sdk packages previously named here are not currently published in the public package registries.