huskies: merge 858

This commit is contained in:
dave
2026-04-29 10:41:32 +00:00
parent be5db846cc
commit 11d111360d
79 changed files with 265 additions and 0 deletions
@@ -36,9 +36,11 @@ mod parse;
use events::{handle_stream_event, process_json_event};
/// Orchestrates Claude Code CLI sessions via a PTY for streaming agent chat.
pub struct ClaudeCodeProvider;
impl ClaudeCodeProvider {
/// Creates a new `ClaudeCodeProvider`.
pub fn new() -> Self {
Self
}
+3
View File
@@ -1,4 +1,7 @@
//! LLM providers — module declarations for Anthropic, Claude Code, and Ollama backends.
/// Anthropic API provider — drives chat completions via the Anthropic Messages API.
pub mod anthropic;
/// Claude Code CLI provider — runs `claude` in a PTY and parses structured NDJSON output.
pub mod claude_code;
/// Ollama provider — streaming completion client for locally-hosted Ollama models.
pub mod ollama;
+2
View File
@@ -7,11 +7,13 @@ use futures::StreamExt;
use serde::{Deserialize, Serialize};
use serde_json::Value;
/// Ollama HTTP/streaming client that connects to a local Ollama server.
pub struct OllamaProvider {
base_url: String,
}
impl OllamaProvider {
/// Creates a new `OllamaProvider` pointing at the given Ollama server base URL.
pub fn new(base_url: String) -> Self {
Self { base_url }
}