CopilotStudioAgentThread Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Thread for CopilotStudio based agents.
public sealed class CopilotStudioAgentThread : Microsoft.Agents.AI.ServiceIdAgentThread
type CopilotStudioAgentThread = class
inherit ServiceIdAgentThread
Public NotInheritable Class CopilotStudioAgentThread
Inherits ServiceIdAgentThread
- Inheritance
Properties
| ConversationId |
Gets the ID for the current conversation with the Copilot Studio agent. |
| ServiceThreadId |
Gets or sets the unique identifier that references the conversation state stored in the remote service. (Inherited from ServiceIdAgentThread) |
Methods
| GetService(Type, Object) |
Asks the AgentThread for an object of the specified type |
| GetService<TService>(Object) |
Asks the AgentThread for an object of type |
| MessagesReceivedAsync(IEnumerable<ChatMessage>, CancellationToken) |
This method is called when new messages have been contributed to the chat by any participant. (Inherited from AgentThread) |
| Serialize(JsonSerializerOptions) |
Serializes the current object's state to a JsonElement using the specified serialization options. (Inherited from ServiceIdAgentThread) |