strands-agents/sdk-python

[FEATURE] Tool Replacement

Opened this issue · 2 comments

Problem Statement

Critical for zero-downtime updates when APIs change, tools have bugs, or performance optimizations are needed. Agent sessions break when underlying services fail, requiring manual intervention and causing customer frustration

Proposed Solution

Dynamic tool registry updates with atomic swapping of function references in the agent's tool namespace - new tool implementations replace existing ones mid-session without breaking the agent loop execution.

Use Case

Dynamic tool registry updates with atomic swapping of function references in the agent's tool namespace - new tool implementations replace existing ones mid-session without breaking the agent loop execution.

Alternatives Solutions

No response

Additional Context

No response

This makes sense as a feature on the tool_registry (maybe .replace), though we should document that this won't take effect until the next agent invocation.

Hello, I would like to contribute to this if your not working on it @enitinb.