-
-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (27 loc) · 660 Bytes
/
types.ts
File metadata and controls
33 lines (27 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Message, Part } from "@opencode-ai/sdk"
export interface WithParts {
info: Message
parts: Part[]
}
export type ToolStatus = "pending" | "running" | "completed" | "error"
export interface ToolParameterEntry {
tool: string
parameters: any
status?: ToolStatus
error?: string
}
export interface SessionStats {
pruneTokenCounter: number
totalPruneTokens: number
}
export interface Prune {
toolIds: string[]
}
export interface SessionState {
sessionId: string | null
isSubAgent: boolean
prune: Prune
stats: SessionStats
toolParameters: Map<string, ToolParameterEntry>
nudgeCounter: number
}