Share via


Azure.AI.Agents.Persistent Namespace

Classes

AISearchIndexResource

A AI Search Index resource.

AzureAIAgentsPersistentContext

Context class which will be filled in by the System.ClientModel.SourceGeneration. For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md'

AzureAISearchToolDefinition

The input definition information for an Azure AI search tool as used to configure an agent.

AzureAISearchToolResource

A set of index resources used by the azure_ai_search tool.

AzureFunctionBinding

The structure for keeping storage queue name and URI.

AzureFunctionStorageQueue

The structure for keeping storage queue name and URI.

AzureFunctionToolDefinition

The input definition information for a azure function tool as used to configure an agent.

BingCustomSearchConfiguration

A bing custom search configuration.

BingCustomSearchToolDefinition

The input definition information for a Bing custom search tool as used to configure an agent.

BingCustomSearchToolParameters

The bing custom search tool parameters.

BingGroundingSearchConfiguration

Search configuration for Bing Grounding.

BingGroundingSearchToolParameters

The bing grounding search tool parameters.

BingGroundingToolDefinition

The input definition information for a bing grounding search tool as used to configure an agent.

CodeInterpreterToolDefinition

The input definition information for a code interpreter tool as used to configure an agent.

CodeInterpreterToolResource

A set of resources that are used by the code_interpreter tool.

ConnectedAgentDetails

Information for connecting one agent to another as a tool.

ConnectedAgentToolDefinition

The input definition information for a connected agent tool which defines a ___domain specific sub-agent.

FabricDataAgentToolParameters

The fabric data agent tool parameters.

FileSearchRankingOptions

Ranking options for file search.

FileSearchToolCallContent

The file search result content object.

FileSearchToolDefinition

The input definition information for a file search tool as used to configure an agent.

FileSearchToolDefinitionDetails

Options overrides for the file search tool.

FileSearchToolResource

A set of resources that are used by the file_search tool.

FunctionToolDefinition

The input definition information for a function tool as used to configure an agent.

IncompleteRunDetails

Details on why the run is incomplete. Will be null if the run is not incomplete.

MessageAttachment

This describes to which tools a file has been attached.

MessageContent

An abstract representation of a single item of thread message content. Please note MessageContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageImageFileContent and MessageTextContent.

MessageContentUpdate

Represents a streaming update to PersistentThreadMessage content as part of the Agents API.

MessageDelta

Represents the typed 'delta' payload within a streaming message delta chunk.

MessageDeltaChunk

Represents a message delta i.e. any changed fields on a message during streaming.

MessageDeltaContent

The abstract base representation of a partial streamed message content payload. Please note MessageDeltaContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageDeltaImageFileContent and MessageDeltaTextContent.

MessageDeltaImageFileContent

Represents a streamed image file content part within a streaming message delta chunk.

MessageDeltaImageFileContentObject

Represents the 'image_file' payload within streaming image file content.

MessageDeltaTextAnnotation

The abstract base representation of a streamed text content part's text annotation. Please note MessageDeltaTextAnnotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFilePathAnnotation and MessageDeltaTextUriCitationAnnotation.

MessageDeltaTextContent

Represents a streamed text content part within a streaming message delta chunk.

MessageDeltaTextContentObject

Represents the data of a streamed text content part within a streaming message delta chunk.

MessageDeltaTextFileCitationAnnotation

Represents a streamed file citation applied to a streaming text content part.

MessageDeltaTextFileCitationAnnotationObject

Represents the data of a streamed file citation as applied to a streaming text content part.

MessageDeltaTextFilePathAnnotation

Represents a streamed file path annotation applied to a streaming text content part.

MessageDeltaTextFilePathAnnotationObject

Represents the data of a streamed file path annotation as applied to a streaming text content part.

MessageDeltaTextUriCitationAnnotation

A citation within the message that points to a specific URL associated with the message. Generated when the agent uses tools such as 'bing_grounding' to search the Internet.

MessageDeltaTextUriCitationDetails

A representation of a URL citation, as used in text thread message content.

MessageImageFileContent

A representation of image file content in a thread message.

MessageImageFileParam

Defines how an internally uploaded image file is referenced when creating an image-file block.

MessageImageUriParam

