-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
M1Milestone 1: Ollama ChatMilestone 1: Ollama ChatfeatureNew functionalityNew functionalityllmLLM provider relatedLLM provider related
Description
Description
Define the abstract LLM provider interface and message types that all backends will implement.
Parent: #2
Branch
feat/m1/llm-provider-trait
Files
crates/zeph-llm/src/provider.rs— trait + typescrates/zeph-llm/src/lib.rs— exports
Key Types
pub enum Role { System, User, Assistant }
pub struct Message {
pub role: Role,
pub content: String,
}
pub trait LlmProvider: Send + Sync {
async fn chat(&self, messages: &[Message]) -> Result<String>;
fn name(&self) -> &str;
}Acceptance Criteria
- Trait compiles with native async (no async-trait crate)
- Message and Role types with serde Serialize/Deserialize
- Exported from zeph-llm crate root
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
M1Milestone 1: Ollama ChatMilestone 1: Ollama ChatfeatureNew functionalityNew functionalityllmLLM provider relatedLLM provider related