spring-projects / spring-projects/spring-ai
`ToolDefinition.outputSchema` and Jackson annotation support
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Expected Behavior
The docs https://docs.spring.io/spring-ai/reference/api/tools.html#_json_schema here state that adding json properties annotations from Jackson only work for input parameters. This is also reflected in ToolDefinition. Would be great if ToolDefinition can be extended to support outputSchema and also has annotation integration with Jackson
Current Behavior
There is no outputSchema whatsoever
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ToolDefinition and the linked JSON Schema documentation to understand the existing input-parameter annotation behavior. Define and implement outputSchema support with equivalent Jackson annotation integration, then verify that the documentation and relevant behavior cover output schemas as well as inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100