withTool
Method
interface AzurePromptAgentResource { // ... omitted for brevity withTool(tool: FoundryToolResource): AzurePromptAgentResource;}Signature
method
withTool builderAdds a tool to a prompt agent.
withTool(tool: FoundryToolResource): AzurePromptAgentResourceParameters
toolFoundryToolResource The tool resource to attach to this agent.Returns
AzurePromptAgentResource Applies to
This method applies to the following types: