PersistentAgentThread Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. PersistentAgentThread
- com.
Implements
public final class PersistentAgentThread
implements JsonSerializable<PersistentAgentThread>
Information about a single thread associated with an agent.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Persistent |
fromJson(JsonReader jsonReader)
Reads an instance of Persistent |
|
Offset |
getCreatedAt()
Get the created |
| String |
getId()
Get the id property: The identifier, which can be referenced in API endpoints. |
| Map<String,String> |
getMetadata()
Get the metadata property: 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. |
| String |
getObject()
Get the object property: The object type, which is always 'thread'. |
|
Tool |
getToolResources()
Get the tool |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static PersistentAgentThread fromJson(JsonReader jsonReader)
Reads an instance of PersistentAgentThread from the JsonReader.
Parameters:
Returns:
Throws:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp, in seconds, representing when this object was created.
Returns:
getId
public String getId()
Get the id property: The identifier, which can be referenced in API endpoints.
Returns:
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: 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:
getObject
public String getObject()
Get the object property: The object type, which is always 'thread'.
Returns:
getToolResources
public ToolResources getToolResources()
Get the toolResources property: 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.
Returns: