Skip to main content

Module runner

Module runner 

Source
Expand description

Agent loop runner implementation.

This module provides the core agent execution loop that orchestrates LLM interactions, tool execution, and event streaming for conversational AI agents.

Modules§

image_fallback
Image fallback and attachment resolution helpers for the agent loop runner.

Structs§

PromptSnapshot
Structured snapshot of the effective system prompt and its major sections.
TurnBoundaryRefresh
Result of a turn-boundary disk refresh: how many injected messages were merged, which newly appended messages have a durable transcript checkpoint, and the live per-session permission mode as it stands on disk (the authoritative writer is PATCH /sessions).

Functions§

read_prompt_snapshot
refresh_prompt_snapshot
refresh_turn_boundary_with_inbox
Turn-boundary refresh with the first-class durable SessionInbox enabled.

Type Aliases§

Result
Result type for agent loop operations.