Skip to main content

get_tool_schema

Function
This function is defined in the decorator module.
Get OpenAI-compatible schema for any tool-like object. Supports:
  • BaseTool instances
  • FunctionTool instances
  • Plain functions (generates schema from signature)
  • LangChain tools
  • CrewAI tools

Signature

Parameters

Any
required
No description available.

Returns

Optional[Dict[str, Any]]
The result of the operation.

Uses

  • obj.get_schema
  • callable

Used By

Source

View on GitHub

praisonaiagents/tools/decorator.py at line 380

Tools Concept

Create Custom Tools

Tool Development