Skip to content

builder

Agent Builder Facade

Builds the protocol-neutral [crate::Agent] runtime.

Fluent builder to construct the protocol-neutral [crate::Agent] runtime.

Methods

fn from_config(config: AgentConfig) -> SdkResult<Self>

Build from an in-memory [crate::agent::config::AgentConfig] (no JSON file required).

fn new(name: &str) -> SdkResult<Self>

Minimal builder with default [crate::agent::config::AgentConfig] except name.

fn from_config_path(path: &str) -> SdkResult<Self>
fn with_name(self, name: &str) -> Self
fn with_timeout_policy(self, policy: TimeoutPolicy) -> Self

Override the default timeout policy.

fn timeout_policy(&self) -> Option<&TimeoutPolicy>

Get the currently configured timeout policy.

fn build(self) -> SdkResult<Agent>