Skip to main content
This page provides comprehensive TypeScript type definitions for all interfaces, types, and enums used throughout the AI Agents House SDK.

Core Configuration Types

AgentMonitoringConfig

Main configuration interface for the AgentMonitor class.

MonitoringOptions

Optional configuration for individual interactions.

Agent Types

AgentInfo

Complete agent registration information.

ToolInfo

Information about tools available to agents.

ComplianceSettings

Agent-specific compliance configuration.

Event Types

InteractionEvent

Generic event interface for the track() method.

EventMetadata

Flexible metadata interface for events.

Detailed Event Types

The SDK internally uses more detailed event types for specific tracking:

ConversationStartEvent

UserMessageEvent

AgentResponseEvent

ToolCallEvent

ToolResultEvent

ErrorEvent

ConversationEndEvent

Compliance Types

ComplianceRule

Interface for defining compliance rules.

InteractionContext

Context provided to compliance rules for evaluation.

ComplianceResult

Result returned by compliance rule evaluation.

Event Batching Types

EventBatch

Structure for batched event transmission.

EventBatcherConfig

Configuration for the EventBatcher class.

Utility Types

BaseEvent

Base interface for all events.

Logger

Interface for logging functionality.

HttpOptions

Options for HTTP requests.

Validation Types

ValidationError

Error type for validation failures.

Export Summary

All types are exported from the main module:

Type Usage Examples

Custom Rule with Full Typing

Strongly Typed Event Tracking

Type-Safe Configuration

Next Steps

AgentMonitor API

Learn about the main monitoring class methods

ComplianceEngine API

Explore compliance rule management

Error Handling

Understand error types and handling strategies

Examples

See these types used in practical examples