Core/BaseAgent.cs

autogen · dotnet/src/Microsoft.AutoGen/Core/BaseAgent.cs · csharp · CC-BY-4.0
ai

Abstract base class providing messaging, state, and runtime integration for AutoGen agents.

// Source: https://github.com/microsoft/autogen | License: CC-BY-4.0 | Copyright --then that use is not regulated by the license. Our
// Provided via justclaw.it.com; keep this notice with the code.

// Copyright (c) Microsoft Corporation. All rights reserved.
// BaseAgent.cs

using System.Diagnostics;
using System.Reflection;
using Microsoft.AutoGen.Contracts;
using Microsoft.Extensions.Logging;

namespace Microsoft.AutoGen.Core;

/// <summary>
/// Represents the base class for an agent in the AutoGen system.
/// </summary>
public abstract class BaseAgent : IHostableAgent, ISaveState
{
    /// <summary>
    /// The activity source for tracing.
    /// </summary>
    public static readonly ActivitySource s_source = new("Microsoft.AutoGen.Core.Agent");

    /// <summary>
    /// Gets the un

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key