pub struct Options {
pub http_client: Option<Client>,
pub in_process: Option<GenerateFn>,
pub registry: HashMap<String, Def>,
pub inbox_cap: usize,
pub max_concurrent_turns: usize,
pub shutdown: Duration,
pub llm: Option<LlmOptions>,
pub store: Option<Arc<dyn ConversationStore>>,
pub clock: Option<Arc<dyn Clock>>,
pub hooks: Option<Hooks>,
pub on_metric: Option<OnMetricFn>,
pub wait_for: Option<WaitForFn>,
}Expand description
Runtime::new options.
Fields§
§http_client: Option<Client>The LLM HTTP client (Go’s Transport). Mutually exclusive with
in_process.
in_process: Option<GenerateFn>A model running IN THIS PROCESS, wrapped by the SAME global turn gate.
Mutually exclusive with http_client and llm.
registry: HashMap<String, Def>Agent name → Def. Prefer super::Agent::registry.
inbox_cap: usizeEvery inbox’s bound (default 8); a post at cap rejects loudly.
max_concurrent_turns: usizeGlobal turn gate: provider calls in flight runtime-wide (default 8).
shutdown: DurationHow long a graceful close waits for a running turn (default 200 ms).
llm: Option<LlmOptions>§store: Option<Arc<dyn ConversationStore>>The ONE runtime-wide store (conversation id = handle id). Default memory.
clock: Option<Arc<dyn Clock>>§hooks: Option<Hooks>§8 hooks for every agent’s turns, forwarded verbatim.
on_metric: Option<OnMetricFn>§wait_for: Option<WaitForFn>Runtime-level §10 interpreter, used when no agent on the chain has one.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Freeze for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more