swiftide-core 0.33.0

Composable LLM agents, typed task graphs, and streaming RAG pipelines in Rust
Documentation
//! This module enables the implementation of chat completion on LLM providers
//!
//! The main trait to implement is `ChatCompletion`, which takes a `ChatCompletionRequest` and
//! returns a `ChatCompletionResponse`.
//!
//! A chat completion request is comprised of a list of `ChatMessage` to complete, with
//! optionally tool specifications. The builder accepts either owned or borrowed messages and
//! provides `tools(...)` while still exposing `tool_specs` for compatibility.
mod chat_completion_request;
mod chat_completion_response;
mod chat_message;
pub mod errors;
mod tool_schema;
mod tools;

// Re-exported in the root per convention
pub mod traits;

pub use chat_completion_request::*;
pub use chat_completion_response::*;
pub use chat_message::*;
pub use tools::*;
pub use traits::*;