Skip to content
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

Pass basemodel attributes directly as kwargs #369

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Pass basemodel attributes directly as kwargs #369

merged 3 commits into from
Oct 29, 2024

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Oct 29, 2024

This is a small change that should benefit smaller models like 4o-mini. Currently the result of a task is passed to a single, typed argument called result in the success tool. If the argument is a basemodel, then instead we now accept **kwargs corresponding to all of the model fields. It's a small change amounting to essentially "unwrapping" the {'result': <>} dict but seems to have impact.

@jlowin jlowin merged commit 0d4100b into main Oct 29, 2024
4 checks passed
@jlowin jlowin deleted the success-kwarg branch October 29, 2024 22:04
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.

1 participant