pub struct Run {
pub correlation_id: CorrelationId,
pub task: String,
pub pack: ContextPack,
pub model: String,
pub system: String,
pub temperature: f32,
pub max_tokens: u32,
pub timeout_ms: u64,
pub session_id: Option<String>,
pub domain_tags: Vec<String>,
pub runtime_mode: RuntimeMode,
}Expand description
Runtime request for a child-agent run.
Fields§
§correlation_id: CorrelationIdCross-trace correlation id for structured run observability.
task: StringOperator task for the child agent.
pack: ContextPackAuditable context pack supplied to the child agent.
model: StringModel requested from the adapter.
system: StringSystem prompt supplied to the adapter.
temperature: f32Sampling temperature.
max_tokens: u32Adapter completion token cap.
timeout_ms: u64Adapter timeout budget.
session_id: Option<String>Optional session id copied onto the constructed response event.
Domain tags copied onto the constructed response event.
runtime_mode: RuntimeModeRuntime mode bounding this run (ADR 0037 weakest-link).
Defaults to LocalUnsigned. Callers using a remote API backend (e.g.
Claude via LlmBackend::Claude) MUST set this to RemoteUnsigned
before calling run_configured so that the persisted event carries the
correct forbidden_uses set (ADR 0048 acceptance item 7).
Implementations§
Source§impl Run
impl Run
Sourcepub fn new(
task: impl Into<String>,
pack: ContextPack,
) -> Result<Self, RuntimeError>
pub fn new( task: impl Into<String>, pack: ContextPack, ) -> Result<Self, RuntimeError>
Build a default runtime request from a task and context pack.