pub type AfterAgentCallback = Arc<dyn Fn(Context) -> BoxFuture<'static, Result<Option<Content>, AgentError>> + Send + Sync>;Expand description
Runs after the agent completes. It is skipped if the invocation has ended or the caller stops
polling before that point. Some content or an error skips the remaining after-agent callbacks.
Content is yielded as an event; an error takes precedence and is yielded as an Err item.
Aliased Typeยง
pub struct AfterAgentCallback { /* private fields */ }