Skip to content

Releases: aws-samples/sample-strands-code-agent

v0.3.0

29 Jun 12:49

Choose a tag to compare

AgentCore Code Interpreter — Remote Python execution via Amazon Bedrock AgentCore

  • New AgentCorePythonInterpreter class 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_kwargs parameter added to CodeAgent for interpreter configuration
  • Install with: pip install strands-code-agent[agentcore]

Knowledge Module — Navigate large structured documents with CodeAgent

  • OKFBundle class: 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 bookmarks
  • SearchIndex abstraction 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

02 Jun 10:46

Choose a tag to compare

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.

v0.1.0

14 May 08:54

Choose a tag to compare

Initial release