Method RunStreamingToConsoleAsync
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
agentAgentThe agent to execute.
inputstringThe input prompt.
verboseboolWhether to include tool calls and status in output.
optionsAgentExecutionOptionsOptional execution options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<AgentExecutionResult>
The final execution result.