diff --git a/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs b/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs index 394fb781..d59a459b 100644 --- a/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs +++ b/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs @@ -310,7 +310,9 @@ await A365OtelWrapper.InvokeObservedAgentOperation( // Create Chat Options with tools: var toolOptions = new ChatOptions { - Temperature = (float?)0.2, + // Note: Some models (e.g., o1, o3, gpt-5.2-chat) require Temperature = 1(default) because they do not support other values. + // Standard GPT models (GPT-3.5, GPT-4) typically support temperature range 0.0 to 2.0. + Temperature = (float?)1, Tools = toolList }; diff --git a/dotnet/agent-framework/sample-agent/Properties/launchSettings.json b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json new file mode 100644 index 00000000..51380547 --- /dev/null +++ b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json @@ -0,0 +1,13 @@ +{ + "profiles": { + "AgentFrameworkSampleAgent": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "BEARER_TOKEN": "" + }, + "applicationUrl": "https://localhost:62738;http://localhost:62739" + } + } +} \ No newline at end of file