bankr-agent-api 0.2.0

Rust client library for the Bankr Agent API
Documentation

bankr-agent-api

Rust client library for the Bankr Agent API.

Quick start

use bankr_agent_api::{BankrAgentClient, types::PromptRequest};

# async fn example() -> Result<(), bankr_agent_api::error::BankrError> {
let client = BankrAgentClient::new("your_api_key")?;

// Get user profile
let me = client.get_me().await?;
println!("Wallets: {:?}", me.wallets);

// Submit a prompt and wait for the result
let req = PromptRequest { prompt: "what is the price of ETH?".to_owned(), thread_id: None };
let job = client.prompt_and_wait(&req).await?;
println!("Response: {:?}", job.response);
# Ok(())
# }