starflask 0.1.0

Rust SDK for the Starflask AI agent platform
Documentation

starflask

Rust SDK for the Starflask AI agent platform.

Installation

[dependencies]
starflask = "0.1"

Quick start

use starflask::Starflask;

#[tokio::main]
async fn main() -> Result<(), starflask::Error> {
    let sf = Starflask::new("sk_...", None)?;

    // List your agents
    let agents = sf.list_agents().await?;

    // Send a message and wait for the response
    let session = sf.query(&agents[0].id, "Hello!").await?;
    println!("{:?}", session.result);

    Ok(())
}

Features

  • Agents — create, list, update, activate/deactivate, and delete agents
  • Query — send messages to agents with automatic session polling
  • Hooks — list configured hooks and fire hook events
  • Sessions — list and inspect session history
  • Packs — install and provision agent packs
  • Integrations — manage platform integrations (Discord, etc.)
  • Tasks — create and list scheduled agent tasks
  • Memories — list agent memories

Custom base URL

let sf = Starflask::new("sk_...", Some("https://api.starflask.com/api"))?;

License

MIT