-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Python: Bug: VertexAIChatCompletion can't handle classes or unions in kernel functions. #8110
Comments
markwallace-microsoft
added
python
Pull requests for the Python Semantic Kernel
triage
labels
Aug 14, 2024
Thanks for reporting! I was able to reproduce the issues and working on fixing them. There are 3 issues reported:
|
4 tasks
4 tasks
@TaoChenOSU thank you for looking into this! I will try the next release and let you know if the complex input parameter is still an issue. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 11, 2024
…el functions (#8674) ### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Address #8110 ### Description 1. Bug fix: parse function result to string 2. Integration tests added against complex type in function calling. <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Kernel functions can't handle classes or unions when using VertexAIChatCompletion
To Reproduce
Steps to reproduce the behavior:
VertexAIChatPromptExecutionSettings(function_choice_behavior=FunctionChoiceBehavior.Auto())
Setting the person_id to a class instead of a string results in a different error:
Error:
A different issue, but similar to the above:
I get a similar error if I use a union in the function argument:
Error:
Expected behavior
I would expect the functions to handle classes and unions.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Additional context
Gemini with VertexAI, Python 3.10, Gemini model gemini-1.5-pro
The text was updated successfully, but these errors were encountered: