FunctionToolResource
Class sealed net8.0
A Foundry tool resource that enables an agent to call a user-defined function.
namespace Aspire.Hosting.Foundry;
public sealed class FunctionToolResource : Aspire.Hosting.Foundry.FoundryToolResource{ // ...} 6 members
Remarks
Section titled Remarks Function calling tools allow agents to invoke functions defined by the application. The agent decides when to call the function based on the function name, description, and parameter schema, then returns a structured function call request that the application handles.
Constructors1
Section titled ConstructorsFunctionToolResource(string, AzureCognitiveServicesProjectResource, string, BinaryData, string?, bool?) Creates a new instance of the
FunctionToolResource class. Properties4
Section titled PropertiesDescriptiongetstring? Gets the description of the function.
FunctionNamegetstring Gets the name of the function.
ParametersgetBinaryData Gets the JSON schema defining the function parameters.
StrictModeEnabledgetbool? Gets whether strict mode is enabled for parameter validation.