-
Notifications
You must be signed in to change notification settings - Fork 2k
OpenAI ChatClient tools support #299
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
Conversation
fb3e0f5 to
144fa5d
Compare
144fa5d to
5e521f0
Compare
| void setTopK(Integer topK); | ||
|
|
||
| default List<ToolFunctionCallback> getToolCallbacks() { | ||
| throw new UnsupportedOperationException("ToolCallbacks is not supported by this model"); |
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.
I think we should not have this default method, since the methods here should apply to every model.
| throw new UnsupportedOperationException("ToolCallbacks is not supported by this model"); | ||
| } | ||
|
|
||
| default void setToolCallbacks(List<ToolFunctionCallback> toolCallbacks) { |
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.
same comment as before
| } | ||
|
|
||
| @Override | ||
| public String toString() { |
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.
added equals and hashcode on merge.
|
removed the default methods in the chat option interface to make tests pass. Merged as ffd8222 Can review the small comments in this PR afterwards |
Add support for ChatClient function calling.
ToolFunctionCallbackandAbstractToolFunctionCallbackabstractions for defining and registering function callbacks with the ChatClient.