Skip to content

IAgentOutputCollector T

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Collectors

IAgentOutputCollector<T> Interface

Accumulates typed records produced by agent tool calls during a pipeline run. Provides a structured alternative to parsing free-form agent text output.

public interface IAgentOutputCollector<T>

Type parameters

T

The record type to collect.

Derived
AgentOutputCollector<T>

Remarks

Tools call Add(T) to emit structured output. After the agent run completes, the orchestrator reads Items to process the collected records.

Example: a review agent calls a RecordIssue tool that adds ReviewIssue records to the collector. The pipeline runner reads the issues after the review stage.

Properties

IAgentOutputCollector<T>.Count Property

Gets the number of collected records.

int Count { get; }

Property Value

System.Int32

IAgentOutputCollector<T>.Items Property

Gets all collected records in insertion order.

System.Collections.Generic.IReadOnlyList<T> Items { get; }

Property Value

System.Collections.Generic.IReadOnlyList<T>

Methods

IAgentOutputCollector<T>.Add(T) Method

Adds a record to the collection. Thread-safe.

void Add(T item);

Parameters

item T