Agent Infra SDK
Rust SDK for Agent Infra APIs. Applications configure one Gateway URL and one
credential provider, then use typed clients for Agent Registry, context,
workspace, trace, runtime identity, model, deployment, and evaluation APIs.
Platform consoles and operations tools use the typed AdminClient, whose
resource methods all stay inside the Gateway-owned /admin/api namespace.
Workspace file operations go through Environment Space APIs. Other APIs remain
Gateway-backed.
use InfraClient;
let client = new?;
let agents = client.agents;
let context = client.context;
let admin = client.admin;
# Ok::
Feature flags can be used to include only the required typed clients.
The unified administrator facade covers Agent IDs, Context search, and Runtime IDs:
use ListAgentsRequest;
let agents = client.admin.list_agents.await?;
let runtimes = client.admin.list_runtime_identities.await?;
Model streaming returns raw SSE bytes as soon as they arrive. The streaming
methods set stream=true; chunks preserve wire order but are not guaranteed to
align with SSE event boundaries:
use CallOptions;
use json;
let mut stream = client
.model
.responses_stream
.await?;
while let Some = stream.next_chunk.await