pub trait FollowUpSource: Plugin {
// Required method
fn next_follow_up_messages<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<AgentMessage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Source of “follow-up messages” — extra messages the loop should process after the agent would otherwise stop.
Distinct from steering: steering is consulted between batches and keeps the agent running; follow-up is consulted after natural stop and re-starts the agent if there’s more to do. Use case: queued user turns that arrived while the previous turn was still running.
Required Methods§
fn next_follow_up_messages<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<AgentMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".