Crate openai_func_enums
source ·Macros§
- A procedural macro to generate information about an enum.
- A macro to parse a function call into a specified type. If the parsing fails, it prints an error message and returns
None
.
Structs§
Enums§
Traits§
- A trait to provide a descriptor for an enumeration. This includes the name of the enum and the count of tokens in its name.
- A trait for responses from function calls. This includes a method to generate a JSON representation of the function.
- A trait to provide descriptors for the variants of an enumeration. This includes the names of the variants and the count of tokens in their names.
Functions§
- A function to get the chat completion arguments for a function.
- A function to get the chat completion arguments for a tool.
Attribute Macros§
- The
arg_description
attribute is a procedural macro used to provide additional description for an enum. - This procedural macro attribute is used to specify a description for an enum variant.
Derive Macros§
- A derive procedural macro for the
EnumDescriptor
trait. - This procedural macro derives the
FunctionCallResponse
trait for an enum. - The
SubcommandGPT
procedural macro is used to derive a structure which encapsulates various chat completion commands. - A derive procedural macro for the
VariantDescriptors
trait.