Defines how an external image URL is referenced when creating an image-URL block.

MessageIncompleteDetails

Information providing additional detail about a message entering an incomplete status.

MessageInputContentBlock

Defines a single content block when creating a message. The 'type' field determines whether it is text, an image file, or an external image URL, etc. Please note MessageInputContentBlock is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageInputImageFileBlock, MessageInputImageUriBlock and MessageInputTextBlock.

MessageInputImageFileBlock

An image-file block in a new message, referencing an internally uploaded image by file ID.

MessageInputImageUriBlock

An image-URL block in a new message, referencing an external image by URL.

MessageInputTextBlock

A text block in a new message, containing plain text content.

MessageStatusUpdate

The update type presented when the status of a message changes.

MessageTextAnnotation

An abstract representation of an annotation to text thread message content. Please note MessageTextAnnotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageTextFileCitationAnnotation, MessageTextFilePathAnnotation and MessageTextUriCitationAnnotation.

MessageTextContent

A representation of a textual item of thread message content.

MessageTextFileCitationAnnotation

A citation within the message that points to a specific quote from a specific File associated with the agent or the message. Generated when the agent uses the 'file_search' tool to search files.

MessageTextFilePathAnnotation

A citation within the message that points to a file located at a specific path.

MessageTextUriCitationAnnotation

A citation within the message that points to a specific URL associated with the message. Generated when the agent uses tools such as 'bing_grounding' to search the Internet.

MessageTextUriCitationDetails

A representation of a URL citation, as used in text thread message content.

MicrosoftFabricToolDefinition

The input definition information for a Microsoft Fabric tool as used to configure an agent.

OpenApiAnonymousAuthDetails

Security details for OpenApi anonymous authentication.

OpenApiAuthDetails

authentication details for OpenApiFunctionDefinition Please note OpenApiAuthDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails and OpenApiManagedAuthDetails.

OpenApiConnectionAuthDetails

Security details for OpenApi connection authentication.

OpenApiConnectionSecurityScheme

Security scheme for OpenApi managed_identity authentication.

OpenApiFunctionDefinition

The input definition information for an openapi function.

OpenApiManagedAuthDetails

Security details for OpenApi managed_identity authentication.

OpenApiManagedSecurityScheme

Security scheme for OpenApi managed_identity authentication.

OpenApiToolDefinition

The input definition information for an OpenAPI tool as used to configure an agent.

PersistentAgent

Represents an agent that can call the model and use tools.

PersistentAgentFileInfo

Represents an agent that can call the model and use tools.

PersistentAgentsAdministrationClient

The PersistentAgentsAdministration service client.

PersistentAgentsAdministrationClientOptions

Client options for PersistentAgentsAdministrationClient.

PersistentAgentsClient
PersistentAgentsExtensions

The Azure AI Agents Persistent extensions.

PersistentAgentsFiles

A collection of file‐related operations under /files.

PersistentAgentsFunctionName

The function name that will be used, if using the function tool.

PersistentAgentsModelFactory

Model factory for models.

PersistentAgentsNamedToolChoice

Specifies a tool the model should use. Use to force the model to call a specific tool.

PersistentAgentsVectorStore

A vector store is a collection of processed files can be used by the file_search tool.

PersistentAgentThread

Information about a single thread associated with an agent.

PersistentAgentThreadCreationOptions

The details used to create a new agent thread.

PersistentThreadMessage

A single, existing message within an agent thread.

RequiredAction

An abstract representation of a required action for an agent thread run to continue. Please note RequiredAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include SubmitToolOutputsAction.

RequiredActionUpdate

The update type presented when the status of a ThreadRun has changed to requires_action, indicating that tool output submission or another intervention is needed for the run to continue.

RequiredFunctionToolCall

A representation of a requested call to a function tool, needed by the model to continue evaluation of a run.

RequiredToolCall

An abstract, base representation for a tool call that an Agents API run requires outputs from in order to continue.

ResponseFormatJsonSchema

A description of what the response format is for, used by the model to determine how to respond in the format.

ResponseFormatJsonSchemaType

The type of response format being defined: json_schema.

RunCompletionUsage

Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).

RunError

The details of an error as encountered by an agent thread run.

RunStep

Detailed information about a single step of an agent thread run.

RunStepAzureAISearchToolCall

A record of a call to an Azure AI Search tool, issued by the model in evaluation of a defined tool, that represents executed Azure AI search.

RunStepBingCustomSearchToolCall

A record of a call to a bing custom search tool, issued by the model in evaluation of a defined tool, that represents executed search with bing custom search.

RunStepBingGroundingToolCall

A record of a call to a bing grounding tool, issued by the model in evaluation of a defined tool, that represents executed search with bing grounding.

RunStepCodeInterpreterImageOutput

A representation of an image output emitted by a code interpreter tool in response to a tool call by the model.

RunStepCodeInterpreterImageReference

An image reference emitted by a code interpreter tool in response to a tool call by the model.

RunStepCodeInterpreterLogOutput

A representation of a log output emitted by a code interpreter tool in response to a tool call by the model.

RunStepCodeInterpreterToolCall

A record of a call to a code interpreter tool, issued by the model in evaluation of a defined tool, that represents inputs and outputs consumed and emitted by the code interpreter.

RunStepCodeInterpreterToolCallOutput

An abstract representation of an emitted output from a code interpreter tool. Please note RunStepCodeInterpreterToolCallOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepCodeInterpreterImageOutput and RunStepCodeInterpreterLogOutput.

RunStepCompletionUsage

Usage statistics related to the run step.

RunStepDelta

Represents the delta payload in a streaming run step delta chunk.

RunStepDeltaChunk

Represents a run step delta i.e. any changed fields on a run step during streaming.

RunStepDeltaCodeInterpreterDetailItemObject

Represents the Code Interpreter tool call data in a streaming run step's tool calls.

RunStepDeltaCodeInterpreterImageOutput

Represents an image output as produced the Code interpreter tool and as represented in a streaming run step's delta tool calls collection.

RunStepDeltaCodeInterpreterImageOutputObject

Represents the data for a streaming run step's Code Interpreter tool call image output.

RunStepDeltaCodeInterpreterLogOutput

Represents a log output as produced by the Code Interpreter tool and as represented in a streaming run step's delta tool calls collection.

RunStepDeltaCodeInterpreterOutput

The abstract base representation of a streaming run step tool call's Code Interpreter tool output. Please note RunStepDeltaCodeInterpreterOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepDeltaCodeInterpreterImageOutput and RunStepDeltaCodeInterpreterLogOutput.

RunStepDeltaCodeInterpreterToolCall

Represents a Code Interpreter tool call within a streaming run step's tool call details.

RunStepDeltaDetail

Represents a single run step detail item in a streaming run step's delta payload. Please note RunStepDeltaDetail is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepDeltaMessageCreation and RunStepDeltaToolCallObject.

RunStepDeltaFileSearchToolCall

Represents a file search tool call within a streaming run step's tool call details.

RunStepDeltaFunction

Represents the function data in a streaming run step delta's function tool call.

RunStepDeltaFunctionToolCall

Represents a function tool call within a streaming run step's tool call details.

RunStepDeltaMessageCreation

Represents a message creation within a streaming run step delta.

RunStepDeltaMessageCreationObject

Represents the data within a streaming run step message creation response object.

RunStepDeltaToolCall

The abstract base representation of a single tool call within a streaming run step's delta tool call details. Please note RunStepDeltaToolCall is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepDeltaCodeInterpreterToolCall, RunStepDeltaFileSearchToolCall and RunStepDeltaFunctionToolCall.

RunStepDeltaToolCallObject

Represents an invocation of tool calls as part of a streaming run step.

RunStepDetails

An abstract representation of the details for a run step. Please note RunStepDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepMessageCreationDetails and RunStepToolCallDetails.

RunStepDetailsUpdate

The update type presented when run step details, including tool call progress, have changed.

RunStepError

The error information associated with a failed run step.

RunStepFileSearchToolCall

A record of a call to a file search tool, issued by the model in evaluation of a defined tool, that represents executed file search.

RunStepFileSearchToolCallResult

File search tool call result.

RunStepFileSearchToolCallResults

The results of the file search.

RunStepFunctionToolCall

A record of a call to a function tool, issued by the model in evaluation of a defined tool, that represents the inputs and output consumed and emitted by the specified function.

