Table of Contents

Method RunStreamingToConsoleAsync

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

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

Executes with streaming and writes directly to console.

public static Task<AgentExecutionResult> RunStreamingToConsoleAsync(this Agent agent, string input, bool verbose = false, AgentExecutionOptions options = null, CancellationToken cancellationToken = default)

Parameters

agent Agent

The agent to execute.

input string

The input prompt.

verbose bool

Whether to include tool calls and status in output.

options AgentExecutionOptions

Optional execution options.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<AgentExecutionResult>

The final execution result.