Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved tool calling #7

Merged
merged 6 commits into from
Mar 23, 2025
Merged

Improved tool calling #7

merged 6 commits into from
Mar 23, 2025

Conversation

GabrielOlvH
Copy link
Owner

@GabrielOlvH GabrielOlvH commented Mar 19, 2025

  • Deserialization for typed parameters
  • Extensive and flexible validation for parameters
  • Behavior for failed deserialization or validation
  • Chained tool calling
  • Replace single message return with callback to process all messages

🔧 refactor(ParamsInstance): Implemented parsing and conversion methods
🔧 refactor(JsonUtils): Added utility methods for JSON parsing and schema generation
🔧 refactor(ValidationRules): Implemented various validation rules for properties
🔧 refactor(TypedTool): Updated to work with ParamsInstance and added schema generation functionality
🔧 refactor(TypedToolBuilder): Updated to work with ParamsClass
🔧 refactor(ToolResult): Added validation errors field and updated execution logic
🔄 refactor(typed): rename ParamsInstance to ToolParametersInstance
🔨 refactor(validation): change ParamsInstance to ToolParametersInstance
🔨 refactor(json): change ParamsInstance to ToolParametersInstance
@GabrielOlvH GabrielOlvH changed the title Feature/typed tools Implement typed tools Mar 19, 2025
- Refactored tool execution and message processing for better readability
- Improved handling of chained tool calls and responses
- Updated model version for LLMProvider to 'llama-3.3-70b-specdec'
- Removed unnecessary calculation in HandoffTesting.kt
- Merged tool execution and message processing functions for efficiency
@GabrielOlvH GabrielOlvH changed the title Implement typed tools Improved tool calling Mar 21, 2025
Updated HandoffAgent to support Flow-based message processing for handling handoffs to other agents. Now the agent can forward messages to the target agent in a more streamlined manner.
🔥 Added errorHandler property for handling tool execution errors.
@GabrielOlvH GabrielOlvH marked this pull request as ready for review March 23, 2025 14:13
@GabrielOlvH GabrielOlvH merged commit 865110d into dev Mar 23, 2025
@GabrielOlvH GabrielOlvH deleted the feature/typed-tools branch March 23, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant