Skip to content

v0.2.0

Compare
Choose a tag to compare
@Unshure Unshure released this 02 Jul 21:28
· 120 commits to main since this release
d601615

Minor Version Bump to v0.2.0

For this minor version bump, we are introducing a number of backwards-incompatible changes. Leading up to the 1.0.0 release of the SDK, we are incrementally releasing backwards-incompatible changes to align with our vision of the 1.0.0 interface. These changes are meant to fix deficiencies that were part of our initial implementation, or to make Strands easier to understand and use. Below are a list of these changes, and steps to migrate your code if they affect you:

  • Use region from boto3 session when possible (#299)
    • This change updates the region behavior of the BedrockModelProvider to better align with the Boto3 default region behavior instead of us-west-2.
  • refactor: remove kwargs spread after agent call (#289)
    • Previously, strands used certain parameters that were passed into the agent invocation call. For example, agent("Hello!", system_prompt="Some New Prompt") would previously override the system prompt defined during the agent’s initialization. Now, this behavior has been removed, so you can alter the agent’s system prompt by overriding the agents system_prompt attribute.
      • Before: agent("Hello!", system_prompt="Some New Prompt")
      • After: agent.system_prompt = "Some New Prompt"
  • Remove FunctionTool (#325)
    • Previously, FunctionTool was deprecated in favor of DecoratedFunctionTool but it was kept in for backwards compatibility. This removes the FunctionTool class in favor of using the @tool decorator. Check out the strands agents tool documentation for instructions on building a tool.
  • Implement native async iterator support (#83)
    • #295: We no longer yield any callback events carried out in tool invocations from stream_async.
    • #323: callback_handler is no longer passed to tools.
  • refactor tracer (#286)

What's Changed

New Contributors

Full Changelog: v0.1.9...v0.2.0