Skip to content

.NET: Setting ReasoningEffort on an agent is cumbersome #1455

Description

When you need to create an agent that use reasoning effort (example: GPT-5) you need to do it in the following way

ChatClientAgentagent=chatClient.CreateAIAgent(options:newChatClientAgentOptions{Instructions="You are a nice AI",ChatOptions=newChatOptions{RawRepresentationFactory= _ =>newChatCompletionOptions{
#pragma warning disable OPENAI001ReasoningEffortLevel="minimal",
#pragma warning restore OPENAI001},Tools=[]//Tools goes here}});

While this works, it is quite a cumbersome approach for configuring such an important setting (since GPT-5 but default use 'medium' reasoning which in not suited for quick and cheap answers you very often need to lower the default)

I would be so nice if we could do something like this instead:

ChatClientAgentagent=chatClient.CreateAIAgent(instructions:"You are a nice AI",tools:[],//Tools goes herereasoningEffort="minimal");

I do understand that not every LLM out there understand reasoningEffort, but same could be said for tools

Is there any plans to expose Reasoning Effort in a less cumbersome manner?

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .NetagentsUsage: [Issues, PRs], Target: Single agent

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions