Share via


Azure.AI.AgentServer.Contracts.Generated.OpenAI Namespace

Classes

Name Description
A2ATool

An agent implementing the A2A protocol.

AISearchIndexResource

A AI Search Index resource.

Annotation

The Annotation. Please note Annotation 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 AnnotationFileCitation, AnnotationFilePath and AnnotationUrlCitation.

AnnotationFileCitation

A citation to a file.

AnnotationFilePath

A path to a file.

AnnotationUrlCitation

A citation for a web resource used to generate a model response.

ApproximateLocation

The ApproximateLocation.

AzureAISearchAgentTool

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.

AzureFunctionAgentTool

The input definition information for an Azure Function Tool, as used to configure an Agent.

AzureFunctionBinding

The structure for keeping storage queue name and URI.

AzureFunctionDefinition

The definition of Azure function.

AzureFunctionDefinitionFunction

The AzureFunctionDefinitionFunction.

AzureFunctionStorageQueue

The structure for keeping storage queue name and URI.

BingCustomSearchAgentTool

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

BingCustomSearchConfiguration

A bing custom search configuration.

BingCustomSearchToolParameters

The bing custom search tool parameters.

BingGroundingAgentTool

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

BingGroundingSearchConfiguration

Search configuration for Bing Grounding.

BingGroundingSearchToolParameters

The bing grounding search tool parameters.

BrowserAutomationAgentTool

The input definition information for a Browser Automation Tool, as used to configure an Agent.

BrowserAutomationToolConnectionParameters

Definition of input parameters for the connection used by the Browser Automation Tool.

BrowserAutomationToolParameters

Definition of input parameters for the Browser Automation Tool.

CaptureStructuredOutputsTool

A tool for capturing structured outputs.

CodeInterpreterOutput

The CodeInterpreterOutput. Please note CodeInterpreterOutput 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 CodeInterpreterOutputImage and CodeInterpreterOutputLogs.

CodeInterpreterOutputImage

The image output from the code interpreter.

CodeInterpreterOutputLogs

The logs output from the code interpreter.

CodeInterpreterOutputTypeExtensions
CodeInterpreterTool

A tool that runs Python code to help generate a response to a prompt.

CodeInterpreterToolAuto

Configuration for a code interpreter container. Optionally specify the IDs of the files to run the code on.

CodeInterpreterToolCallItemParam

A tool call to run code.

CodeInterpreterToolCallItemResource

A tool call to run code.

CodeInterpreterToolCallItemResourceStatusExtensions
ComparisonFilter

A filter used to compare a specified attribute key to a given value using a defined comparison operation.

ComparisonFilterTypeExtensions
CompoundFilter

Combine multiple filters using and or or.

CompoundFilterTypeExtensions
ComputerAction

The ComputerAction. Please note ComputerAction 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 ComputerActionClick, ComputerActionDoubleClick, ComputerActionDrag, ComputerActionKeyPress, ComputerActionMove, ComputerActionScreenshot, ComputerActionScroll, ComputerActionTypeKeys and ComputerActionWait.

ComputerActionClick

A click action.

ComputerActionClickButtonExtensions
ComputerActionDoubleClick

A double click action.

ComputerActionDrag

A drag action.

ComputerActionKeyPress

A collection of keypresses the model would like to perform.

ComputerActionMove

A mouse move action.

ComputerActionScreenshot

A screenshot action.

ComputerActionScroll

A scroll action.

ComputerActionTypeExtensions
ComputerActionTypeKeys

An action to type in text.

ComputerActionWait

A wait action.

ComputerToolCallItemParam

A tool call to a computer use tool. See the computer use guide for more information.

ComputerToolCallItemResource

A tool call to a computer use tool. See the computer use guide for more information.

ComputerToolCallItemResourceStatusExtensions
ComputerToolCallOutputItemOutput

The ComputerToolCallOutputItemOutput. Please note ComputerToolCallOutputItemOutput 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 ComputerToolCallOutputItemOutputComputerScreenshot.

ComputerToolCallOutputItemOutputComputerScreenshot

The ComputerToolCallOutputItemOutputComputerScreenshot.

ComputerToolCallOutputItemParam

The output of a computer tool call.

ComputerToolCallOutputItemResource

The output of a computer tool call.

ComputerToolCallOutputItemResourceStatusExtensions
ComputerToolCallSafetyCheck

A pending safety check for the computer call.

ComputerUsePreviewTool

A tool that controls a virtual computer. Learn more about the computer tool.

ComputerUsePreviewToolEnvironmentExtensions
Coordinate

An x/y coordinate pair, e.g. { x: 100, y: 200 }.

CreatedBy

The CreatedBy.

DeleteScopeRequest

The DeleteScopeRequest.

EasyInputMessage

The EasyInputMessage.

FabricDataAgentToolParameters

The fabric data agent tool parameters.

FileSearchTool

A tool that searches for relevant content from uploaded files. Learn more about the file search tool.

FileSearchToolCallItemParam

The results of a file search tool call. See the file search guide for more information.

FileSearchToolCallItemParamResult

The FileSearchToolCallItemParamResult.

FileSearchToolCallItemResource

The results of a file search tool call. See the file search guide for more information.

FileSearchToolCallItemResourceStatusExtensions
FunctionTool

Defines a function in your own code the model can choose to call. Learn more about function calling.

FunctionToolCallItemParam

A tool call to run a function. See the function calling guide for more information.

FunctionToolCallItemResource

A tool call to run a function. See the function calling guide for more information.

FunctionToolCallItemResourceStatusExtensions
FunctionToolCallOutputItemParam

The output of a function tool call.

FunctionToolCallOutputItemResource

The output of a function tool call.

FunctionToolCallOutputItemResourceStatusExtensions
ImageGenTool

A tool that generates images using a model like gpt-image-1.

ImageGenToolBackgroundExtensions
ImageGenToolCallItemParam

An image generation request made by the model.

ImageGenToolCallItemResource

An image generation request made by the model.

ImageGenToolCallItemResourceStatusExtensions
ImageGenToolInputImageMask

The ImageGenToolInputImageMask.

ImageGenToolModerationExtensions
ImageGenToolOutputFormatExtensions
ImageGenToolQualityExtensions
ImageGenToolSizeExtensions
IncludableExtensions
ItemContent

The ItemContent. Please note ItemContent 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 ItemContentInputAudio, ItemContentInputFile, ItemContentInputImage, ItemContentInputText, ItemContentOutputAudio, ItemContentOutputText and ItemContentRefusal.

ItemContentInputAudio

An audio input to the model.

ItemContentInputAudioFormatExtensions
ItemContentInputFile

A file input to the model.

ItemContentInputImage

An image input to the model. Learn about image inputs.

ItemContentInputImageDetailExtensions
ItemContentInputText

A text input to the model.

ItemContentOutputAudio

An audio output from the model.

ItemContentOutputText

A text output from the model.

ItemContentRefusal

A refusal from the model.

ItemContentTypeExtensions
ItemParam

Content item used to generate a response. Please note ItemParam 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 ResponsesAssistantMessageItemParam, CodeInterpreterToolCallItemParam, ComputerToolCallItemParam, ComputerToolCallOutputItemParam, ResponsesDeveloperMessageItemParam, FileSearchToolCallItemParam, FunctionToolCallItemParam, FunctionToolCallOutputItemParam, ImageGenToolCallItemParam, ItemReferenceItemParam, LocalShellToolCallItemParam, LocalShellToolCallOutputItemParam, MCPApprovalRequestItemParam, MCPApprovalResponseItemParam, MCPCallItemParam, MCPListToolsItemParam, MemorySearchToolCallItemParam, ResponsesMessageItemParam, ReasoningItemParam, ResponsesSystemMessageItemParam, ResponsesUserMessageItemParam and WebSearchToolCallItemParam.

ItemReferenceItemParam

An public identifier for an item to reference.

ItemResource

Content item used to generate a response. Please note ItemResource 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 ResponsesAssistantMessageItemResource, CodeInterpreterToolCallItemResource, ComputerToolCallItemResource, ComputerToolCallOutputItemResource, ResponsesDeveloperMessageItemResource, FileSearchToolCallItemResource, FunctionToolCallItemResource, FunctionToolCallOutputItemResource, ImageGenToolCallItemResource, InvokeAzureAgentWorkflowActionOutputItemResource, LocalShellToolCallItemResource, LocalShellToolCallOutputItemResource, MCPApprovalRequestItemResource, MCPApprovalResponseItemResource, MCPCallItemResource, MCPListToolsItemResource, MemorySearchToolCallItemResource, ResponsesMessageItemResource, OAuthConsentRequestItemResource, ReasoningItemResource, StructuredOutputsItemResource, ResponsesSystemMessageItemResource, ResponsesUserMessageItemResource, WebSearchToolCallItemResource and WorkflowActionOutputItemResource.

ListAgentsRequestOrderExtensions
LocalShellExecAction

Execute a shell command on the server.

LocalShellTool

A tool that allows the model to execute shell commands in a local environment.

LocalShellToolCallItemParam

A tool call to run a command on the local shell.

LocalShellToolCallItemResource

A tool call to run a command on the local shell.

LocalShellToolCallItemResourceStatusExtensions
LocalShellToolCallOutputItemParam

The output of a local shell tool call.

LocalShellToolCallOutputItemResource

The output of a local shell tool call.

LocalShellToolCallOutputItemResourceStatusExtensions
Location

The Location. Please note Location 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 ApproximateLocation.

LogProb

The log probability of a token.

MCPApprovalRequestItemParam

A request for human approval of a tool invocation.

MCPApprovalRequestItemResource

A request for human approval of a tool invocation.

MCPApprovalResponseItemParam

A response to an MCP approval request.

MCPApprovalResponseItemResource

A response to an MCP approval request.

MCPCallItemParam

An invocation of a tool on an MCP server.

MCPCallItemResource

An invocation of a tool on an MCP server.

MCPListToolsItemParam

A list of tools available on an MCP server.

MCPListToolsItemResource

A list of tools available on an MCP server.

MCPListToolsTool

A tool available on an MCP server.

MCPTool

Give the model access to additional tools via remote Model Context Protocol (MCP) servers. Learn more about MCP.

MCPToolAllowedTools1

The MCPToolAllowedTools1.

MCPToolRequireApproval1

The MCPToolRequireApproval1.

MCPToolRequireApprovalAlways

The MCPToolRequireApprovalAlways.

MCPToolRequireApprovalNever

The MCPToolRequireApprovalNever.

MicrosoftFabricAgentTool

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

OAuthConsentRequestItemResource

Request from the service for the user to perform OAuth consent.

OpenApiAgentTool

The input definition information for an OpenAPI 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, OpenApiManagedAuthDetails and OpenApiProjectConnectionAuthDetails.

OpenApiFunctionDefinition

The input definition information for an openapi function.

OpenApiFunctionDefinitionFunction

The OpenApiFunctionDefinitionFunction.

OpenApiManagedAuthDetails

Security details for OpenApi managed_identity authentication.

OpenApiManagedSecurityScheme

Security scheme for OpenApi managed_identity authentication.

OpenApiProjectConnectionAuthDetails

Security details for OpenApi project connection authentication.

OpenApiProjectConnectionSecurityScheme

Security scheme for OpenApi managed_identity authentication.

Prompt

Reference to a prompt template and its variables. Learn more.

RankingOptions

The RankingOptions.

RankingOptionsRankerExtensions
Reasoning

o-series models only

Configuration options for reasoning models.

ReasoningEffortExtensions
ReasoningGenerateSummaryExtensions
ReasoningItemParam

A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API for subsequent turns of a conversation if you are manually managing context.

ReasoningItemResource

A description of the chain of thought used by a reasoning model while generating a response. Be sure to include these items in your input to the Responses API for subsequent turns of a conversation if you are manually managing context.

ReasoningItemSummaryPart

The ReasoningItemSummaryPart. Please note ReasoningItemSummaryPart 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 ReasoningItemSummaryTextPart.

ReasoningItemSummaryTextPart

The ReasoningItemSummaryTextPart.

ReasoningSummaryExtensions
ResponseCodeInterpreterCallCodeDeltaEvent

Emitted when a partial code snippet is streamed by the code interpreter.

ResponseCodeInterpreterCallCodeDoneEvent

Emitted when the code snippet is finalized by the code interpreter.

ResponseCodeInterpreterCallCompletedEvent

Emitted when the code interpreter call is completed.

ResponseCodeInterpreterCallInProgressEvent

Emitted when a code interpreter call is in progress.

ResponseCodeInterpreterCallInterpretingEvent

Emitted when the code interpreter is actively interpreting the code snippet.

ResponseCompletedEvent

Emitted when the model response is complete.

ResponseContentPartAddedEvent

Emitted when a new content part is added.

ResponseContentPartDoneEvent

Emitted when a content part is done.

ResponseCreatedEvent

An event that is emitted when a response is created.

ResponseError

An error object returned when the model fails to generate a Response.

ResponseErrorCodeExtensions
ResponseErrorEvent

Emitted when an error occurs.

ResponseFailedEvent

An event that is emitted when a response fails.

ResponseFileSearchCallCompletedEvent

Emitted when a file search call is completed (results found).

ResponseFileSearchCallInProgressEvent

Emitted when a file search call is initiated.

ResponseFileSearchCallSearchingEvent

Emitted when a file search is currently searching.

ResponseFormatJsonSchemaSchema

The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas here.

ResponseFunctionCallArgumentsDeltaEvent

Emitted when there is a partial function-call arguments delta.

ResponseFunctionCallArgumentsDoneEvent

Emitted when function-call arguments are finalized.

ResponseImageGenCallCompletedEvent

Emitted when an image generation tool call has completed and the final image is available.

ResponseImageGenCallGeneratingEvent

Emitted when an image generation tool call is actively generating an image (intermediate state).

ResponseImageGenCallInProgressEvent

Emitted when an image generation tool call is in progress.

ResponseImageGenCallPartialImageEvent

Emitted when a partial image is available during image generation streaming.

ResponseIncompleteDetails1

The ResponseIncompleteDetails1.

ResponseIncompleteDetailsReasonExtensions
ResponseIncompleteEvent

An event that is emitted when a response finishes as incomplete.

ResponseInProgressEvent

Emitted when the response is in progress.

ResponseMCPCallArgumentsDeltaEvent

Emitted when there is a delta (partial update) to the arguments of an MCP tool call.

ResponseMCPCallArgumentsDoneEvent

Emitted when the arguments for an MCP tool call are finalized.

ResponseMCPCallCompletedEvent

Emitted when an MCP tool call has completed successfully.

ResponseMCPCallFailedEvent

Emitted when an MCP tool call has failed.

ResponseMCPCallInProgressEvent

Emitted when an MCP tool call is in progress.

ResponseMCPListToolsCompletedEvent

Emitted when the list of available MCP tools has been successfully retrieved.

ResponseMCPListToolsFailedEvent

Emitted when the attempt to list available MCP tools has failed.

ResponseMCPListToolsInProgressEvent

Emitted when the system is in the process of retrieving the list of available MCP tools.

ResponseOutputItemAddedEvent

Emitted when a new output item is added.

ResponseOutputItemDoneEvent

Emitted when an output item is marked done.

ResponsePromptVariables

Optional map of values to substitute in for variables in your prompt. The substitution values can either be strings, or other Response input types like images or files.

ResponseQueuedEvent

Emitted when a response is queued and waiting to be processed.

ResponseReasoningDeltaEvent

Emitted when there is a delta (partial update) to the reasoning content.

ResponseReasoningDoneEvent

Emitted when the reasoning content is finalized for an item.

ResponseReasoningSummaryDeltaEvent

Emitted when there is a delta (partial update) to the reasoning summary content.

ResponseReasoningSummaryDoneEvent

Emitted when the reasoning summary content is finalized for an item.

ResponseReasoningSummaryPartAddedEvent

Emitted when a new reasoning summary part is added.

ResponseReasoningSummaryPartDoneEvent

Emitted when a reasoning summary part is completed.

ResponseReasoningSummaryTextDeltaEvent

Emitted when a delta is added to a reasoning summary text.

ResponseReasoningSummaryTextDoneEvent

Emitted when a reasoning summary text is completed.

ResponseRefusalDeltaEvent

Emitted when there is a partial refusal text.

ResponseRefusalDoneEvent

Emitted when refusal text is finalized.

ResponsesAssistantMessageItemParam

A message parameter item with the assistant role.

ResponsesAssistantMessageItemResource

A message resource item with the assistant role.

ResponsesDeveloperMessageItemParam

A message parameter item with the developer role.

ResponsesDeveloperMessageItemResource

A message resource item with the developer role.

ResponsesMessageItemParam

A response message item, representing a role and content, as provided as client request parameters. Please note ResponsesMessageItemParam 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 ResponsesAssistantMessageItemParam, ResponsesDeveloperMessageItemParam, ResponsesSystemMessageItemParam and ResponsesUserMessageItemParam.

ResponsesMessageItemResource

A response message resource item, representing a role and content, as provided on service responses. Please note ResponsesMessageItemResource 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 ResponsesAssistantMessageItemResource, ResponsesDeveloperMessageItemResource, ResponsesSystemMessageItemResource and ResponsesUserMessageItemResource.

ResponsesMessageItemResourceStatusExtensions
ResponsesMessageRoleExtensions
ResponsesSystemMessageItemParam

A message parameter item with the system role.

ResponsesSystemMessageItemResource

A message resource item with the system role.

ResponseStatusExtensions
ResponseStreamEvent

The ResponseStreamEvent. Please note ResponseStreamEvent 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 ResponseErrorEvent, ResponseCodeInterpreterCallCodeDeltaEvent, ResponseCodeInterpreterCallCodeDoneEvent, ResponseCodeInterpreterCallCompletedEvent, ResponseCodeInterpreterCallInProgressEvent, ResponseCodeInterpreterCallInterpretingEvent, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseFileSearchCallCompletedEvent, ResponseFileSearchCallInProgressEvent, ResponseFileSearchCallSearchingEvent, ResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseImageGenCallCompletedEvent, ResponseImageGenCallGeneratingEvent, ResponseImageGenCallInProgressEvent, ResponseImageGenCallPartialImageEvent, ResponseInProgressEvent, ResponseIncompleteEvent, ResponseMCPCallArgumentsDeltaEvent, ResponseMCPCallArgumentsDoneEvent, ResponseMCPCallCompletedEvent, ResponseMCPCallFailedEvent, ResponseMCPCallInProgressEvent, ResponseMCPListToolsCompletedEvent, ResponseMCPListToolsFailedEvent, ResponseMCPListToolsInProgressEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseTextDeltaEvent, ResponseTextDoneEvent, ResponseQueuedEvent, ResponseReasoningSummaryPartAddedEvent, ResponseReasoningSummaryPartDoneEvent, ResponseReasoningSummaryTextDeltaEvent, ResponseReasoningSummaryTextDoneEvent, ResponseReasoningSummaryDeltaEvent, ResponseReasoningSummaryDoneEvent, ResponseReasoningDeltaEvent, ResponseReasoningDoneEvent, ResponseRefusalDeltaEvent, ResponseRefusalDoneEvent, ResponseWebSearchCallCompletedEvent, ResponseWebSearchCallInProgressEvent and ResponseWebSearchCallSearchingEvent.

ResponsesUserMessageItemParam

A message parameter item with the user role.

ResponsesUserMessageItemResource

A message resource item with the user role.

ResponseTextDeltaEvent

Emitted when there is an additional text delta.

ResponseTextDoneEvent

Emitted when text content is finalized.

ResponseTextFormatConfiguration

The ResponseTextFormatConfiguration. Please note ResponseTextFormatConfiguration 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 ResponseTextFormatConfigurationJsonObject, ResponseTextFormatConfigurationJsonSchema and ResponseTextFormatConfigurationText.

ResponseTextFormatConfigurationJsonObject

The ResponseTextFormatConfigurationJsonObject.

ResponseTextFormatConfigurationJsonSchema

JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs.

ResponseTextFormatConfigurationText

The ResponseTextFormatConfigurationText.

ResponseUsage

Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.

ResponseUsageInputTokensDetails

The ResponseUsageInputTokensDetails.

ResponseUsageOutputTokensDetails

The ResponseUsageOutputTokensDetails.

ResponseWebSearchCallCompletedEvent

Note: web_search is not yet available via Azure OpenAI.

ResponseWebSearchCallInProgressEvent

Note: web_search is not yet available via Azure OpenAI.

ResponseWebSearchCallSearchingEvent

Note: web_search is not yet available via Azure OpenAI.

ServiceTierExtensions
SharepointAgentTool

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

SharepointGroundingToolParameters

The sharepoint grounding tool parameters.

StructuredInputDefinition

An structured input that can participate in prompt template substitutions and tool argument binding.

StructuredOutputDefinition

A structured output that can be produced by the agent.

StructuredOutputsItemResource

The StructuredOutputsItemResource.

Tool

The Tool. Please note Tool 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 A2ATool, AzureAISearchAgentTool, AzureFunctionAgentTool, BingCustomSearchAgentTool, BingGroundingAgentTool, BrowserAutomationAgentTool, CaptureStructuredOutputsTool, CodeInterpreterTool, ComputerUsePreviewTool, MicrosoftFabricAgentTool, FileSearchTool, FunctionTool, ImageGenTool, LocalShellTool, MCPTool, MemorySearchTool, OpenApiAgentTool, SharepointAgentTool and WebSearchPreviewTool.

