Changed:
- Google ADK plugin - When guardrails are required, the plugin refuses Gemini models on the Interactions API, and accepts HTTP options only as
httpOptions, nothttp_options. See usage
The SDK is renamed to Switch Trust.Changed:
- New package and class names - Install
@sandboxaq/switch-trust-sdk-ts. Classes are namedSwitchTrust*, such asSwitchTrustClient. Settings useSWITCH_TRUST_*environment variables, and for any one that isn’t set, the SDK still reads the matchingFLINTAI_*variable. See installation - Default gateway hosts - The SDK now also allows
api.switchagents.aiby default - License - The package is licensed under Apache 2.0 with a Commons Clause condition, set out in the
LICENSEfile it includes. Every@sandboxaq/flintai-sdk-tsrelease was published under Apache 2.0
- LangChain middleware -
LangChainGuardrailsMiddleware, from@sandboxaq/switch-trust-sdk-ts/plugins/langchain, routes a LangChain agent built withcreateAgentthrough the gateway.langchainis a new optional peer dependency - Turn IDs from the ADK plugin - The Google ADK plugin now sends a turn ID with each request
The last release as
@sandboxaq/flintai-sdk-ts, which is now deprecated.Breaking:- Google ADK plugin - The plugin uses the camelCase names Google ADK expects. Set the gateway with
httpOptions.baseUrl, and write the model callback asbeforeModelCallback({ context, request })rather than(callbackContext, llmRequest). Code wired the 0.3.1 way needs updating
- Default gateway hosts - The SDK now also allows
api.flintai.devby default - LangChain models -
wrap()now works on a LangChain model before its client is built. In 0.3.1 it threw an error asking for the model to be fully initialized shutdown()- Restores LangChain models you wrapped
Documentation update. The README install and import examples now use the scoped package name,
@sandboxaq/flintai-sdk-ts. No changes to the API or behavior.Initial public release of the Switch Trust TypeScript SDK.Added:
wrap()- Wrap an existing LLM client with one function call to route its traffic through the Switch Trust gateway, so you can see its sessions and apply guardrails to its responses. Your prompts, model choice, and the rest of your code stay as they are. See usage- Provider integrations - OpenAI, Anthropic, and Google GenAI clients, plus LangChain chat models and a Google ADK plugin. See integrations
- Optional peer dependencies - The base package has no runtime dependencies. Each provider library is an optional peer, loaded only when you route through that provider, and
wrap()checks the installed version at runtime. See installation - Environment and inline configuration - Set the gateway URL, API key, and optional policy through environment variables, a
.envfile, or arguments towrap(). See configuration - Node.js 18 or later

