docs(weave): add Bedrock Agents integration guide#2616
Conversation
Add a new Weave integration page for Amazon Bedrock Agents under the Frameworks group, mirroring the structure of the existing Bedrock and agent-framework integration docs. Covers tracing invoke_agent calls via patch_client, wrapping calls with weave.op, and grouping multi-turn sessions with weave.thread. Jira: DOCS-2514 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sources and decision logSources
Decisions
Intentionally omitted
Needs SME verification
Related
Resume prompt
{
"skill": "docs",
"version": "unknown",
"depends_on": "unknown",
"model": "claude-opus-4-7",
"note": "versions.json not present in the skill folder at runtime"
} |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
📚 Mintlify Preview Links✨ Added (1 total)📄 Pages (1)
📝 Changed (1 total)⚙️ Other (1)
🤖 Generated automatically when Mintlify deployment succeeds |
🔗 Link Checker Results✅ All links are valid! No broken links were detected. Checked against: https://wb-21fd5541-dbrian-docs-2514-bedrock-agents.mintlify.app |
anastasiaguspan
left a comment
There was a problem hiding this comment.
looks good! is this part of the agent launch at EOM?
|
|
||
| ## Installation | ||
|
|
||
| Install Weave and the AWS SDK: |
There was a problem hiding this comment.
| Install Weave and the AWS SDK: | |
| Install Weave and the AWS SDK for Python: |
There was a problem hiding this comment.
there are 11+ AWS SDKs :) this is more specific
|
|
||
| - A W&B API key. For more information, see [API keys](/platform/app/settings-page/user-settings#api-keys). | ||
| - AWS credentials configured for an account with access to Bedrock Agents (see [Authentication](https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html)). | ||
| - An existing Bedrock agent and alias. Note the `agentId` and `agentAliasId`. You can return a list of agents associated with your ID by running the following AWS CLI command, replacing `<your-region>` with the region slug your agent resides in: |
There was a problem hiding this comment.
confused by this note? where am i to note these, i don't see them mentioned elsewhere
| ## Prerequisites | ||
|
|
||
| - A W&B API key. For more information, see [API keys](/platform/app/settings-page/user-settings#api-keys). | ||
| - AWS credentials configured for an account with access to Bedrock Agents (see [Authentication](https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html)). |
There was a problem hiding this comment.
| - AWS credentials configured for an account with access to Bedrock Agents (see [Authentication](https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html)). | |
| - AWS credentials configured for an account with access to Bedrock Agents (see [Identity and access management for Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/security-iam.html)). |
There was a problem hiding this comment.
makes it clearer to user they're linking out from us
| ask_agent(prompt, session_id=t.thread_id) | ||
| ``` | ||
|
|
||
| Weave displays each turn in the UI as individual rows in the Threads view. |
There was a problem hiding this comment.
is this a new page coming in the new Agents section of the UI?
| - The underlying foundation model used by the agent (extracted from the orchestration trace). | ||
| - Token usage (`prompt_tokens`, `completion_tokens`, `total_tokens`) when reported by the agent. | ||
|
|
||
| Foundation model and token usage are extracted from `orchestrationTrace` events, which Bedrock only emits when `invoke_agent` is called with `enableTrace=True`. Without this flag, traces still capture the inputs and the generated response text, but the foundation model falls back to `bedrock-agent:<agentId>` and token counts are unavailable. |
There was a problem hiding this comment.
| Foundation model and token usage are extracted from `orchestrationTrace` events, which Bedrock only emits when `invoke_agent` is called with `enableTrace=True`. Without this flag, traces still capture the inputs and the generated response text, but the foundation model falls back to `bedrock-agent:<agentId>` and token counts are unavailable. | |
| The foundation model and token usage are extracted from `orchestrationTrace` events, which Bedrock only emits when `invoke_agent` is called with `enableTrace=True`. Without this flag, traces still capture the inputs and the generated response text, but the foundation model falls back to `bedrock-agent:<agentId>` and token counts are unavailable. |
|
|
||
| Foundation model and token usage are extracted from `orchestrationTrace` events, which Bedrock only emits when `invoke_agent` is called with `enableTrace=True`. Without this flag, traces still capture the inputs and the generated response text, but the foundation model falls back to `bedrock-agent:<agentId>` and token counts are unavailable. | ||
|
|
||
| ## Wrap an agent call with `weave.op` |
There was a problem hiding this comment.
MOre of a philosophical question, but although this topic header is not wrong, and i often write them the same way (as does ai), it seems more like the answer than what the user is wanting to know. i wonder if "Nest related agent calls together" might be the scenario they'd be searching/scanning for? (i also wonder if this is something we could improve on the plugin)
Summary
weave/guides/integrations/bedrock_agents.mdx.invoke_agentcalls viapatch_client, wrapping calls with@weave.op, and grouping multi-turn sessions withweave.thread.docs.json, alongside other agent-orchestration integrations (openai_agents,claude_agent).Jira: DOCS-2514
Supersedes #2615 (that branch had unrelated MCP-server commits mixed in).
Test plan
🤖 Generated with Claude Code