AzurePromptAgentResource.WithTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26567.5
type AzurePromptAgentResource interface {
// ... 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

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: