mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Rename Agent to AIAgent and instroduce DisplayName (#201)
This commit is contained in:
committed by
GitHub
Unverified
parent
6e57489a44
commit
fc999e2be8
+1
-1
@@ -31,7 +31,7 @@ public sealed class ChatClientAgent_With_AzureAIAgentsPersistent(ITestOutputHelp
|
||||
instructions: JokerInstructions);
|
||||
|
||||
// Get a local proxy for the agent to work with.
|
||||
Agent agent = await persistentAgentsClient.GetRunnableAgentAsync(createPersistentAgentResponse.Value.Id);
|
||||
AIAgent agent = await persistentAgentsClient.GetRunnableAgentAsync(createPersistentAgentResponse.Value.Id);
|
||||
|
||||
// Start a new thread for the agent conversation.
|
||||
AgentThread thread = agent.GetNewThread();
|
||||
|
||||
@@ -33,7 +33,7 @@ public sealed class Step01_ChatClientAgent_Running(ITestOutputHelper output) : A
|
||||
IChatClient chatClient = base.GetChatClient(provider);
|
||||
|
||||
// Define the agent
|
||||
Agent agent = new ChatClientAgent(chatClient, ParrotInstructions, ParrotName);
|
||||
AIAgent agent = new ChatClientAgent(chatClient, ParrotInstructions, ParrotName);
|
||||
|
||||
// Invoke the agent and output the text result.
|
||||
Console.WriteLine(await agent.RunAsync("Fortune favors the bold."));
|
||||
|
||||
Reference in New Issue
Block a user