Table of Contents

Class AgentStreamingExtensions

Namespace
LMKit.Agents.Streaming
Assembly
LM-Kit.NET.dll

Extension methods for streaming agent execution.

public static class AgentStreamingExtensions
Inheritance
AgentStreamingExtensions
Inherited Members

Methods

RunStreamingAsync(Agent, string, IAgentStreamHandler, AgentExecutionOptions, CancellationToken)

Executes the agent with streaming output to a handler.

RunStreamingAsync(Agent, string, Action<AgentStreamToken>, AgentExecutionOptions, CancellationToken)

Executes the agent with streaming output using a token callback.

RunStreamingAsync(Agent, string, Action<string>, AgentExecutionOptions, CancellationToken)

Executes the agent with streaming content output using a string callback.

RunStreamingToConsoleAsync(Agent, string, bool, AgentExecutionOptions, CancellationToken)

Executes with streaming and writes directly to console.

StreamAsync(Agent, string, AgentExecutionOptions, CancellationToken)

Streams agent output as an async enumerable.

StreamAsync(Agent, string, AgentStreamResult, AgentExecutionOptions, CancellationToken)

Streams agent output with result accumulation.

StreamContentAsync(Agent, string, AgentExecutionOptions, CancellationToken)

Streams only content text (filters out thinking, tool calls, etc.).