Skip to content

.NET: ChatClientAgent having internal ChatOptions is overly restrictive #1710

@PederHP

Description

@PederHP

ChatOptions being internal means that IChatClient-based agents are restricted to being very static in nature. For example:

  • Claude-based agents cannot change extended thinking parameters on the fly.
  • OpenAI-based agents cannot change reasoning effort levels.
  • Tools and ToolMode are static

Having agents that change extended thinking / reasoning effort levels based on user input or other signals is a common pattern, and used in many coding agents. Dynamic Tool strategies are also relatively common.

Making ChatOptions public and mutable would enable a lot of patterns. Instructions should also be mutable - having a dynamic system prompt / instructions is also a very common pattern.

Metadata

Metadata

Assignees

Labels

.NETagentsIssues related to single agents

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions