35 lines
744 B
TypeScript
35 lines
744 B
TypeScript
|
|
import type { TToolScope } from './tool.js';
|
||
|
|
|
||
|
|
export type TAgentMode = 'auto' | 'ask' | 'suggest';
|
||
|
|
|
||
|
|
export type TAgentGlyph = 'comfort' | 'sentinel' | 'watt' | 'dawn' | 'echo' | 'steward' | 'custom';
|
||
|
|
|
||
|
|
export interface IAgentDefinition {
|
||
|
|
id: string;
|
||
|
|
name: string;
|
||
|
|
role: string;
|
||
|
|
glyph: TAgentGlyph;
|
||
|
|
color: string;
|
||
|
|
mode: TAgentMode;
|
||
|
|
model: string;
|
||
|
|
scopes: TToolScope[];
|
||
|
|
systemPrompt: string;
|
||
|
|
enabled: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IAgentStatus {
|
||
|
|
agentId: string;
|
||
|
|
actionsToday: number;
|
||
|
|
latest?: string;
|
||
|
|
savings?: string;
|
||
|
|
runningToolIds: string[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IAgentReasoningEvent {
|
||
|
|
id: string;
|
||
|
|
agentId: string;
|
||
|
|
kind: 'observe' | 'think' | 'plan' | 'tool' | 'speak';
|
||
|
|
text: string;
|
||
|
|
createdAt: string;
|
||
|
|
}
|