Skip to main content

with_invoking_context

Function with_invoking_context 

Source
pub fn with_invoking_context<T>(
    context: Option<ActionContext>,
    work: impl FnOnce() -> T,
) -> T
Expand description

Call work with context as the invoking_context: an operation the app carries out itself (a write into a part of a chain) keeps the agent session and purpose its invocation came with.