mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 17:27:37 +08:00
feat: split apart main.tsx
This commit is contained in:
35
ui-tui/src/types.ts
Normal file
35
ui-tui/src/types.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user