Macros§

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§

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.