|
1 | 1 | import { hydratePrompt, llmPrompt, parseTagFromResponse } from "./prompting.ts"; |
2 | 2 | import { LLMClient } from "../client.ts"; |
3 | 3 | import { DEFAULT_MODEL_NAME } from "../types.ts"; |
4 | | -import type { JSONSchema, JSONSchemaWritable } from "@commontools/builder"; |
| 4 | +import type { JSONSchema, JSONSchemaMutable } from "@commontools/builder"; |
5 | 5 | import { WorkflowForm } from "@commontools/charm"; |
6 | 6 |
|
7 | 7 | // Prompt for generating schema and specification from a goal |
@@ -271,8 +271,8 @@ Based on this goal and the existing schema, please provide a title, description, |
271 | 271 | const plan = parseTagFromResponse(response.content, "plan"); |
272 | 272 |
|
273 | 273 | // If we have an existing schema, use it; otherwise parse the generated schema |
274 | | - let resultSchema: JSONSchemaWritable; |
275 | | - let argumentSchema: JSONSchemaWritable; |
| 274 | + let resultSchema: JSONSchemaMutable; |
| 275 | + let argumentSchema: JSONSchemaMutable; |
276 | 276 |
|
277 | 277 | try { |
278 | 278 | const resultSchemaJson = parseTagFromResponse( |
@@ -393,8 +393,8 @@ Based on this goal and the existing schema, please provide a title, description, |
393 | 393 | const plan = parseTagFromResponse(response.content, "plan"); |
394 | 394 |
|
395 | 395 | // If we have an existing schema, use it; otherwise parse the generated schema |
396 | | - let resultSchema: JSONSchemaWritable; |
397 | | - let argumentSchema: JSONSchemaWritable; |
| 396 | + let resultSchema: JSONSchemaMutable; |
| 397 | + let argumentSchema: JSONSchemaMutable; |
398 | 398 |
|
399 | 399 | try { |
400 | 400 | const resultSchemaJson = parseTagFromResponse( |
|
0 commit comments