Attempting to implement a RAG solution. Having problems with ChatCompletionOptions #304
Answered
by
dspear
rlevi-selly
asked this question in
Q&A
-
In Example03_FunctionCallingAsync.cs they show the following code. This is what I want to do, but the Tools property is read only.
How can I set my tools list correctly in a ChatCompletionOptions object in order to use them in a chat completion?
Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
dspear
Dec 6, 2024
Replies: 1 comment 1 reply
-
It is a readonly collection, but you can Add to it or Remove from it. The init code effectively does an Add, which you can also do in code, for example: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rlevi-selly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is a readonly collection, but you can Add to it or Remove from it. The init code effectively does an Add, which you can also do in code, for example:
options.Tools.Add(getCurrentLocationTool)