pub async fn read_conversation_page(
pool: &Pool,
agent_instance_hierarchy: &str,
after_id: Option<i64>,
limit: i64,
) -> Result<(Vec<AgentInstanceEvent>, Option<i64>), Error>Expand description
One page of an agent’s conversation as typed events, content
inlined, in objectiveai.messages."index" order. Returns the
events plus the after_id cursor for the next page (None when
this page was the last). The caller (the daemon WS handler) loops
pages, streaming each event as one frame — bounded memory for huge
histories.