Skip to main content

Overview

Use tool(name: Optional[str] = None, version: Optional[int] = None, method_name: Optional[str] = None) to mark a tool operation. Tool spans inherit the current entity path and appear under the nearest agent/workflow/task.

Function usage

Class usage

Parameters

  • name: tool name
  • version: optional integer version
  • method_name: for class decoration, the method to wrap