Can I retrieve an existing thread on OpenAI with the new Agents framework #6317
-
Use Case: I think I need to be able to instantiate an OpenAI AgentGroupChat with a thread id that already exists so that I can use it for the InvokeAgentAsync message. I admit I am still trying to figure this new framework out, but could use some direction here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@crickman, do you know if this is possible today? I know we're still working on enhancements to make it easier to serialize and deserialize group chats. I suspect this may be one of the additional gaps necessary to rehydrate an existing thread. |
Beta Was this translation helpful? Give feedback.
-
This isn't currently supported, but it is on our radar. I have a notion on how this might be supported, but need to coordinate with Matthew's work once he's back in the office. One thing to consider is that the Agent Framework isn't soley supporting the Open AI Assistant API. This means that a solution that supports serialization/deserialization must be valid across different agent modalities. Since an agent is able to participate in multiple converations / chats, managing thread-id it feels like this support may be logically bound to the chat contract (as opposed to agent). |
Beta Was this translation helpful? Give feedback.
This isn't currently supported, but it is on our radar. I have a notion on how this might be supported, but need to coordinate with Matthew's work once he's back in the office.
One thing to consider is that the Agent Framework isn't soley supporting the Open AI Assistant API. This means that a solution that supports serialization/deserialization must be valid across different agent modalities. Since an agent is able to participate in multiple converations / chats, managing thread-id it feels like this support may be logically bound to the chat contract (as opposed to agent).