Skip to content

A programming framework for agentic AI

978 B
Raw Blame
// Copyright (c) Microsoft Corporation. All rights reserved.
// UserProxyAgent.cs

using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace AutoGen;

public class UserProxyAgent : ConversableAgent
{
    public UserProxyAgent(
        string name,
        string systemMessage = "You are a helpful AI assistant",
        ConversableAgentConfig? llmConfig = null,
        Func<IEnumerable<IMessage>, CancellationToken, Task<bool>>? isTermination = null,
        HumanInputMode humanInputMode = HumanInputMode.ALWAYS,
        IDictionary<string, Func<string, Task<string>>>? functionMap = null,
        string? defaultReply = null)
        : base(name: name,
              systemMessage: systemMessage,
              llmConfig: llmConfig,
              isTermination: isTermination,
              humanInputMode: humanInputMode,
              functionMap: functionMap,
              defaultReply: defaultReply)
    {
    }
}