Download packages/node-sdk/src/interaction.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 979 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/src/interaction.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/node-sdk/src/interaction.ts
-
curl -L -o interaction.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/src/interaction.ts
979 Bytes
| import type { ToolInputDisplay } from '@moonshot-ai/agent-core-v2/tool/toolInputDisplay'; | |
| import type { ContentPart } from '@moonshot-ai/kosong'; | |
| export type { | |
| ApprovalDecision, | |
| ApprovalResponse, | |
| } from '@moonshot-ai/agent-core-v2/agent/interaction/approval'; | |
| export type { | |
| QuestionAnswerMethod, | |
| QuestionAnswers, | |
| QuestionItem, | |
| QuestionOption, | |
| QuestionRequest, | |
| QuestionResponse, | |
| QuestionResult, | |
| } from '@moonshot-ai/agent-core-v2/agent/interaction/question'; | |
| export type ApprovalScope = 'session'; | |
| export interface ApprovalRequest { | |
| readonly turnId?: number | undefined; | |
| readonly toolCallId: string; | |
| readonly toolName: string; | |
| readonly action: string; | |
| readonly display: ToolInputDisplay; | |
| } | |
| export interface ToolCallRequest { | |
| readonly turnId?: number | undefined; | |
| readonly toolCallId: string; | |
| readonly args: unknown; | |
| } | |
| export interface ToolCallResponse { | |
| readonly output: string | ContentPart[]; | |
| readonly isError?: boolean | undefined; | |
| } | |