Releases: aws-samples/sample-strands-code-agent
Releases · aws-samples/sample-strands-code-agent
v0.3.0
AgentCore Code Interpreter — Remote Python execution via Amazon Bedrock AgentCore
- New
AgentCorePythonInterpreterclass for executing code in managed sandbox environments - Lazy session management, streaming response parsing, automatic cleanup
- Domain-specific functions/classes automatically serialized and sent to remote sessions
python_interpreter_kwargsparameter added toCodeAgentfor interpreter configuration- Install with:
pip install strands-code-agent[agentcore]
Knowledge Module — Navigate large structured documents with CodeAgent
OKFBundleclass: hierarchical navigator for Open Knowledge Format bundles- 4-method agent API:
find(),read(),children(),toc() pdf_to_okf_bundle(): convert structured PDFs to OKF bundles using TOC bookmarksSearchIndexabstraction with keyword search (AND + OR fallback) as default- Pluggable search backend for custom implementations (e.g., embedding-based)
- See
examples/pdf_to_okf_bundle/for a complete example with a 2500+ page PDF
v0.2.0 — CodeAgentCallbackHandler & usability improvements
What's New
- CodeAgentCallbackHandler: A rich-formatted callback handler that pretty-prints agent messages, code executions, and tool results to the terminal. Enabled by default.
- Agent response metrics utility: New helper function to retrieve token usage and performance metrics from an agent response.
- Increased default timeout: Code execution timeout raised from 60s to 180s.