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

Addbuiltin_tools toAgent#2102

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

Open
mattbrandman wants to merge53 commits intopydantic:main
base:main
Choose a base branch
Loading
frommattbrandman:builtin-tool

Conversation

mattbrandman
Copy link

@mattbrandmanmattbrandman commentedJun 30, 2025
edited by DouweM
Loading

Fixes test and merge conflicts for#1722

Closes#840

Kludexand others added30 commitsMay 14, 2025 11:00
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
…dantic#1752)Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
- Added builtin_tools field to ModelRequestParameters- Merged new output_mode and output_object fields from main- Updated test snapshots to include all fields- Resolved import conflicts to include both builtin tools and profiles
@Kludex
Copy link
Member

I'll make sure thebuiltin_tools get merged this week.


For curiosity, do you work at Duolingo?

@mattbrandman
Copy link
Author

Awesome and Dm’ed!

@KludexKludex changed the titleBuiltin tool Addbuiltin_tools toAgentJul 16, 2025
Comment on lines 21 to 22
# TODO(Marcelo): We need to handle custom tool definitions per model base.
# def handle_custom_tool_definition(self, model: str) -> Any: ...
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this, what does it mean?


city:str
country:str
region:str
Copy link
Contributor

@dmontagudmontaguJul 16, 2025
edited
Loading

Choose a reason for hiding this comment

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

what isregion?

More generally, are the required contents (of this fieldand the others on this class) vendor-specific in any way? Should we include examples?

part:ServerToolCallPart
"""The server tool call to make."""

event_kind:Literal['server_tool_call']='server_tool_call'
Copy link
Contributor

Choose a reason for hiding this comment

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

it makes me sad that some of our discriminators are snake_case (here) and some are kebab-case (part_kind). I guess you probably didn't introduce this inconsistency in this PR, but it feels bad. Maybe we should change it in v1 and just do value normalization during validation (i.e., replace any_ with- or vice versa).

ifpart.executable_codeisnotNone:
items.append(ServerToolCallPart(args=part.executable_code.model_dump(),tool_name='code_execution'))
elifpart.code_execution_resultisnotNone:
# TODO(Marcelo): Is the idea to generate the tool_call_id on the `executable_code`, and then pass it here?
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like we can/should answer this question before merging?

@mattbrandman
Copy link
Author

@Kludex should we include code interpreter from openai as its accessible on the responses API or save that for a follow up given its a fairly complex set of types

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@KludexKludexKludex left review comments

@dmontagudmontagudmontagu left review comments

Assignees

@KludexKludex

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

GoogleSearchTool for GeminiModel and VertexAIModel
9 participants
@mattbrandman@Kludex@dmontagu@BrandonShar@alexmojaki@DouweM@oscar-broman@davide-andreoli@kiqaps

[8]ページ先頭

©2009-2025 Movatter.jp