use runagent::{RunAgentClient, RunAgentClientConfig};
use serde_json::json;
#[tokio::main]
async fn main() -> runagent::RunAgentResult<()> {
let agent_id = "a6977384-6c88-40dc-a629-e6bf077786ae";
let entrypoint_tag = "minimal";
let client = RunAgentClient::new(
RunAgentClientConfig::new(agent_id, entrypoint_tag)
.with_local(true)
.with_address("127.0.0.1", 8452)
.with_enable_registry(false), )
.await?;
let response = client.run(&[("message", json!("Hello!"))]).await?;
println!("Response: {}", response);
Ok(())
}