Re-exports§
pub use error::ApiErrorKind;pub use error::RStructorError;pub use error::Result;pub use model::Instructor;pub use schema::CustomTypeSchema;pub use schema::Schema;pub use schema::SchemaBuilder;pub use schema::SchemaType;
Modules§
Macros§
- impl_
client_ builder_ methods - Macro to generate standard builder methods for LLM clients.
Structs§
- Anthropic
Client - Anthropic client for generating completions
- Chat
Message - A chat message for conversation history.
- Gemini
Client - Gemini client for generating completions
- Generate
Result - Result of a generate call, containing the text and optional usage information.
- Grok
Client - Grok client for generating completions
- Materialize
Result - Result of a materialize call, containing both the data and optional usage information.
- Model
Info - Information about an available model from an LLM provider.
- OpenAI
Client - OpenAI client for generating completions
- Token
Usage - Token usage information from an LLM API call.
Enums§
- Anthropic
Model - Anthropic models available for completion
- Chat
Role - Role of a chat message participant.
- Gemini
Model - Gemini models available for completion
- Grok
Model - Grok models available for completion
- OpenAI
Model - OpenAI models available for completion
- Thinking
Level - Thinking level configuration for models that support extended reasoning.
Traits§
- LLMClient
- LLMClient trait defines the interface for all LLM API clients.
Derive Macros§
- Instructor
- Derive macro for implementing Instructor and SchemaType