Expand description
Rust SDK for the Starflask AI agent platform.
use starflask::Starflask;
#[tokio::main]
async fn main() -> Result<(), starflask::Error> {
let sf = Starflask::new("sk_...", None)?;
let agents = sf.list_agents().await?;
let session = sf.query(&agents[0].id, "Hello!").await?;
println!("{:?}", session.result);
Ok(())
}Structs§
- Agent
- Agent
Task - Hooks
Response - Integration
- List
Projects Response - Poll
Config - Configuration for session polling.
- Project
- Provision
Result - Session
- Starflask
- Starflask API client.