QueuedMessagesSource typedef

QueuedMessagesSource = FutureOr<List<Message>> Function()

Returns queued messages to inject into the conversation.

Used for steering (polled after each turn, and once before the first) and follow-ups (polled when the run would otherwise stop). Contract (pi): must not throw; return an empty list when nothing is queued.

Implementation

typedef QueuedMessagesSource = FutureOr<List<Message>> Function();