* Optionally implements additional validation logic beyond what is expressed in the schema. This function is * called following successful schema validation of an instance. By default the function just returns a * `Success ` for the given instance, but an application can assign a new fun
(instance: T)
| 50 | * @returns A `Success<T>` with the final validated instance, or an `Error` explaining the validation failure. |
| 51 | */ |
| 52 | validateInstance(instance: T): Result<T>; |
| 53 | /** |
| 54 | * Translates a natural language request into an object of type `T`. If the JSON object returned by |
| 55 | * the language model fails to validate and the `attemptRepair` property is `true`, a second |