Skip to main content

annotate_nested_execution_options

Function annotate_nested_execution_options 

Source
pub fn annotate_nested_execution_options(
    options: &mut DictMap,
    kind: NestedExecutionKind,
    label: &str,
)
Expand description

Tag an agent_loop options dict with the nested-execution kind and label so enter_nested_execution_policy picks up the right surface attribution at session init. Call sites that build options for downstream agent_loop invocations (sub_agent_run, workflow stages, spawn_agent worker setup) use this rather than rewriting the dict-insert pattern.