-
Notifications
You must be signed in to change notification settings - Fork 343
Add ChatTools and ResponseTools helper classes #422
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
Add ChatTools and ResponseTools helper classes #422
Conversation
tests/Utility/ChatToolsTests.cs
Outdated
|
|
||
| [TestFixture] | ||
| [Category("Utility")] | ||
| public class ChatToolsTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a test for the following scenario: I have an ongoing chat where the model called "Function Foo" at some point, but then I remove "Function Foo" from the list of available tools and continue talking to the model. Confirm that when the model sees "Function Foo" in the chat history but not in its list of available tools, it still works correctly.
This PR adds functionality for managing OpenAI function tools in chat completions and responses, implementing two utility classes:
ChatToolsandResponseTools.Key Features
EmbeddingClientis provided