We use cookies on our website.
Docs
API Reference
Schema
ParamDocumentation, ToolDocumentation, ToolReturn

ParamDocumentation, ToolDocumentation, ToolReturn

ParamDocumentation

Represents the documentation for a function parameter.

Attributes

  • name (str): The name of the parameter.
  • desc (str): The description of the parameter.

ToolDocumentation

Represents the documentation for a tool.

Attributes

  • name (str): The name of the tool.
  • desc (str): The description of the tool.
  • params (List[ParamDocumentation], optional): Documentation of the parameters of the tool.

ToolReturn

Represents the return type of a tool.

Attributes

  • output (Any): The output of the tool.
  • exit_code (Literal[0, 1]): The exit code of the tool (0: success, 1: failure)