FoundryAITool Class
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.
Provides factory methods for creating AITool instances from Microsoft Foundry and OpenAI response tools.
public static class FoundryAITool
type FoundryAITool = class
Public Class FoundryAITool
- Inheritance
-
FoundryAITool
Remarks
This class wraps Azure.AI.Projects.Agents.AgentTool (Azure.AI.Projects.OpenAI) and OpenAI.Responses.ResponseTool (OpenAI SDK) factory methods, returning AITool directly — eliminating the need for manual casting and .AsAITool() calls.
Instead of writing: ((ResponseTool)AgentTool.CreateOpenApiTool(definition)).AsAITool() You can write: FoundryAITool.CreateOpenApiTool(definition)