deepstrike-sdk 0.2.37

DeepStrike Rust SDK — agent framework built on deepstrike-core
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;

/// Inject run-scoped evidence (RAG, API responses) before the first LLM call.
#[async_trait]
pub trait KnowledgeSource: Send + Sync {
    async fn retrieve(&self, goal: &str, top_k: usize) -> crate::Result<Vec<String>>;
    /// One-time warmup called before the first run (load index, open connection, etc.).
    async fn init(&self) -> crate::Result<()>;
}