ToolArgumentBinding

The ToolArgumentBinding.

ToolChoiceObject

The ToolChoiceObject. Please note ToolChoiceObject 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 ToolChoiceObjectCodeInterpreter, ToolChoiceObjectComputer, ToolChoiceObjectFileSearch, ToolChoiceObjectFunction, ToolChoiceObjectImageGen, ToolChoiceObjectMCP and ToolChoiceObjectWebSearch.

ToolChoiceObjectCodeInterpreter

The ToolChoiceObjectCodeInterpreter.

ToolChoiceObjectComputer

The ToolChoiceObjectComputer.

ToolChoiceObjectFileSearch

The ToolChoiceObjectFileSearch.

ToolChoiceObjectFunction

Use this option to force the model to call a specific function.

ToolChoiceObjectImageGen

The ToolChoiceObjectImageGen.

ToolChoiceObjectMCP

Use this option to force the model to call a specific tool on a remote MCP server.

ToolChoiceObjectWebSearch

Note: web_search is not yet available via Azure OpenAI.

ToolChoiceOptionsExtensions
ToolProjectConnection

A project connection resource.

ToolProjectConnectionList

A set of project connection resources currently used by either the bing_grounding, fabric_dataagent, or sharepoint_grounding tools.

TopLogProb

The top log probability of a token.

UnknownAnnotation

Unknown version of Annotation.

UnknownCodeInterpreterOutput

Unknown version of CodeInterpreterOutput.

UnknownComputerAction

Unknown version of ComputerAction.

UnknownComputerToolCallOutputItemOutput

Unknown version of ComputerToolCallOutputItemOutput.

UnknownItemContent

Unknown version of ItemContent.

UnknownItemParam

Unknown version of ItemParam.

UnknownItemResource

Unknown version of ItemResource.

UnknownLocation

Unknown version of Location.

UnknownOpenApiAuthDetails

Unknown version of OpenApiAuthDetails.

UnknownReasoningItemSummaryPart

Unknown version of ReasoningItemSummaryPart.

UnknownResponseStreamEvent

Unknown version of ResponseStreamEvent.

UnknownResponseTextFormatConfiguration

Unknown version of ResponseTextFormatConfiguration.

UnknownTool

Unknown version of Tool.

UnknownToolChoiceObject

Unknown version of ToolChoiceObject.

UnknownWebSearchAction

Unknown version of WebSearchAction.

VectorStoreFileAttributes

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.

WebSearchAction

The WebSearchAction. Please note WebSearchAction 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 WebSearchActionFind, WebSearchActionOpenPage and WebSearchActionSearch.

WebSearchActionFind

Action type "find": Searches for a pattern within a loaded page.

WebSearchActionOpenPage

Action type "open_page" - Opens a specific URL from search results.

WebSearchActionSearch

Action type "search" - Performs a web search query.

WebSearchActionTypeExtensions
WebSearchPreviewTool

Note: web_search is not yet available via Azure OpenAI.

WebSearchPreviewToolSearchContextSizeExtensions
WebSearchToolCallItemParam

The results of a web search tool call. See the web search guide for more information.

WebSearchToolCallItemResource

The results of a web search tool call. See the web search guide for more information.

WebSearchToolCallItemResourceStatusExtensions

Structs

Name Description
AnnotationType

The AnnotationType.

AzureAISearchQueryType

Available query types for Azure AI Search tool.

AzureFunctionBindingType

The AzureFunctionBindingType.

CodeInterpreterToolAutoType

The CodeInterpreterToolAutoType.

ComputerToolCallOutputItemOutputType

A computer screenshot image used with the computer use tool.

ImageGenToolModel

The ImageGenToolModel.

ItemType

The ItemType.

LocalShellExecActionType

The LocalShellExecActionType.

LocationType

The LocationType.

OpenApiAuthType

Authentication type for OpenApi endpoint. Allowed types are:

  • Anonymous (no authentication required)
  • Project Connection (requires project_connection_id to endpoint, as setup in AI Foundry)
  • Managed_Identity (requires audience for identity based auth)
ReasoningItemSummaryPartType

The ReasoningItemSummaryPartType.

ResponseStreamEventType

The ResponseStreamEventType.

