File size: 925 Bytes
82be208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
 * OpenAI-compatible tool call type.
 */
export enum ToolCallType {
	FUNCTION = 'function'
}

/**
 * Types of sections in agentic content display.
 */
export enum AgenticSectionType {
	REASONING = 'reasoning',
	REASONING_PENDING = 'reasoning_pending',
	TEXT = 'text',
	TOOL_CALL = 'tool_call',
	TOOL_CALL_PENDING = 'tool_call_pending',
	TOOL_CALL_STREAMING = 'tool_call_streaming'
}

/**
 * How a Continue click on an assistant message resumes generation.
 */
export enum ContinueIntentKind {
	APPEND_TEXT = 'append_text',
	NEXT_TURN = 'next_turn',
	RERUN_TURN = 'rerun_turn'
}

/**
 * Renderer tier for a tool-result blob shown in the default tool-call block.
 */
export enum ToolResultKind {
	JSON = 'json',
	MARKDOWN = 'markdown',
	TEXT = 'text'
}

/**
 * Line classification for the unified-diff renderer of `edit_file` results.
 */
export enum DiffLineKind {
	ADD = 'add',
	CONTEXT = 'context',
	REMOVE = 'remove'
}