kimi-code / packages /node-sdk /src /interaction.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
4e23b01 verified
Raw
History Blame Contribute Delete
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;
}