Expand description
Provider-agnostic multi-LLM abstraction for the Greentic platform.
Extracted from greentic-designer’s src/ui/llm/ (the post-rig-migration
abstraction). Answers exactly one question: “send this chat to provider X,
get a response/stream back.” Knows nothing about tenants, roles, admin
backends, or tool dispatch.
Re-exports§
pub use capabilities::Capabilities;pub use capabilities::ProviderKind;pub use credentials::CredError;pub use credentials::Credential;pub use credentials::CredentialSource;pub use credentials::EnvCredentialSource;pub use provider::ChatImage;pub use provider::ChatMessage;pub use provider::ChatRequest;pub use provider::ChatResponse;pub use provider::ChatStream;pub use provider::FinishReason;pub use provider::LlmError;pub use provider::LlmProvider;pub use provider::MessageRole;pub use provider::StreamEvent;pub use provider::ToolCall;pub use provider::ToolDef;pub use rig_backend::RigBackend;
Modules§
- capabilities
- Per-provider capability matrix.
- credentials
- Pluggable credential source for LLM providers.
- provider
- Provider-agnostic LLM trait and wire types for the crate.
- rig_
backend RigBackend— dispatches theLlmProvidertrait to rig 0.35 provider clients.