Skip to main content

Module loop_

Module loop_ 

Source

Enums§

DraftEvent
Structured event sent through the draft channel so channels can differentiate between status/progress updates and actual response content.

Functions§

clear_model_switch_request
Clear any pending model switch request
get_model_switch_state
Get the global model switch request state
process_message
Process a single message through the full agent (with tools, peripherals, memory). Used by channels (Telegram, Discord, etc.) to enable hardware and tool use.
run

Type Aliases§

ModelSwitchCallback
Callback type for checking if model has been switched during tool execution. Returns Some((provider, model)) if a switch was requested, None otherwise.