Get Schema • AI Agent SDK

get_schema: Get OpenAI-compatible function schema for this tool.

get_schema

Method

</div>

This is a method of the BaseTool class in the base module.

Get OpenAI-compatible function schema for this tool.

Applies dynamic schema overrides if present.

Signature

python
def get_schema() -> Dict[str, Any]

Returns

ResponseField Dict[str, Any]

The result of the operation.

Uses

  • copy.deepcopy
  • logging.warning

Used By

Source

View on GitHub

praisonaiagents/tools/base.py at line 331