Module functions

Source
Expand description

Contains API for function calling

Structs§

FunctionCall
Represents a function call attempted by ChatGPT API
FunctionDescriptor
A descriptor containing information about a ChatGPT function
GptFunction
This struct represents a ChatGPT function.

Enums§

FunctionCallingMode
Determines how ChatGPT will be calling the functions.
FunctionValidationStrategy
Determines how this client will validate function calls.

Traits§

CallableAsyncFunction
This trait represents a struct containing actual ChatGPT function handling logic
FunctionArgument
This trait represents an object containing ChatGPT function arguments. To use this trait, just derive JsonSchema and [Deserialize]
GptFunctionHolder
Trait that indicates a callable GPT Function. Should not be implemented directly, see GptFunction instead.

Attribute Macros§

gpt_function