Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MakeToolDefinition.description optional and fix Bedrock description handling#1507

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
DouweM merged 6 commits intomainfromdmontagu/fix-bedrock-description-handling
Jul 8, 2025

Conversation

dmontagu
Copy link
Contributor

Before merging this we should probably make the description field onpydantic_ai.tools.ToolDefinition optional, and handleNone properly on every other model.

@github-actionsGitHub Actions
Copy link

github-actionsbot commentedApr 16, 2025
edited
Loading

Docs Preview

commit:cdc86dc
Preview URL:https://e9b86b68-pydantic-ai-previews.pydantic.workers.dev

@DouweMDouweM marked this pull request as draftApril 30, 2025 19:14
@DouweM
Copy link
Contributor

@dmontagu Makingdescription optional sounds reasonable, and would let us stop passing'' for MCP tools that don't have one. Are you planning to implement that here?

@DouweMDouweM assignedDouweM and unassigneddmontaguJul 8, 2025
@DouweMDouweMforce-pushed thedmontagu/fix-bedrock-description-handling branch from4269d90 tof31fb94CompareJuly 8, 2025 16:12
@DouweMDouweM marked this pull request as ready for reviewJuly 8, 2025 16:12
@hyperlint-aiHyperlint AI
Copy link
Contributor

PR Change Summary

Updated the handling of the description field in ToolDefinition to allow for optional descriptions and improved handling of None values across models.

  • Made the description field in ToolDefinition optional.
  • Updated the handling of None values for descriptions in various models.
  • Removed empty description assignments in documentation.

Modified Files

  • docs/direct.md
  • docs/tools.md

How can I customize these reviews?

Check out theHyperlint 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 thehyperlint-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 addhyperlint-ignore to the PR to ignore the link check for this PR.

@DouweMDouweM assigneddmontagu and unassignedDouweMJul 8, 2025
@DouweMDouweM changed the titleFix bedrock description handlingMakeToolDefinition.description optional and fix Bedrock description handlingJul 8, 2025
@DouweMDouweMforce-pushed thedmontagu/fix-bedrock-description-handling branch frombca8262 to3f68197CompareJuly 8, 2025 18:37
@DouweMDouweMenabled auto-merge (squash)July 8, 2025 19:05
@DouweMDouweM merged commita08a20e intomainJul 8, 2025
17 checks passed
@DouweMDouweM deleted the dmontagu/fix-bedrock-description-handling branchJuly 8, 2025 19:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@DouweMDouweMDouweM left review comments

@KludexKludexKludex approved these changes

Assignees

@dmontagudmontagu

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@dmontagu@DouweM@Kludex

[8]ページ先頭

©2009-2025 Movatter.jp