RunStepMessageCreationDetails

The detailed information associated with a message creation run step.

RunStepMessageCreationReference

The details of a message created as a part of a run step.

RunStepMicrosoftFabricToolCall

A record of a call to a Microsoft Fabric tool, issued by the model in evaluation of a defined tool, that represents executed Microsoft Fabric operations.

RunStepOpenAPIToolCall

A record of a call to an OpenAPI tool, issued by the model in evaluation of a defined tool, that represents executed OpenAPI operations.

RunStepSharepointToolCall

A record of a call to a SharePoint tool, issued by the model in evaluation of a defined tool, that represents executed SharePoint actions.

RunStepToolCall

An abstract representation of a detailed tool call as recorded within a run step for an existing run. Please note RunStepToolCall is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RunStepAzureAISearchToolCall, RunStepBingCustomSearchToolCall, RunStepBingGroundingToolCall, RunStepCodeInterpreterToolCall, RunStepMicrosoftFabricToolCall, RunStepFileSearchToolCall, RunStepFunctionToolCall, RunStepOpenAPIToolCall and RunStepSharepointToolCall.

RunStepToolCallDetails

The detailed information associated with a run step calling tools.

RunStepUpdate

The update type presented when the status of a run step changes.

RunUpdate

The update type presented when the status of a ThreadRun has changed.

SharepointGroundingToolParameters

The sharepoint grounding tool parameters.

SharepointToolDefinition

The input definition information for a sharepoint tool as used to configure an agent.

StreamingUpdate

Represents a single item of streamed Agents API data.

StreamingUpdate<T>

Represents a single item of streamed data that encapsulates an underlying response value type.

SubmitToolOutputsAction

The details for required tool calls that must be submitted for an agent thread run to continue.

TextAnnotationUpdate
ThreadAndRunOptions
ThreadMessageOptions

Represents the options for creating or adding a message in an agent thread. This class provides convenient ways to specify the message role (e.g., user or assistant) and the message content, which can be either plain text or one or more structured content blocks (e.g., text, images).

ThreadMessages

A collection of message operations under /threads/{threadId}/messages.

ThreadRun

Data representing a single evaluation run of an agent thread.

ThreadRuns

A collection of run operations under /threads/{threadId}/runs.

Threads

A collection of thread operations under /threads.

ThreadUpdate

The update type presented when a streamed event indicates a thread was created.

ToolConnection

A connection resource.

ToolDefinition

An abstract representation of an input tool definition that an agent can use. Please note ToolDefinition is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AzureAISearchToolDefinition, AzureFunctionToolDefinition, BingCustomSearchToolDefinition, BingGroundingToolDefinition, CodeInterpreterToolDefinition, ConnectedAgentToolDefinition, MicrosoftFabricToolDefinition, FileSearchToolDefinition, FunctionToolDefinition, OpenApiToolDefinition and SharepointToolDefinition.

ToolOutput

The data provided during a tool outputs submission to resolve pending tool calls and allow the model to continue.

ToolResources

A set of resources that are used by the agent's tools. 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.

Truncation

Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.

VectorStoreAutoChunkingStrategy

The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.

VectorStoreAutoChunkingStrategyResponse

This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the chunking_strategy concept was introduced in the API.

VectorStoreChunkingStrategy

An abstract representation of a vector store chunking strategy configuration. Please note VectorStoreChunkingStrategy is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include VectorStoreAutoChunkingStrategy and VectorStoreStaticChunkingStrategyRequest.

VectorStoreChunkingStrategyResponse

An abstract representation of a vector store chunking strategy configuration. Please note VectorStoreChunkingStrategyResponse is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include VectorStoreAutoChunkingStrategyResponse and VectorStoreStaticChunkingStrategyResponse.

VectorStoreConfiguration

Vector storage configuration is the list of data sources, used when multiple files can be used for the enterprise file search.

VectorStoreConfigurations

The structure, containing the list of vector storage configurations i.e. the list of azure asset IDs.

VectorStoreDataSource

The structure, containing Azure asset URI path and the asset type of the file used as a data source for the enterprise file search.

VectorStoreExpirationPolicy

The expiration policy for a vector store.

VectorStoreFile

Description of a file attached to a vector store.

