Skip to content

Make it possible to override JSON schema generation for tools #1108

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

Merged
merged 9 commits into from
Mar 17, 2025

Conversation

dmontagu
Copy link
Contributor

@dmontagu dmontagu commented Mar 13, 2025

In some cases you might want to have a bit more control over the generated JSON schema; see discussion in this thread https://pydanticlogfire.slack.com/archives/C083V7PMHHA/p1741204403143859.

I'll note there's a couple TODO comments in the PR currently that should be considered before merging/not.

Copy link

github-actions bot commented Mar 13, 2025

Docs Preview

commit: 75f26c3
Preview URL: https://828a10f1-pydantic-ai-previews.pydantic.workers.dev

Copy link
Member

@Kludex Kludex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is interesting. I found out that Gemini doesn't support exclusiveMaximum yesterday.

Copy link
Contributor

hyperlint-ai bot commented Mar 17, 2025

PR Change Summary

Enhanced control over JSON schema generation for tools by removing titles from schema properties.

  • Removed titles from JSON schema properties for better customization.
  • Updated JSON schema definitions to streamline property descriptions.

Modified Files

  • docs/tools.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

What is Hyperlint?

Hyperlint is an AI agent that helps you write, edit, and maintain your documentation.

Learn more about the Hyperlint AI reviewer and the checks that we can run on your documentation.

@dmontagu dmontagu merged commit 80d5c07 into main Mar 17, 2025
16 checks passed
@dmontagu dmontagu deleted the dmontagu/tool-schema-generator branch March 17, 2025 19:01
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.

2 participants