Conversations/IConversationHook.cs

BotSharp · src/Infrastructure/BotSharp.Abstraction/Conversations/IConversationHook.cs · csharp · Apache-2.0
ai

Interface for intercepting and modifying bot conversation lifecycle events.

// Source: https://github.com/SciSharp/BotSharp | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
using BotSharp.Abstraction.Hooks;
using BotSharp.Abstraction.Repositories.Filters;

namespace BotSharp.Abstraction.Conversations;

public interface IConversationHook : IHookBase
{
    int Priority { get; }
    Agent Agent { get; }
    List<RoleDialogModel> Dialogs { get; }
    IConversationHook SetAgent(Agent agent);

    Conversation Conversation { get; }
    IConversationHook SetConversation(Conversation conversation);

    /// <summary>
    /// Get the predifined intent for the conversation.
    /// It will send to the conversation context to help LLM to understand the user's intent.

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

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

Get a free API key