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 SourceAutoInit
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.
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 |
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
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.
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.
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.