Skip to content

.NET: Passing ChatClientAgent specific run options #521

Description

@westey-m

Today we have multiple approaches to passing ChatClientAgent specific run options:

  1. RunAsync, which takes AgentRunOptions? options as input, can be passed a ChatClientAgentRunOptions
  2. We have a RunAsync overload in ChatClientAgentExtensions which takes AgentRunOptions? agentRunOptions and ChatOptions? chatOptions as input.
    1. Since ChatClientAgentRunOptions is a subclass of AgentRunOptions, it can in theory be passed to this overload. ChatClientAgentRunOptions contains a ChatOptions inside of it, so it's unclear what would happen if someone passed both ChatClientAgentRunOptions and ChatOptions.

Since the 2nd method has some ambiguity, I propose that we remove it and only keep the original RunAsync method.

Metadata

Metadata

Assignees

Labels

.NETUsage: [Issues, PRs], Target: .Net

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions