Skip to content

OpenAIFunctionTool

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  352466270["typedefs.OpenAIFunctionTool"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 352466270
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Complete OpenAI tool definition for function calling.

This represents the top-level tool object that wraps a function definition and identifies it as a function tool type.

Source code in src/schemez/functionschema/typedefs.py
class OpenAIFunctionTool(TypedDict):
    """Complete OpenAI tool definition for function calling.

    This represents the top-level tool object that wraps a function definition
    and identifies it as a function tool type.
    """

    type: Literal["function"]
    function: OpenAIFunctionDefinition

:fa-brands-github: Show source on GitHub