Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzurePromptAgentResource) 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().

Applies to

This method applies to the following types: