Skip to content

Conversation

@tzolov
Copy link
Collaborator

@tzolov tzolov commented Sep 16, 2025

  • Change structuredOutput type from Map<String, Object> to Object to support lists
  • Add comprehensive test coverage for tools returning List
  • Update both sync and async tool method callbacks
  • Rename misleading test method name for clarity

This enables MCP tools to return structured lists of complex objects, not just map-based structures, improving flexibility for tool responses.

- Change structuredOutput type from Map<String, Object> to Object to support lists
- Add comprehensive test coverage for tools returning List<ComplexObject>
- Update both sync and async tool method callbacks
- Rename misleading test method name for clarity

This enables MCP tools to return structured lists of complex objects,
not just map-based structures, improving flexibility for tool responses.

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
@tzolov tzolov added this to the 0.4.0 milestone Sep 16, 2025
@tzolov tzolov merged commit df8e9e2 into spring-ai-community:main Sep 16, 2025
1 check passed
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