Expand description
Core traits for LLM providers.
This module defines the foundational traits that LLM providers implement, following the Interface Segregation Principle - providers only implement the capabilities they support.
Traitsยง
- Chat
Provider - Base trait for chat-based LLM providers.
- Completion
Provider - Trait for providers that support text completion (non-chat).
- Embedding
Provider - Trait for providers that support text embeddings.
- Image
Provider - Optional trait for providers that support image generation.
- Speech
ToText Provider - Optional trait for providers that support speech-to-text.
- Streaming
Provider - Optional trait for providers that support streaming responses.
- Text
ToSpeech Provider - Optional trait for providers that support text-to-speech.
- Tool
Provider - Optional trait for providers that support tool/function calling.