ToolInjectionStrategy

Strategy for dynamically injecting tools during a conversation.

Implementations examine tool call results and conversation state to determine if tools should be added or removed.

This interface is designed for extensibility. Strategies include:

  • Conditional unlocks based on agent performance

  • Phase-based tools (planning vs execution)

  • Skill acquisition patterns

  • MatryoshkaTool progressive disclosure

Migration Guide

New implementations should override evaluate instead of evaluateToolResult. The evaluate method supports both adding and removing tools.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Called after each tool execution to determine tool changes.

Link copied to clipboard

Legacy method for backward compatibility. Override evaluate instead for new implementations.