Open Agent Loops
API Reference

PushResult

@open-agent-loops/core


Defined in: primitives/bounded-buffer.ts:99

The outcome of a push, item-by-item, so a caller can react to backpressure (notify, retry, or slow its producer). The four arrays are disjoint and together account for every pushed item — except under { coalesce }, where a folded arrival is counted as accepted.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
acceptedT[]Items incorporated into the buffer (appended, or folded in by coalesce).primitives/bounded-buffer.ts:101
blockedT[]Pushed items not consumed because the buffer was full under "block". The caller still owns these and should apply backpressure upstream.primitives/bounded-buffer.ts:110
evictedT[]Buffered items evicted to make room (only under "drop-oldest").primitives/bounded-buffer.ts:103
refusedT[]Pushed items refused and discarded (only under "drop-newest").primitives/bounded-buffer.ts:105

On this page