queue

package
v0.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapsedThinkText

func CollapsedThinkText(thinks []types.AgentEvent) string

CollapsedThinkText joins prefix think event text with spaces.

func ConsumedEvents

func ConsumedEvents(batch Batch) []types.AgentEvent

ConsumedEvents returns all AgentEvents served for one breakpoint dequeue.

Types

type Batch

type Batch struct {
	PrefixThink []types.AgentEvent
	Breakpoint  types.AgentEvent
}

Batch is the slice consumed for one HTTP serve: leading think events plus one breakpoint.

func DequeueToBreakpoint

func DequeueToBreakpoint(queue *[]types.AgentEvent) (batch Batch, ok bool)

DequeueToBreakpoint pops leading think events and exactly one tool_call or message breakpoint from the front of queue. If the queue holds only think events (no breakpoint), nothing is consumed and ok is false.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL