Skip to main content

with_a2a_context

Function with_a2a_context 

Source
pub fn with_a2a_context<F, R>(
    message_type: &str,
    from_agent: &str,
    to_agent: &str,
    component: &str,
    f: F,
) -> R
where F: FnOnce() -> R,
Expand description

Execute a closure with A2A context, automatically clearing when done