Files
hermes-agent/ui-tui/src/types.ts

46 lines
696 B
TypeScript
Raw Normal View History

2026-04-02 20:39:52 -05:00
export interface ActiveTool {
id: string
name: string
}
export interface ApprovalReq {
command: string
description: string
}
export interface ClarifyReq {
choices: string[] | null
question: string
requestId: string
}
export interface Msg {
role: Role
text: string
}
export type Role = 'assistant' | 'system' | 'tool' | 'user'
export interface SessionInfo {
model: string
skills: Record<string, string[]>
tools: Record<string, string[]>
}
export interface Usage {
calls: number
input: number
output: number
total: number
}
2026-04-03 14:44:50 -05:00
export interface SudoReq {
requestId: string
}
export interface SecretReq {
envVar: string
prompt: string
requestId: string
}