FoundryAITool.CreateOpenApiTool(OpenApiFunctionDefinition) 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.
Creates an AITool for OpenAPI tool invocations.
public static Microsoft.Extensions.AI.AITool CreateOpenApiTool(Azure.AI.Projects.Agents.OpenApiFunctionDefinition definition);
static member CreateOpenApiTool : Azure.AI.Projects.Agents.OpenApiFunctionDefinition -> Microsoft.Extensions.AI.AITool
Public Shared Function CreateOpenApiTool (definition As OpenApiFunctionDefinition) As AITool
Parameters
- definition
- OpenApiFunctionDefinition
The OpenAPI function definition specifying the API endpoint, schema, and authentication.
Returns
An AITool that calls the specified OpenAPI endpoint.