Expand description
Agent registration and lifecycle management.
Agents are the core identity primitive in ATI. Each agent gets an Ed25519 registration data upon creation.
§Example
use agenttrustid::{AgentTrustClient, CreateAgentRequest};
let client = AgentTrustClient::builder()
.base_url("http://localhost:8080")
.api_key("sk_live_xxx")
.build()
.unwrap();
let agent = client.agents().create(&CreateAgentRequest {
name: "my-assistant".to_string(),
framework: "langchain".to_string(),
capabilities: vec!["files:read".to_string(), "web:fetch".to_string()],
..Default::default()
}).unwrap();
// Save agent.private_key securely!
println!("Agent ID: {}", agent.id);Structs§
- AgentsAPI
- Provides agent registration and lifecycle management.