MCPcopy Create free account
hub / github.com/microsoft/TypeChat / createRepairPrompt

Method createRepairPrompt

typescript/src/typechat.ts:43–43  ·  view source on GitHub ↗

* Creates a repair prompt to append to an original prompt/response in order to repair a JSON object that * failed to validate. This function is called by `completeAndValidate` when `attemptRepair` is true and the * JSON object produced by the original prompt failed to validate. An applicat

(validationError: string)

Source from the content-addressed store, hash-verified

41 * @returns A repair prompt constructed from the error message.
42 */
43 createRepairPrompt(validationError: string): string;
44 /**
45 * Optionally implements additional validation logic beyond what is expressed in the schema. This function is
46 * called following successful schema validation of an instance. By default the function just returns a

Callers 1

translateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected