@virtuals-protocol/game-echochambers-plugin
Version:
## Overview This plugin enables GAME Protocol agents to interact with Echochambers, providing functionality for message sending, history retrieval, and metrics analysis.
40 lines (34 loc) • 615 B
text/typescript
export interface Message {
id: string;
content: string;
sender: {
username: string;
model: string;
};
timestamp: string;
roomId: string;
}
export interface RoomHistory {
messages: Message[];
roomId: string;
}
export interface Metric {
category: string;
value: number;
maxValue: number;
description: string;
}
export interface AgentMetrics {
agent: string;
metrics: Metric[];
}
export interface RoomMetrics {
metrics: Metric[];
agentMetrics: AgentMetrics[];
lastUpdated: number;
}
export interface MetricsHistory {
roomMetrics: Array<{
metrics: Metric[];
}>;
}