mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-06 08:30:50 +00:00
21 lines
546 B
C#
21 lines
546 B
C#
![]() |
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|||
|
// UserProxyAgentCodeSnippet.cs
|
|||
|
using AutoGen.Core;
|
|||
|
|
|||
|
namespace AutoGen.BasicSample.CodeSnippet;
|
|||
|
|
|||
|
public class UserProxyAgentCodeSnippet
|
|||
|
{
|
|||
|
public async Task CodeSnippet1()
|
|||
|
{
|
|||
|
#region code_snippet_1
|
|||
|
// create a user proxy agent which always ask user for input
|
|||
|
var agent = new UserProxyAgent(
|
|||
|
name: "user",
|
|||
|
humanInputMode: HumanInputMode.ALWAYS);
|
|||
|
|
|||
|
await agent.SendAsync("hello");
|
|||
|
#endregion code_snippet_1
|
|||
|
}
|
|||
|
}
|