pub fn with_invoking_context<T>(
context: Option<ActionContext>,
work: impl FnOnce() -> T,
) -> TExpand 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.