OpenAI assistant, SK function and code interpeter - c# #8563
-
Beta Was this translation helpful? Give feedback.
Answered by
crickman
Sep 9, 2024
Replies: 1 comment 2 replies
-
Tagging @crickman for visibility. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @JP-droidic , this is an interesting case. I would note that if you update the code-interpeter file-ids in agent's definition then that will affect all instances of that agent. Since you are retrieving the same agent for use with multiple requests, it may make sense to associate the file at the thread-level.
This may be accomplished using
OpenAIThreadCreationOptions
:https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Agents/OpenAI/OpenAIThreadCreationOptions.cs#L16
https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Agents/OpenAI/OpenAIAssistantAgent.cs#L162