Search Results for

    Show / Hide Table of Contents

    Interface IAgentBehaviour

    Defines the behavior and configuration settings for an AI agent, including conversation management, tool calling policies, streaming options, and logging preferences.

    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IAgentBehaviour
    Remarks

    This interface defines all configurable aspects of an AI agent, including conversation management, tool calling behavior, streaming options, and multimodal capabilities (audio/image).

    Properties

    | Edit this page View Source

    AutoInit

    Gets whether the agent should automatically initialize when instantiated.

    Declaration
    bool AutoInit { get; }
    Property Value
    Type Description
    bool
    Remarks

    If true, the agent will load conversation history, register tools, and prepare for interaction immediately. If false, you must manually call initialization methods before using the agent.

    | Edit this page View Source

    InitialConversationIdOverride

    Gets the conversation configuration settings for this agent, including context management, title generation, summarization, and RAG settings.

    Declaration
    string InitialConversationIdOverride { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    LogLevel

    Gets the logging verbosity level for debugging and diagnostics.

    Declaration
    TraceLevel LogLevel { get; }
    Property Value
    Type Description
    TraceLevel
    Remarks

    Uses standard TraceLevel values:

    • Off: No logging
    • Error: Only errors
    • Warning: Errors and warnings
    • Info: General information
    • Verbose: Detailed debug information
    | Edit this page View Source

    StreamOptions

    Gets the streaming options for real-time response generation.

    Declaration
    StreamOptions StreamOptions { get; }
    Property Value
    Type Description
    StreamOptions
    Remarks

    Controls which types of streaming events the agent should emit (text, audio, images, annotations, etc.). Enabling only required event types can improve performance.

    | Edit this page View Source

    ToolCallConfig

    Gets the tool calling behavior and timeout settings.

    Declaration
    ToolCallConfig ToolCallConfig { get; }
    Property Value
    Type Description
    ToolCallConfig
    Remarks

    Defines how the agent handles function/tool calls during interactions, including policies for unhandled tools and approval workflows. See ToolCallConfig for detailed configuration options.

    | Edit this page View Source

    WriteGenerationRecords

    Gets whether to save request and response records for this agent.

    Declaration
    bool WriteGenerationRecords { get; }
    Property Value
    Type Description
    bool
    Remarks

    When enabled, all API requests and responses are persisted for:

    • Debugging and troubleshooting
    • Usage analytics and monitoring
    • Compliance and audit trails

      Note: Saving records consumes additional storage and may include sensitive data.

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation