Structs§
- History
Manager - OAuth
Output Message - Output
Message - Pending
Item - User
Choice Complete Output Message - User
Choice Output Message
Enums§
- Completion
Action - What the model wants to do after a completion stream finishes.
- Completion
Event - Items yielded by the completion stream.
- Prepare
Result - 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
AgentEventfor an input that was just accepted into history. ReturnsNonefor inputs with no display representation. - prepare_
input - run_
completion