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

FunctionTool should support passing in a partial #5151

Closed
jackgerrits opened this issue Jan 22, 2025 · 1 comment · Fixed by #5183
Closed

FunctionTool should support passing in a partial #5151

jackgerrits opened this issue Jan 22, 2025 · 1 comment · Fixed by #5183
Assignees
Milestone

Comments

@jackgerrits
Copy link
Member

functools.partial objects have a func property that allows retrieving the inner function and reading annotations. The applied args should then be removed from the schema prior to generating it

@ekzhu ekzhu added this to the 0.4.x milestone Jan 23, 2025
@nour-bouzid
Copy link
Contributor

Can you assign this to me?

jackgerrits pushed a commit that referenced this issue Jan 29, 2025
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

FunctionTool supports passing in a partial

## Related issue number

Closes #5151 

## Checks

- [x] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants