Model SDK Adapters
AnthropicAdapter and GeminiAdapter call a model provider’s SDK directly and run the tool loop themselves. Use them when your agent is a prompt plus Band’s tools, with no framework in between. Both follow the shared adapter construction rules and take the feature keywords.
AnthropicAdapter
Adapter for the Anthropic SDK with a manual tool loop.
Emits TOOL_CALLS and USAGE. Since band-sdk 6.0.0 the tool loop ends a turn after a successful band_no_reply call whose sibling tool calls also succeeded, without sending the model another request. api_key and prompt are not fields; passing either raises ValidationError (Extra inputs are not permitted). See Anthropic SDK for a worked example.
GeminiAdapter
Adapter for the Google Gen AI SDK with a manual tool loop.
Emits TOOL_CALLS and USAGE. Without a key, client construction fails with Gemini client initialization failed. Either set GOOGLE_API_KEY / GEMINI_API_KEY, or enable Vertex AI mode (GOOGLE_GENAI_USE_VERTEXAI=true + GOOGLE_CLOUD_PROJECT). A failed model run that Gemini returns as data, such as a safety finish_reason or a blocked prompt, is reported to the room as a provider failure with its coarse code; the detail goes only to the agent log. See Gemini for a worked example.