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.
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.
Property Value¶
IAgentOutputCollector<T>.Items Property¶
Gets all collected records in insertion order.
Property Value¶
System.Collections.Generic.IReadOnlyList<T>
Methods¶
IAgentOutputCollector<T>.Add(T) Method¶
Adds a record to the collection. Thread-safe.
Parameters¶
item T