Skip to content

OpenAIFunctionDefinition

Base classes

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

⋔ Inheritance diagram

graph TD
  3967610493["typedefs.OpenAIFunctionDefinition"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3967610493
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Schema for the function definition part of an OpenAI tool.

This represents the inner "function" object that contains the actual function metadata and parameters.

Source code in src/schemez/functionschema/typedefs.py
class OpenAIFunctionDefinition(TypedDict):
    """Schema for the function definition part of an OpenAI tool.

    This represents the inner "function" object that contains the actual
    function metadata and parameters.
    """

    name: str
    description: str
    parameters: ToolParameters

:fa-brands-github: Show source on GitHub