AWS Strands connector: targeted version and verified APIs¶
Package: strands-agents (published by AWS). Targeted: 1.65.0 (extra
credencestack[strands], pinned >=1.65,<2). Checked against the installed source on
2026-11-22.
APIs used, as found in 1.65.0¶
| Need | API in 1.65.0 | Where |
|---|---|---|
| Agent | strands.Agent(model=, tools=, system_prompt=, name=, hooks=, callback_handler=None); agent(prompt) returns an AgentResult (stop_reason, interrupts) |
strands/agent/agent.py, agent_result.py |
| Native tools | strands.tools.tools.PythonAgentTool(name, spec, func); spec = {"name", "description", "inputSchema": {"json": <schema>}}; func(tool_use, **kwargs) -> {"toolUseId", "status", "content": [{"text"}]} |
strands/tools/tools.py |
| Events | HookProvider.register_hooks(registry); BeforeToolCallEvent (cancel_tool), BeforeModelCallEvent (cancel), AfterModelCallEvent (stop_response.message) |
strands/hooks/events.py |
| Human in the loop | event.interrupt(name, reason=...) in a BeforeToolCallEvent hook; the run returns stop_reason="interrupt" with result.interrupts; resume with agent([{"interruptResponse": {"interruptId": id, "response": ...}}]) |
strands/types/interrupt.py, strands/interrupt.py |
| Stop | Agent.cancel(message=...), thread-safe; the run returns stop_reason="cancelled" |
strands/agent/agent.py |
| Offline model | a strands.models.model.Model subclass whose stream() yields Converse-style events (messageStart, contentBlockStart/Delta/Stop, messageStop, metadata) |
strands/models/model.py, strands/types/streaming.py |
Differences from the plan's hints¶
- Tools:
PythonAgentToolrather than the@tooldecorator, because the decorator builds its schema from a Python signature and CredenceStack's schemas are JSON. Both are native Strands tools. - Events: the hooks system, not the callback handler or OpenTelemetry.
- Token usage: Strands adds a call's usage to
event_loop_metrics.accumulated_usageafterAfterModelCallEvent, so the connector settles each call's usage at the next model call or at the end of the run and adds it to that call'smodel_callevent. - Multi-agent: the connector drives one
Agentand recordsmeta.actorfor every agent that carries its hooks (sub-agents get them through the factory'shooksargument). Graphs and swarms (strands.multiagent) are not driven directly in v1. - Bedrock: a model id string uses Strands' default provider (Amazon Bedrock), which needs AWS credentials; offline runs use the scripted model and need none.
- Dependency note:
strands-agents1.65 needswatchdog<7;google-adk2.15 needswatchdog>=7, so theadkextra resolves togoogle-adk2.14.1 when both are installed.