4 types derived from AITool
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunction.cs (1)
12public abstract class AIFunction : AITool
HostedCodeInterpreterTool.cs (1)
11public class HostedCodeInterpreterTool : AITool
HostedWebSearchTool.cs (1)
11public class HostedWebSearchTool : AITool
Microsoft.Extensions.AI.Abstractions.Tests (1)
AIToolTests.cs (1)
20private sealed class DerivedAITool : AITool;
37 references to AITool
Microsoft.Extensions.AI.Abstractions (6)
AITool.cs (1)
17/// <summary>Initializes a new instance of the <see cref="AITool"/> class.</summary>
ChatCompletion\ChatOptions.cs (2)
116public IList<AITool>? Tools { get; set; } 176options.Tools = new List<AITool>(Tools);
ChatCompletion\ChatToolMode.cs (2)
33/// <see cref="ChatOptions.Tools"/> can contain zero or more <see cref="AITool"/> 42/// <see cref="ChatOptions.Tools"/> can contain zero or more <see cref="AITool"/>
Functions\AIFunctionFactoryOptions.cs (1)
54/// Gets or sets additional values to store on the resulting <see cref="AITool.AdditionalProperties" /> property.
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatOptionsTests.cs (1)
66List<AITool> tools =
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
343foreach (AITool tool in tools)
Microsoft.Extensions.AI.Evaluation.Quality (25)
AIToolExtensions.cs (1)
15this IEnumerable<AITool> toolDefinitions,
IntentResolutionEvaluator.cs (1)
28/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via
IntentResolutionEvaluatorContext.cs (7)
22/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 39/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 42public IntentResolutionEvaluatorContext(params AITool[] toolDefinitions) 58/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 61public IntentResolutionEvaluatorContext(IEnumerable<AITool> toolDefinitions) 84/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 88public IReadOnlyList<AITool> ToolDefinitions { get; }
TaskAdherenceEvaluator.cs (1)
27/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via
TaskAdherenceEvaluatorContext.cs (7)
23/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 40/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 43public TaskAdherenceEvaluatorContext(params AITool[] toolDefinitions) 59/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 62public TaskAdherenceEvaluatorContext(IEnumerable<AITool> toolDefinitions) 86/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 90public IReadOnlyList<AITool> ToolDefinitions { get; }
ToolCallAccuracyEvaluator.cs (1)
28/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via
ToolCallAccuracyEvaluatorContext.cs (7)
24/// defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 41/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 44public ToolCallAccuracyEvaluatorContext(params AITool[] toolDefinitions) 60/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions will be ignored. 63public ToolCallAccuracyEvaluatorContext(IEnumerable<AITool> toolDefinitions) 88/// are defined as <see cref="AIFunction"/>s. Any other <see cref="AITool"/> definitions that are supplied via 92public IReadOnlyList<AITool> ToolDefinitions { get; }
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
167private static ChatMessage CreateToolPrompt(IList<AITool> tools)
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantChatClient.cs (1)
294foreach (AITool tool in tools)
OpenAIChatClient.cs (1)
533foreach (AITool tool in tools)
OpenAIResponseChatClient.cs (1)
393foreach (AITool tool in tools)