INNER CODE UNIT · Rust
entries
Far-Beyond-Pulsar/Pulsar-Native · crates/agent-providers/agent_chat_core/src/lib.rs:49
fn entries(&self) -> Vec<ProviderEntry>;
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,