INNER CODE UNIT · Rust

create

Far-Beyond-Pulsar/Pulsar-Native · crates/agent-providers/agent_chat_core/src/lib.rs:50

    fn create(&self, id: &str, config: ProviderConfig) -> anyhow::Result<Box<dyn ChatProvider>>;
}

// ── Runtime chat interface ──────────────────────────────────────────────────

#[derive(Clone, Debug)]
pub struct ModelDescriptor {
    pub id: String,
    pub label: String,
    pub supports_tools: bool,
    pub context_tokens: u32,
    pub compact_model: Option<String>,
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ChatRole {
    System,
    User,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…