VectorStoreFileBatch

A batch of files attached to a vector store.

VectorStoreFileCount

Counts of files processed or being processed by this vector store grouped by status.

VectorStoreFileError

Details on the error that may have occurred while processing a file for this vector store.

VectorStores

A collection of vector-store operations under /vector_stores.

VectorStoreStaticChunkingStrategyOptions

Options to configure a vector store static chunking strategy.

VectorStoreStaticChunkingStrategyRequest

A statically configured chunking strategy.

VectorStoreStaticChunkingStrategyResponse

A statically configured chunking strategy.

Structs

AzureAISearchQueryType

Available query types for Azure AI Search tool.

AzureFunctionBindingType

The AzureFunctionBindingType.

DoneEvent

Terminal event indicating the successful end of a stream.

ErrorEvent

Terminal event indicating a server side error while streaming.

FileSearchToolCallContentType

The FileSearchToolCallContentType.

FileState

The state of the file.

ImageDetailLevel

Specifies an image's detail level. Can be 'auto', 'low', 'high', or an unknown future value.

IncompleteDetailsReason

The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.

ListSortOrder

The available sorting options when requesting a list of response objects.

MessageDeltaChunkObject

The MessageDeltaChunkObject.

MessageIncompleteDetailsReason

A set of reasons describing why a message is marked as incomplete.

MessageRole

The possible values for roles attributed to messages in a thread.

MessageStatus

The possible execution status values for a thread message.

MessageStreamEvent

Message operation related streaming events.

PersistentAgentFilePurpose

The possible values denoting the intended usage of a file.

PersistentAgentsNamedToolChoiceType

Available tool types for agents named tools.

PersistentAgentsResponseFormatMode

Represents the mode in which the model will handle the return format of a tool call.

PersistentAgentsToolChoiceOptionMode

Specifies how the tool choice will be used.

PersistentAgentStreamEvent

Each event in a server-sent events stream has an event and data property:

event: thread.created
data: {"id": "thread_123", "object": "thread", ...}

We emit events whenever a new object is created, transitions to a new state, or is being streamed in parts (deltas). For example, we emit thread.run.created when a new run is created, thread.run.completed when a run completes, and so on. When an Agent chooses to create a message during a run, we emit a thread.message.created event, a thread.message.in_progress event, many thread.message.delta events, and finally a thread.message.completed event.

We may add additional events over time, so we recommend handling unknown events gracefully in your code.

PersistentAgentsVectorStoreObject

The PersistentAgentsVectorStoreObject.

ResponseFormatJsonSchemaTypeType

The ResponseFormatJsonSchemaTypeType.

RunAdditionalFieldList

A list of additional fields to include in the response.

RunStatus

Possible values for the status of an agent thread run.

RunStepDeltaChunkObject

The RunStepDeltaChunkObject.

RunStepErrorCode

Possible error code values attributable to a failed run step.

RunStepStatus

Possible values for the status of a run step.

RunStepStreamEvent

Run step operation related streaming events.

RunStepType

The possible types of run steps.

RunStreamEvent

Run operation related streaming events.

ThreadStreamEvent

Thread operation related streaming events.

TruncationStrategy

Possible truncation strategies for the thread.

VectorStoreDataSourceAssetType

Type of vector storage asset. Asset type may be a uri_asset, in this case it should contain asset URI ID, in the case of id_asset it should contain the data ID.

VectorStoreExpirationPolicyAnchor

Describes the relationship between the days and the expiration of this vector store.

VectorStoreFileBatchObject

The VectorStoreFileBatchObject.

VectorStoreFileBatchStatus

The status of the vector store file batch.

VectorStoreFileErrorCode

Error code variants for vector store file processing.

VectorStoreFileObject

The VectorStoreFileObject.

VectorStoreFileStatus

Vector store file status.

VectorStoreFileStatusFilter

Query parameter filter for vector store file retrieval endpoint.

VectorStoreStatus

Vector store possible status.

Enums

PersistentAgentsAdministrationClientOptions.ServiceVersion

The version of the service to use.

StreamingUpdateReason

The collection of values associated with the event names of streaming update payloads. These correspond to the expected downcast data type of the StreamingUpdate as well as to the expected data present in the payload.