Crate rstructor

Crate rstructor 

Source

Re-exports§

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§

error
logging
Logging functionality for rstructor
model
schema

Macros§

impl_client_builder_methods
Macro to generate standard builder methods for LLM clients.

Structs§

AnthropicClient
Anthropic client for generating completions
GeminiClient
Gemini client for generating completions
GrokClient
Grok client for generating completions
OpenAIClient
OpenAI client for generating completions

Enums§

AnthropicModel
Anthropic models available for completion
GeminiModel
Gemini models available for completion
GrokModel
Grok models available for completion
OpenAIModel
OpenAI models available for completion

Traits§

LLMClient
LLMClient trait defines the interface for all LLM API clients.

Derive Macros§

Instructor
Derive macro for implementing Instructor and SchemaType