Expand description
Wauldo Rust SDK
Provides two client interfaces:
AgentClient— MCP server client (stdio JSON-RPC) for reasoning, planning, toolsHttpClient— REST API client (OpenAI-compatible) for chat, embeddings, RAG, orchestrator
§Quick Start (HTTP API)
use wauldo::{HttpClient, ChatRequest, ChatMessage, Result};
#[tokio::main]
async fn main() -> Result<()> {
let client = HttpClient::localhost()?;
let models = client.list_models().await?;
println!("Models: {:?}", models.data.iter().map(|m| &m.id).collect::<Vec<_>>());
let req = ChatRequest::new("qwen2.5:7b", vec![ChatMessage::user("Hello!")]);
let resp = client.chat(req).await?;
println!("{}", resp.choices[0].message.content.as_deref().unwrap_or(""));
Ok(())
}Re-exports§
pub use conversation::Conversation;pub use http_client::HttpClient;pub use http_config::HttpConfig;pub use mock_client::MockHttpClient;pub use http_types::*;
Modules§
- conversation
- Conversation helper — manages chat history automatically
- http_
client - HTTP client for Wauldo REST API (OpenAI-compatible)
- http_
config - Configuration types for the HTTP client
- http_
types - HTTP API request/response types (OpenAI-compatible)
- mock_
client - Mock HTTP client for deterministic testing
Structs§
- Agent
Client - Client for Wauldo MCP Server
- Chunk
- A text chunk from document processing
- Chunk
Result - Result from document chunking
- Client
Options - Client configuration options
- Concept
- A single extracted concept
- Concept
Result - Result from concept extraction
- Graph
Node - A node in the knowledge graph
- Knowledge
Graph Result - Result from knowledge graph operations
- Plan
Options - Options for task planning
- Plan
Result - Result from task planning
- Plan
Step - A single step in a task plan
- Reasoning
Options - Options for reasoning
- Reasoning
Result - Reasoning result from Tree-of-Thought
- Retrieval
Result - Result from context retrieval
- Tool
Definition - Tool definition from MCP
Enums§
- Detail
Level - Detail level for task planning
- Error
- SDK error types
- Source
Type - Source type for concept extraction
Type Aliases§
- Result
- Result type alias for SDK operations