Skip to content

feat: Add support for generic argument types in tool callbacks #3082

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

Closed
wants to merge 1 commit into from

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented May 10, 2025

  • Enhance MethodToolCallback to properly handle generic types by using parameterized types
  • Add unit tests for generic type handling (List, Map<String,Integer>, nested generics)
  • Add integration tests for both Anthropic and OpenAI clients to verify tool calls with generic argument types

Resolves #2462

- Enhance MethodToolCallback to properly handle generic types by using parameterized types
- Add unit tests for generic type handling (List, Map<String,Integer>, nested generics)
- Add integration tests for both Anthropic and OpenAI clients to verify tool calls with generic argument types

Resolves spring-projects#2462

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov added this to the 1.0.0-RC1 milestone May 10, 2025
@markpollack markpollack self-assigned this May 10, 2025
@markpollack
Copy link
Member

merged in 5f6c618

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.

MethodToolCallback: Incorrect Deserialization of List<T> with Class<?>
2 participants