feat: refactor the tool specifications
- Deprecate AsyncToolSpecification in favor of AsyncToolCallSpecification
- Deprecate SyncToolSpecification in favor of SyncToolCallSpecification
- Tool handlers now receive CallToolRequest instead of raw arguments to
enable access to additional metadata parameters like progressToken
- Add toolCall() and toolCalls() builder methods alongside deprecated variants
- Update addTool() methods to support new tool call specifications
- Maintain backward compatibility through deprecation annotations
- Add tests for new tool call functionality
This change allows tool handlers to process additional metadata parameters
from the full CallToolRequest object, enabling features like progress tracking.
Signed-off-by:
Christian Tzolov <christian.tzolov@broadcom.com>
Loading
Please sign in to comment