Skip to content

v1.4.7

Choose a tag to compare

@dalehurley dalehurley released this 08 Feb 09:20
· 3 commits to master since this release

Enhancement

Dynamic tool management at runtime via AgentContext

Added addTool() and removeTool() methods to AgentContext, allowing tools to be added or removed dynamically during agent execution. This enables more flexible workflows where the available toolset can change based on context or intermediate results.

Changes

  • AgentContext::addTool() — register a new tool so it is included in subsequent API calls
  • AgentContext::removeTool() — remove a tool so it is excluded from future API calls
  • Added type annotations to the tools property for better IDE support
  • Updated ToolExecutionTrait to source tools from the context's current tool list

Upgrade

composer update claude-php/agent

No breaking changes. Drop-in replacement for v1.4.6.