Expand description
Unified client for Agent Infra services.
Context, Trace, Runtime Identity, Model, Delivery, Evaluate, and Environment APIs use one Gateway endpoint. Runtime filesystem access is modeled through Environment Space resources rather than the removed managed Workspace API.
§Usage
ⓘ
use agent_infra_sdk::InfraClient;
let client = InfraClient::new("http://127.0.0.1:5200")?;
let messages = client
.context()
.recent_messages("conv-1", Some(50), &[])
.await?;Re-exports§
pub use agent_memory_contract as memory_contract;pub use agent_context_contract as context_contract;pub use agent_delivery_contract as delivery_contract;pub use agent_evaluate_contract as evaluate_contract;pub use agent_execution_contract as execution_contract;pub use agent_model_contract as model_contract;pub use agent_registry_contract as agent_contract;pub use agent_runtime_identity_contract as runtime_identity_contract;pub use agent_source_contract as source_contract;pub use agent_trace_contract as trace_contract;pub use agent_workspace_contract as workspace_contract;pub use infra_api_gateway_contract as gateway_contract;
Structs§
- Admin
Client - Unified administrator facade for Agent, Context, Runtime Identity, Workspace, and Trace resources.
- Agent
Client - Bearer
Credential - Call
Options - Per-call reliability controls. Retries remain disabled unless the caller explicitly proves the operation idempotent.
- Cancellation
Token - Client
Options - Context
Client - Client for the Context service (
agent-context-server). - Context
Compression Config - Configuration for context compression.
- Credential
Error - Delegation
Lease Credentials - Mints short-lived service credentials from an opaque execution delegation
lease. The lease reference is never exposed through
Debug, and the workload credential remains owned by the configured source provider. - Delivery
Client - Environment
Client - Evaluate
Client - Execution
Client - Typed client for durable execution runs and events.
- Execution
Projection Worker - Stateless application worker. Durable attempts, leases, fencing and retry deadlines remain owned by Execution Infra, so replicas can run this safely.
- Gateway
Client - Gateway
Exchange Credentials - Exchanges one external workload credential for short-lived, audience-bound service credentials. Cache growth is bounded by the explicitly configured audience map, and refresh is single-flight.
- Infra
Client - Unified developer client for Agent Infra.
- Infra
Client Builder - Builder for the Infra SDK. Gateway-backed clients share one immutable
reqwest::Client, one connection pool, and one Gateway endpoint. - Memory
Client - Model
Client - Typed transport owner for Model Infra’s JSON data plane.
- Model
Stream - Raw SSE bytes from a Model Infra streaming response.
- Noop
Telemetry - Operation
Handle - Operation
Observation - Projection
Worker Result - Retry
Policy - Runtime
Identity Client - Runtime
Recovery Credentials - Runtime
Workload Credentials - Source
Client - Static
Credentials - Telemetry
Event - Trace
Client - Client for the Trace service (
agent-trace-server). - Wait
Options
Enums§
Traits§
Functions§
- compress_
context - Compress a context window (list of messages) to fit within the configured limits.