Add interfaces package
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user