ITranscriptWriter
NexusLabs.Needlr.AgentFramework.Workflows¶
NexusLabs.Needlr.AgentFramework.Workflows.Middleware¶
ITranscriptWriter Interface¶
Writes transcript entries for LLM interactions during agent execution. Implementations may write to files, streams, or in-memory buffers.
Derived
↳ InMemoryTranscriptWriter
Methods¶
ITranscriptWriter.WriteRequest(string, IEnumerable<ChatMessage>, ChatOptions) Method¶
Records the messages and options sent to the LLM.
void WriteRequest(string stageName, System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> messages, Microsoft.Extensions.AI.ChatOptions? options);
Parameters¶
stageName System.String
The name of the pipeline stage making the request.
messages System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>
The chat messages sent to the LLM.
options Microsoft.Extensions.AI.ChatOptions
The chat options used for the request, if any.
ITranscriptWriter.WriteResponse(string, ChatResponse) Method¶
Records the response received from the LLM.
Parameters¶
stageName System.String
The name of the pipeline stage that received the response.
response Microsoft.Extensions.AI.ChatResponse
The chat response from the LLM.