FoundryToolboxResource

Handle
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface FoundryToolboxResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IValueProvider,
IValueWithReferences {
asExisting(): FoundryToolboxResource;
publishAsExisting(): FoundryToolboxResource;
runAsExisting(): FoundryToolboxResource;
withAISearchTool(
name: string,
search: AzureSearchResource,
indexName: string,
description?: string): FoundryToolboxResource;
withDescription(description: string): FoundryToolboxResource;
withMcpTool(
name: string,
endpoint: string | EndpointReference | ReferenceExpression,
options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource;
withWebSearchTool(
name?: string,
description?: string): FoundryToolboxResource;
}

Methods

methodasExistingbuilder
Uses an existing Microsoft Foundry Toolbox during local runs and deployment.
asExisting(): FoundryToolboxResource
FoundryToolboxResource
methodpublishAsExistingbuilder
Reconciles a Microsoft Foundry Toolbox during local runs and uses an existing Toolbox during deployment.
publishAsExisting(): FoundryToolboxResource
FoundryToolboxResource
methodrunAsExistingbuilder
Uses an existing Microsoft Foundry Toolbox during local runs and reconciles it during deployment.
runAsExisting(): FoundryToolboxResource
FoundryToolboxResource
methodwithAISearchToolbuilder
Adds an Azure AI Search tool definition to the Toolbox.
withAISearchTool(
name: string,
search: AzureSearchResource,
indexName: string,
description?: string): FoundryToolboxResource
namestringThe tool name.
searchAzureSearchResourceThe Azure AI Search resource backing the tool.
indexNamestringThe search index name.
descriptionstringoptionalAn optional description of the Azure AI Search tool.
FoundryToolboxResource
methodwithDescriptionbuilder
Sets the description persisted with each Toolbox version.
withDescription(description: string): FoundryToolboxResource
descriptionstringThe Toolbox description.
FoundryToolboxResource
methodwithMcpToolbuilder
Adds an MCP tool definition to the Toolbox.
withMcpTool(
name: string,
endpoint: string | EndpointReference | ReferenceExpression,
options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource
namestringThe tool name.
endpointstring | EndpointReference | ReferenceExpressionThe MCP endpoint. A string URI, an `EndpointReference` pointing at a resource endpoint, or a `ReferenceExpression` for cases where the endpoint URL needs to be composed (for example, appending the MCP server's mount path or chaining through a public ingress like a dev tunnel).
optionsFoundryToolboxMcpToolOptionsoptionalOptional MCP server metadata and approval policy.
FoundryToolboxResource
methodwithWebSearchToolbuilder
Adds a web search tool definition to the Toolbox.
withWebSearchTool(
name?: string,
description?: string): FoundryToolboxResource
namestringoptional= web-searchThe tool name.
descriptionstringoptionalAn optional description of the web search tool.
FoundryToolboxResource