Skip to main content

Module event_processor

Module event_processor 

Source

Structs§

HistoryManager
OAuthOutputMessage
OutputMessage
PendingItem
UserChoiceCompleteOutputMessage
UserChoiceOutputMessage

Enums§

CompletionAction
What the model wants to do after a completion stream finishes.
CompletionEvent
Items yielded by the completion stream.
PrepareResult
The result of preparing an input message before sending it to the model.

Constants§

IMAGE_OMITTED_PLACEHOLDER
Placeholder text substituted for image tool-result content when the active model does not support image inputs.
TOOL_CALL_INTERRUPTED_TEXT
Text used to settle a tool call as interrupted. Injected when a user message arrives while the call is unanswered, and also substituted for a pending tool result during overflow recovery when user input had to be dropped: the next thing the model sees is a fresh user message, and “interrupted by user” describes that situation accurately, whereas a “too large” placeholder could mislead the model into re-running the tool.
TOOL_RESULT_TOO_LARGE_PLACEHOLDER
Fixed text substituted for a pending tool result when the model reports a context overflow (ErrorClass::ContextOverflow): the oversized result cannot be sent, but its tool call must still be answered, so the call is resolved with this placeholder instead.

Functions§

execute_action
input_event
Compute the AgentEvent for an input that was just accepted into history. Returns None for inputs with no display representation.
prepare_input
run_completion