This commit is contained in:
2026-04-28 19:36:39 +08:00
parent a9febe7678
commit f0471a4f8d
206 changed files with 18456 additions and 10133 deletions

View File

@@ -47,11 +47,12 @@ export type CharacterChatReplyRequest<
TConversationTurn = unknown,
TTargetStatus = unknown,
> = {
worldType: string;
playerCharacter: TCharacter;
sessionId?: string;
worldType?: string;
playerCharacter?: TCharacter;
targetCharacter: TCharacter;
storyHistory: TStoryMoment[];
context: TContext;
storyHistory?: TStoryMoment[];
context?: TContext;
conversationHistory: TConversationTurn[];
conversationSummary: string;
playerMessage: string;
@@ -65,11 +66,12 @@ export type CharacterChatSuggestionsRequest<
TConversationTurn = unknown,
TTargetStatus = unknown,
> = {
worldType: string;
playerCharacter: TCharacter;
sessionId?: string;
worldType?: string;
playerCharacter?: TCharacter;
targetCharacter: TCharacter;
storyHistory: TStoryMoment[];
context: TContext;
storyHistory?: TStoryMoment[];
context?: TContext;
conversationHistory: TConversationTurn[];
conversationSummary: string;
targetStatus: TTargetStatus;
@@ -82,11 +84,12 @@ export type CharacterChatSummaryRequest<
TConversationTurn = unknown,
TTargetStatus = unknown,
> = {
worldType: string;
playerCharacter: TCharacter;
sessionId?: string;
worldType?: string;
playerCharacter?: TCharacter;
targetCharacter: TCharacter;
storyHistory: TStoryMoment[];
context: TContext;
storyHistory?: TStoryMoment[];
context?: TContext;
conversationHistory: TConversationTurn[];
previousSummary: string;
targetStatus: TTargetStatus;
@@ -99,12 +102,13 @@ export type NpcChatDialogueRequest<
TStoryMoment = unknown,
TContext = unknown,
> = {
worldType: string;
character: TCharacter;
sessionId?: string;
worldType?: string;
character?: TCharacter;
encounter: TEncounter;
monsters: TMonster[];
history: TStoryMoment[];
context: TContext;
monsters?: TMonster[];
history?: TStoryMoment[];
context?: TContext;
topic: string;
resultSummary: string;
npcInitiatesConversation?: boolean;
@@ -123,13 +127,14 @@ export type NpcChatTurnRequest<
TQuestOfferEncounter = unknown,
TChatDirective = NpcChatTurnDirective,
> = {
worldType: string;
sessionId?: string;
worldType?: string;
character?: TCharacter;
player?: TCharacter;
encounter: TEncounter;
monsters: TMonster[];
history: TStoryMoment[];
context: TContext;
monsters?: TMonster[];
history?: TStoryMoment[];
context?: TContext;
conversationHistory?: TConversationTurn[];
dialogue?: TConversationTurn[];
combatContext?: TCombatContext | null;
@@ -171,12 +176,13 @@ export type NpcRecruitDialogueRequest<
TStoryMoment = unknown,
TContext = unknown,
> = {
worldType: string;
character: TCharacter;
sessionId?: string;
worldType?: string;
character?: TCharacter;
encounter: TEncounter;
monsters: TMonster[];
history: TStoryMoment[];
context: TContext;
monsters?: TMonster[];
history?: TStoryMoment[];
context?: TContext;
invitationText: string;
recruitSummary: string;
};