Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithWebSearchTool

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (FoundryToolboxResource) WithWebSearchTool(options ...*WithWebSearchToolOptions) FoundryToolboxResource

Signature

methodWithWebSearchToolbuilder
Adds a web search tool definition to the Toolbox.
WithWebSearchTool(options ...*WithWebSearchToolOptions) FoundryToolboxResource
options...*WithWebSearchToolOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithWebSearchToolOptions argument.

Name*stringThe tool name.
Description*stringAn optional description of the web search tool.
FoundryToolboxResource

The resource builder.

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

Applies to

This method applies to the following types: