generate user message title and body

This commit is contained in:
Dax Raad
2025-10-24 11:49:27 -04:00
parent 483fcdaddb
commit fb40dc6b20
3 changed files with 43 additions and 16 deletions

View File

@@ -6,7 +6,6 @@ import { APICallError, convertToModelMessages, LoadAPIKeyError, type ModelMessag
import { Identifier } from "../id/id"
import { LSP } from "../lsp"
import { Snapshot } from "@/snapshot"
import { fn } from "@/util/fn"
export namespace MessageV2 {
export const OutputLengthError = NamedError.create("MessageOutputLengthError", z.object({}))
@@ -268,8 +267,9 @@ export namespace MessageV2 {
}),
summary: z
.object({
title: z.string().optional(),
body: z.string().optional(),
diffs: Snapshot.FileDiff.array(),
text: z.string(),
})
.optional(),
}).meta({