spring-projects / spring-projects/spring-ai

`ToolDefinition.outputSchema` and Jackson annotation support

Open
#4,837 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.