ChatClientAgentRunOptionsExtension extension
Convenience extension methods on ChatClientAgent for typed run options.
These overloads accept ChatClientAgentRunOptions directly, improving discoverability over the base AgentRunOptions parameter.
Methods
-
runStreamingWithOptions(
AgentSession? session, ChatClientAgentRunOptions? options, CancellationToken cancellationToken, {String? message, Iterable< ChatMessage> ? messages}) → Stream<AgentResponseUpdate> -
Available on ChatClientAgent, provided by the ChatClientAgentRunOptionsExtension extension
Runs the agent in streaming mode with typed ChatClientAgentRunOptions. -
runWithOptions(
AgentSession? session, ChatClientAgentRunOptions? options, CancellationToken cancellationToken, {String? message, Iterable< ChatMessage> ? messages}) → Future<AgentResponse> -
Available on ChatClientAgent, provided by the ChatClientAgentRunOptionsExtension extension
Runs the agent with typed ChatClientAgentRunOptions.