Skip to content

Help with migration OpenAi Assistant #12637

Answered by westey-m
JP-droidic asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @JP-droidic, when using an OpenAIAssistantAgent, it works with an OpenAIAssistantAgentThread and it inherits from AgentThread. The idea here is that users can use the Agent abstraction without needing to worry about the differences in threading between different agents.

OpenAIAssistantAgentThread has an Id property that contain the id of the underlying OpenAI assistant agent thread. You can also construct a new OpenAIAssistantThread using an existing Id if you want to continue an existing conversation, using this constructor:
public OpenAIAssistantAgentThread(AssistantClient client, string id)

If you want to have custom logic outside of the abstraction that manipulates threads like yo…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@westey-m
Comment options

westey-m Jul 3, 2025
Collaborator

Answer selected by JP-droidic
@JP-droidic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code agents
4 participants