withTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
interface AzurePromptAgentResource {
// ... omitted for brevity
withTool(tool: FoundryToolResource): AzurePromptAgentResource;
}

Signature

methodwithToolbuilder
Adds a tool to a prompt agent.
withTool(tool: FoundryToolResource): AzurePromptAgentResource
toolFoundryToolResourceThe tool resource to attach to this agent.
AzurePromptAgentResource

Applies to

This method applies to the following types: