()
| 545 | } |
| 546 | |
| 547 | private requireSummary(): SessionSummary { |
| 548 | if (this.summary === undefined) { |
| 549 | throw new KimiError(ErrorCodes.SESSION_STATE_INVALID, 'Session summary is unavailable'); |
| 550 | } |
| 551 | return this.summary; |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | function normalizePromptInput(input: string | PromptInput): PromptInput { |