builder
Agent Builder Facade
Builds the protocol-neutral [crate::Agent] runtime.
Structs
Section titled “Structs”AgentBuilder
Section titled “AgentBuilder”Fluent builder to construct the protocol-neutral [crate::Agent] runtime.
Methods
from_config
Section titled “from_config”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.
from_config_path
Section titled “from_config_path”fn from_config_path(path: &str) -> SdkResult<Self>with_name
Section titled “with_name”fn with_name(self, name: &str) -> Selfwith_timeout_policy
Section titled “with_timeout_policy”fn with_timeout_policy(self, policy: TimeoutPolicy) -> SelfOverride the default timeout policy.
timeout_policy
Section titled “timeout_policy”fn timeout_policy(&self) -> Option<&TimeoutPolicy>Get the currently configured timeout policy.
fn build(self) -> SdkResult<Agent>