bankr-agent-api
Rust client library for the Bankr Agent API.
Quick start
use ;
# async
Rust client library for the Bankr Agent API.
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(())
# }