AIClientModelFactory.AgentThread Method
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.
Initializes a new instance of AgentThread(String, DateTimeOffset, ToolResources, IReadOnlyDictionary<String,String>).
public static Azure.AI.Projects.AgentThread AgentThread (string id = default, DateTimeOffset createdAt = default, Azure.AI.Projects.ToolResources toolResources = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default);
static member AgentThread : string * DateTimeOffset * Azure.AI.Projects.ToolResources * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.Projects.AgentThread
Public Shared Function AgentThread (Optional id As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional toolResources As ToolResources = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing) As AgentThread
Parameters
- id
- String
The identifier, which can be referenced in API endpoints.
- createdAt
- DateTimeOffset
The Unix timestamp, in seconds, representing when this object was created.
- toolResources
- ToolResources
A set of resources that are made available to the agent's tools in this thread. The resources are specific to the type
of tool. For example, the code_interpreter
tool requires a list of file IDs, while the file_search
tool requires a list
of vector store IDs.
- metadata
- IReadOnlyDictionary<String,String>
A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.
Returns
A new AgentThread instance for mocking.
Applies to
Azure SDK for .NET