Extensions/AnthropicAgentExtension.cs

autogen · dotnet/src/AutoGen.Anthropic/Extensions/AnthropicAgentExtension.cs · csharp · CC-BY-4.0
ai

Adds a streaming middleware connector to Anthropic agents, simplifying message handling.

// 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.
// AnthropicAgentExtension.cs

using AutoGen.Anthropic.Middleware;
using AutoGen.Core;

namespace AutoGen.Anthropic.Extensions;

public static class AnthropicAgentExtension
{
    /// <summary>
    /// Register an <see cref="AnthropicMessageConnector"/> to the <see cref="AnthropicClientAgent"/>
    /// </summary>
    /// <param name="connector">the connector to use. If null, a new instance of <see cref="AnthropicMessageConnector"/> will be created.</param>
    public static MiddlewareStreamingAgent<AnthropicClientAgent> RegisterMessage

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

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

Get a free API key