Download packages/agent-core-v2/src/agent/interaction/approval.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/interaction/approval.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/interaction/approval.ts
-
curl -L -o approval.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/interaction/approval.ts
585 Bytes
| import type { ToolInputDisplay } from '#/tool/toolInputDisplay'; | |
| export type ApprovalDecision = 'approved' | 'rejected' | 'cancelled'; | |
| export interface ApprovalRequest { | |
| readonly id?: string; | |
| readonly sessionId?: string; | |
| readonly agentId?: string; | |
| readonly turnId?: number; | |
| readonly toolCallId?: string; | |
| readonly toolName: string; | |
| readonly action: string; | |
| readonly display: ToolInputDisplay; | |
| } | |
| export interface ApprovalResponse { | |
| readonly decision: ApprovalDecision; | |
| readonly scope?: 'session'; | |
| readonly feedback?: string; | |
| readonly selectedLabel?: string; | |
| } | |