你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Tool Class

An abstract class representing a tool that can be used by an agent.

Constructor

Tool()

Methods

execute

Execute the tool with the provided tool call.

execute

Execute the tool with the provided tool call.

abstract execute(tool_call: Any) -> Any

Parameters

Name Description
tool_call
Required
Any

The tool call to execute.

Returns

Type Description

The output of the tool operations.

Attributes

definitions

Get the tool definitions.

abstract property definitions: List[ToolDefinitionT]

resources

Get the tool resources.

abstract property resources: ToolResources