Table of Contents

Namespace Glitch9.AIDevKit.Agents

Classes

Agent

AI Agent that can generate responses using various models and manage conversations.

  • Wraps model, tools, audio, and conversation management in a single façade.
  • Uses internal services for conversations, tool calls, and audio I/O.
  • Acts as the main entry point for runtime chat / tool workflows.
AgentBehaviour

Agent behaviour callbacks and UnityEvent bridges.

  • Implements listener interfaces for agent, conversation, text, image, and tool events.
  • Exposes UnityEvents so game code and UI can react to agent activity.
  • Converts low-level deltas and tool outputs into high-level Unity events.
AgentHooks
AgentPrefs
AgentProfile
AgentServices
AgentSettings
AssistantsApiSettings
AudioController
CodeInterpreterToolDefinition
ComputerUseCallManager

Manages and executes computer actions that can be called by AI agents.

ComputerUseToolDefinition
ConversationController
CustomToolCallManager
CustomToolDefinition
CustomToolDescriptor
DefaultInputAudioService
DefaultOutputAudioPlayer
DefaultOutputAudioService
DefaultOutputImageService
DefaultToolCallHandler
EventRouter
FileSearchToolDefinition
FunctionCallManager

Manages and executes registered functions that can be called by AI agents.

  • Caches MethodInfo and Delegate for performance
  • JSON binding for arguments and return values
  • Supports CancellationToken
  • Supports void/UniTask/UniTaskT return types
FunctionDescriptor
FunctionToolDefinition
ImageController
ImageGenerationToolDefinition
LocalShellToolDefinition
McpController
McpToolDefinition
Parameters

Note: Unlike other IGenAIParameters, this class is not serializable and has no editor UI.

ShellCommandCallManager

Manages and executes local shell commands that can be called by AI agents.

SingleToolCallExecutor<TCall, TOutput>

Single tool call executor implementation.

TextEditorToolDefinition
ToolCallController
ToolCallManager<TCall, TOutput>
ToolDefinitionBase
ToolDefinition<TParams>

ScriptableObject that defines a tool with specific parameters.

UserProfile
WebSearchToolDefinition
XSearchToolDefinition

Structs

ToolOutputResult

Interfaces

IAgentBehaviour

Settings used to configure an Agent instance.

IAgentListener
IAgentService<TInput, TOutput, TParams>
IAudioContext
IChatService
IComputerUseActionHandler
IComputerUseCallExecutor
IComputerUseSafetyCheckService
IConversationContext
ICustomToolCallExecutor
IFunctionCallExecutor
IGenerationService<TInput, TOutput, TParams, TChunk, TEvent>
IInputAudioRecorder
IInputAudioService
ILocalShellCallExecutor
IOutputAudioPlayer
IOutputAudioService
IOutputImageService
IToolCallExecutor<TCall, TOutput>
IToolCallHandler
IToolContext
IToolProvider

Enums

AgentStatus

High-level lifecycle state of an Agent.

AgentTraits
ChatService

Defines the type of AI agent, which determines which API it uses.

  • DefaultUses Responses API if supported, or ChatCompletions API.
  • AssistantsApiUses Assistants API (OpenAI).
  • RealtimeApiUses Realtime API (OpenAI/WebSocket)
ScreenshotPathType
UnhandledToolCallBehaviour

Defines the policy to apply when a tool call is received but the agent has no handler for it.

Delegates

OnModelApiChanged
PushOutputMessageDelegate
RegisterToolsDelegate
ResetToReadyStateDelegate
SetStatusDelegate