Skip to main content

Module relay

Module relay 

Source
Expand description

Deterministic sequential roster scheduling.

This owns turn selection only. Prompt construction and adapter I/O remain outside the scheduler, making the relay safe to replay and test.

Structs§

QueuedPrompt
Relay

Enums§

CollaborationStrategy
How a multi-agent session chooses its next non-direct recipient.
QueuedKind
RelayDecision

Constants§

DEFAULT_STOP_ACKNOWLEDGMENT
MAX_QUEUED_PROMPTS
NEXT_TOKEN_PREFIX
STOP_TOKEN

Functions§

control_token_visible_end
Buffer only a possible control-marker suffix while text is streaming.
is_usage_limit_response
Recognize a provider usage-limit reply (for example an exhausted Codex plan). Kept deliberately narrow so ordinary conversation mentioning “limits” is never misclassified.
requested_next_slot
Resolve an exact terminal handoff marker to a zero-based roster slot.
stop_token_visible_end
End of text safe to display after complete stop markers have been removed. Retain only a suffix that could become a marker in a later stream chunk.
strip_control_tokens
Hide complete control markers, including stale or unavailable targets.
strip_stop_token