Skip to content
DocsTry Aspire
DocsTry

withTool

Method
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
interface AzurePromptAgentResource {
// ... omitted for brevity
withTool(tool: FoundryToolResource): AzurePromptAgentResource;
}

Signature

methodwithToolbuilder
Adds a tool to a prompt agent.
withTool(tool: FoundryToolResource): AzurePromptAgentResource
toolFoundryToolResource
AzurePromptAgentResource

Applies to

This method applies to the following types: