huskies: merge 858
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user