ResponseTextFormatConfigurationType

An object specifying the format that the model must output.

Configuring { "type": "json_schema" } enables Structured Outputs, which ensures the model will match your supplied JSON schema. Learn more in the Structured Outputs guide.

The default format is { "type": "text" } with no additional options.

Not recommended for gpt-4o and newer models:

Setting to { "type": "json_object" } enables the older JSON mode, which ensures the message the model generates is valid JSON. Using json_schema is preferred for models that support it.

ToolChoiceObjectType

Indicates that the model should use a built-in tool to generate a response. Learn more about built-in tools.

ToolType

A tool that can be used to generate a response.

Enums

Name Description
CodeInterpreterOutputType

The CodeInterpreterOutputType.

CodeInterpreterToolCallItemResourceStatus

The CodeInterpreterToolCallItemResourceStatus.

ComparisonFilterType

The ComparisonFilterType.

CompoundFilterType

The CompoundFilterType.

ComputerActionClickButton

The ComputerActionClickButton.

ComputerActionType

The ComputerActionType.

ComputerToolCallItemResourceStatus

The ComputerToolCallItemResourceStatus.

ComputerToolCallOutputItemResourceStatus

The ComputerToolCallOutputItemResourceStatus.

ComputerUsePreviewToolEnvironment

The ComputerUsePreviewToolEnvironment.

FileSearchToolCallItemResourceStatus

The FileSearchToolCallItemResourceStatus.

FunctionToolCallItemResourceStatus

The FunctionToolCallItemResourceStatus.

FunctionToolCallOutputItemResourceStatus

The FunctionToolCallOutputItemResourceStatus.

ImageGenToolBackground

The ImageGenToolBackground.

ImageGenToolCallItemResourceStatus

The ImageGenToolCallItemResourceStatus.

ImageGenToolModeration

The ImageGenToolModeration.

ImageGenToolOutputFormat

The ImageGenToolOutputFormat.

ImageGenToolQuality

The ImageGenToolQuality.

ImageGenToolSize

The ImageGenToolSize.

Includable

Specify additional output data to include in the model response. Currently supported values are:

  • code_interpreter_call.outputs: Includes the outputs of python code execution in code interpreter tool call items.
  • computer_call_output.output.image_url: Include image urls from the computer call output.
  • file_search_call.results: Include the search results of the file search tool call.
  • message.input_image.image_url: Include image urls from the input message.
  • message.output_text.logprobs: Include logprobs with assistant messages.
  • reasoning.encrypted_content: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the store parameter is set to false, or when an organization is enrolled in the zero data retention program).
ItemContentInputAudioFormat

The ItemContentInputAudioFormat.

ItemContentInputImageDetail

The ItemContentInputImageDetail.

ItemContentType

Multi-modal input and output contents.

ListAgentsRequestOrder

The ListAgentsRequestOrder.

LocalShellToolCallItemResourceStatus

The LocalShellToolCallItemResourceStatus.

LocalShellToolCallOutputItemResourceStatus

The LocalShellToolCallOutputItemResourceStatus.

RankingOptionsRanker

The RankingOptionsRanker.

ReasoningEffort

o-series models only

Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.

ReasoningGenerateSummary

The ReasoningGenerateSummary.

ReasoningSummary

The ReasoningSummary.

ResponseErrorCode

The error code for the response.

ResponseIncompleteDetailsReason

The ResponseIncompleteDetailsReason.

ResponsesMessageItemResourceStatus

The ResponsesMessageItemResourceStatus.

ResponsesMessageRole

The collection of valid roles for responses message items.

ResponseStatus

The ResponseStatus.

ServiceTier

Specifies the processing type used for serving the request.

  • If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
  • If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
  • If set to 'flex' or 'priority', then the request will be processed with the corresponding service tier. Contact sales to learn more about Priority processing.
  • When not set, the default behavior is 'auto'.

When the service_tier parameter is set, the response body will include the service_tier value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.

ToolChoiceOptions

Controls which (if any) tool is called by the model.

none means the model will not call any tool and instead generates a message.

auto means the model can pick between generating a message or calling one or more tools.

required means the model must call one or more tools.

WebSearchActionType

The WebSearchActionType.

WebSearchPreviewToolSearchContextSize

The WebSearchPreviewToolSearchContextSize.

WebSearchToolCallItemResourceStatus

The WebSearchToolCallItemResourceStatus.