mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 02:50:00 +08:00
84 lines
2.9 KiB
TypeScript
84 lines
2.9 KiB
TypeScript
import type {
|
|
BookReference,
|
|
LLMSelection,
|
|
MasteryCardAnswer,
|
|
MasteryCardSkip,
|
|
MemoryReferences,
|
|
NotebookReference,
|
|
OutgoingAttachment,
|
|
ReadingReference,
|
|
ReadingViewport,
|
|
TimedMediaViewport,
|
|
} from "@/contracts/generated/turn-protocol";
|
|
|
|
export interface StartTurnInput {
|
|
workspaceId?: string | null;
|
|
content: string;
|
|
clientSubmissionId?: string | null;
|
|
capability?: string | null;
|
|
sessionId?: string | null;
|
|
tools?: string[] | null;
|
|
knowledgeBases?: string[];
|
|
language?: string | null;
|
|
/** Omit to preserve the session's selector; null explicitly clears it. */
|
|
replyLanguageOverride?: string | null;
|
|
capabilityConfig?: Record<string, unknown>;
|
|
allowedCapabilityConfigKeys?: readonly string[];
|
|
attachments?: OutgoingAttachment[];
|
|
notebookReferences?: NotebookReference[];
|
|
historyReferences?: string[];
|
|
partnerGroupReferences?: Array<Record<string, unknown>>;
|
|
questionNotebookReferences?: number[];
|
|
bookReferences?: BookReference[];
|
|
readingReferences?: ReadingReference[];
|
|
memoryReferences?: MemoryReferences;
|
|
skills?: string[];
|
|
mcp?: string[];
|
|
persona?: string | null;
|
|
llmSelection?: LLMSelection | null;
|
|
workspaceMode?: string | null;
|
|
masteryPathId?: string | null;
|
|
masterySessionMode?: string | null;
|
|
noteDocumentId?: string | null;
|
|
noteGeneration?: { block_id: string; kind?: string } | null;
|
|
/** Create mode: the artifact kind this turn authors towards, or null when
|
|
* off. Sent on every turn, unlike most fields here which are omitted to
|
|
* preserve the session's value. */
|
|
createTarget?: string | null;
|
|
masteryPathLeaseManaged?: boolean;
|
|
masteryAnswer?: MasteryCardAnswer | null;
|
|
masterySkip?: MasteryCardSkip | null;
|
|
readingMaterialId?: string | null;
|
|
readingMaterialRevision?: number | null;
|
|
readingWorkspaceId?: string | null;
|
|
readingViewport?: ReadingViewport | null;
|
|
timedMediaId?: string | null;
|
|
timedMediaViewport?: TimedMediaViewport | null;
|
|
parentMessageId?: number | null;
|
|
persistUserMessage?: boolean;
|
|
regenerate?: boolean;
|
|
regeneratedFromMessageId?: number | null;
|
|
supersededTurnId?: string | null;
|
|
followupQuestionContext?: Record<string, unknown> | null;
|
|
selectionTutorContext?: Record<string, unknown> | null;
|
|
subagentConsultBudget?: number | null;
|
|
consultPartnerId?: string | null;
|
|
partnerDiscussionGroupId?: string | null;
|
|
/** Hand the turn to a partner or a connected agent: `partner:<id>` / `subagent:<name>`. */
|
|
answerBy?: string | null;
|
|
autoRoute?: boolean | null;
|
|
/** Run `capability` for this turn only; the session keeps its own mode. */
|
|
capabilityOnce?: boolean;
|
|
}
|
|
|
|
export interface LegacySendMessageArguments {
|
|
content: string;
|
|
attachments?: OutgoingAttachment[];
|
|
config?: Record<string, unknown>;
|
|
notebookReferences?: NotebookReference[];
|
|
historyReferences?: string[];
|
|
questionNotebookReferences?: number[];
|
|
persona?: string;
|
|
memoryReferences?: MemoryReferences;
|
|
}
|