mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET: Fix Semantic Kernel migration samples (#739)
* use GetOpenAIResponseClient Signed-off-by: Jianguo Ma <jiangma@microsoft.com> * use PersistentAgentsClient Signed-off-by: Jianguo Ma <jiangma@microsoft.com> --------- Signed-off-by: Jianguo Ma <jiangma@microsoft.com>
This commit is contained in:
@@ -44,7 +44,7 @@ async Task SKAgent()
|
||||
|
||||
async Task AFAgent()
|
||||
{
|
||||
var agent = new OpenAIClient(apiKey).GetChatClient(modelId).CreateAIAgent(
|
||||
var agent = new OpenAIClient(apiKey).GetOpenAIResponseClient(modelId).CreateAIAgent(
|
||||
instructions: "You are a helpful assistant",
|
||||
tools: [AIFunctionFactory.Create(GetWeather)]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user