Skip to content
Discussion options

You must be logged in to vote

@jbnidev, it is possible to customize the settings passed to the underlying service. Note that OpenAI has 3 different services for inference though with different settings types for each.

Via ChatOptions (the options type for the IChatClient that the ChatClientAgent is built on) you can pass a RawRepresentationFactory which would return the options type for the underlying service.

Here is an example of how to do this for the Responses service:
https://github.com/microsoft/agent-framework/blob/main/dotnet/samples/02-agents/FoundryAgents/FoundryAgents_Step15_ComputerUse/Program.cs#L78-L87

Note that ChatOptions with the custom RawRepresentationFactory can be passed via ChatClientAgentOptions…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jbnidev
Comment options

You must be logged in to vote
1 reply
@westey-m
Comment options

Comment options

You must be logged in to vote
1 reply
@westey-m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET agents Issues related to single agents
3 participants