Skip to main content

Agent Observability Python Framework Module: Strands Agents

agento11y-strands provides a Strands HookProvider bridge that maps agent, model, and tool lifecycle events into agento11y generation and tool recording.

Installation

pip install agento11y agento11y-strands
pip install strands-agents

Quickstart

from agento11y import Client
from agento11y_strands import with_agento11y_strands_hooks
from strands import Agent

client = Client()
agent_config = with_agento11y_strands_hooks(
    {"name": "support-agent"},
    client=client,
    provider_resolver="auto",
)

agent = Agent(**agent_config)
agent(
    "Explain what LLM observability is in one sentence.",
    invocation_state={"conversation_id": "demo-strands"},
)

client.shutdown()

Existing Agents

from agento11y import Client
from agento11y_strands import with_agento11y_strands_hooks

client = Client()
with_agento11y_strands_hooks(agent, client=client, provider_resolver="auto")

Conversation Mapping

Conversation ID precedence:

  1. conversation_id / session_id / group_id from Strands invocation_state
  2. thread_id from Strands invocation_state
  3. deterministic fallback agento11y:framework:strands:<run_id>

Pass a stable value per user conversation:

agent("Remember my timezone is UTC+1.", invocation_state={"conversation_id": "customer-42"})
agent("What timezone did I give you?", invocation_state={"conversation_id": "customer-42"})

Metadata and Lineage

Required framework tags:

  • agento11y.framework.name=strands
  • agento11y.framework.source=hooks
  • agento11y.framework.language=python

Metadata includes:

  • required: agento11y.framework.run_type
  • optional: agento11y.framework.run_id, agento11y.framework.thread_id, agento11y.framework.parent_run_id, agento11y.framework.component_name, agento11y.framework.event_id

Provider Resolver

Resolver order: explicit provider option -> Strands model config metadata -> model prefix inference -> custom.

For Bedrock model IDs that do not infer cleanly, pass provider="anthropic" or another provider value when creating the hook provider.

Troubleshooting

  • If conversations are fragmented, pass stable conversation_id or session_id in invocation_state.
  • If provider is inferred as custom, set provider="openai" / provider="anthropic" / provider="gemini" on hook creation.
  • Always call client.shutdown() during teardown.

Metadata

Release files for agento11y-strands 0.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agento11y-strands 0.15.0
File Size Uploaded
agento11y_strands-0.15.0.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agento11y-strands 0.15.0
File Interpreter ABI Platform
agento11y_strands-0.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / agento11y_strands-0.15.0.tar.gz

Download URL agento11y_strands-0.15.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
92d1cf8616a8b2bec21d747a4daf40557ce75aa4e0e474b94dd741b03c2b7d5c
BLAKE2b-256 checksum
How to use checksums
abed274559b8b47369a559a862129e00388cbeeecbedc3c6a6af47a030d97f6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / agento11y_strands-0.15.0-py3-none-any.whl

Download URL agento11y_strands-0.15.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f565d70059e9c3d794f1a5b4026eb7dba9b141cda86209b24e34abd0bf5f751c
BLAKE2b-256 checksum
How to use checksums
bb0ac326a34102289229e79195a00f03de360f9e7a05922c2b0bccfa7b56801e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

This release

0.15.0 This release

2 release files

0.14.0

2 release files

0.12.0

2 release files

0.10.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page