Watch Aspire live streamsDocsTry Aspire

FoundryToolboxResource

Handle
📦 Aspire.Hosting.Foundry v13.6.0-preview.1.26478.8
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
namestring
searchAzureSearchResource
indexNamestring
descriptionstringoptional
FoundryToolboxResource
methodwithDescriptionbuilder
Sets the description persisted with each Toolbox version.
withDescription(description: string): FoundryToolboxResource
descriptionstring
FoundryToolboxResource
methodwithMcpToolbuilder
Adds an MCP tool definition to the Toolbox.
withMcpTool(
name: string,
endpoint: string | EndpointReference | ReferenceExpression,
options?: FoundryToolboxMcpToolOptions): FoundryToolboxResource
namestring
endpointstring | EndpointReference | ReferenceExpression
optionsFoundryToolboxMcpToolOptionsoptional
FoundryToolboxResource
methodwithWebSearchToolbuilder
Adds a web search tool definition to the Toolbox.
withWebSearchTool(
name?: string,
description?: string): FoundryToolboxResource
namestringoptional= web-search
descriptionstringoptional
FoundryToolboxResource