OpenAgentID documentation
Source referencesRust module referenceopenagent-sdk

openagent-sdk · crate

Declared module signatures, types, configuration, and source documentation.

Source: openagent-sdk/sdks/rust/src/lib.rs. SHA-256: a08e99ea97d2d8baf98b88b5fc13588ae769ec424219aaba3b1cd1d7a78b22ae.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

act

pub mod act;

Source line: 74.

agent

pub mod agent;

Source line: 75.

builder

pub mod builder;

Source line: 76.

config

pub mod config;

Source line: 77.

credentials

#[cfg(feature = "arsenal")]
pub mod credentials;

Source line: 79.

errors

pub mod errors;

Source line: 80.

identity

pub mod identity;

Source line: 81.

skills

pub mod skills;

Source line: 82.

verification

#[cfg(feature = "aegis")]
pub mod verification;

Source line: 84.

pub use agent::authenticate_with_verifier;

#[cfg(feature = "aegis")]
pub use agent::authenticate_with_verifier;

Source line: 91.

pub use agent::{CreateAgentOptions, OpenAgent};

pub use agent::{CreateAgentOptions, OpenAgent};

Source line: 92.

pub use builder::OpenAgentBuilder;

pub use builder::OpenAgentBuilder;

Source line: 93.

pub use config::{BrokerMtlsConfig, OpenAgentConfig};

pub use config::{BrokerMtlsConfig, OpenAgentConfig};

Source line: 94.

pub use credentials::CredentialClient;

#[cfg(feature = "arsenal")]
pub use credentials::CredentialClient;

Source line: 96.

pub use errors::{OpenAgentError, Result};

pub use errors::{OpenAgentError, Result};

Source line: 97.

pub use identity::{AgentIdentityRecord, ParsedDid};

pub use identity::{AgentIdentityRecord, ParsedDid};

Source line: 98.

pub use skills::{AllowListPolicy, SkillsPolicy, SkillsPolicyHandle};

pub use skills::{AllowListPolicy, SkillsPolicy, SkillsPolicyHandle};

Source line: 99.

pub use verification::{

authority_context_from_oas, LineageAuthorityContext, VerifiedContext, Verifier, };

#[cfg(feature = "aegis")]
pub use verification::{
    authority_context_from_oas, LineageAuthorityContext, VerifiedContext, Verifier,
};

Source line: 101.

pub use arsenal_sdk;

The wrapped Arsenal SDK.

#[cfg(feature = "arsenal")]
pub use arsenal_sdk;

Source line: 111.

pub use oas_sdk;

The wrapped OAS SDK.

pub use oas_sdk;

Source line: 113.

pub use openagent_aegis_sdk;

The wrapped AEGIS SDK.

#[cfg(feature = "aegis")]
pub use openagent_aegis_sdk;

Source line: 116.

sync

Synchronous helpers for CLI tooling.

The OpenAgent SDK is async-first, but CLI tools and one-shot scripts usually want a blocking wrapper. The [sync] module provides exactly that.

pub mod sync;

Source line: 122.

sync::create_agent

Blocking equivalent of [crate::OpenAgent::create_agent].

Builds a single-threaded tokio runtime, drives the async call to completion, and returns the result. Safe to call from any non-async context.

Errors

Propagates any [crate::OpenAgentError] from the async path.

pub fn create_agent(opts: CreateAgentOptions<'_>) -> Result<OpenAgent>;

Source line: 135.

On this page