fix(confidence-engine): await focused deconstruction provider
This commit is contained in:
@@ -198,7 +198,7 @@ export function validateFocusedDeconstructSchema(result) {
|
||||
* Validates result with validateFocusedDeconstructSchema.
|
||||
* Returns validated semantic payload on success, or { validation: false, errors } on schema failure.
|
||||
*/
|
||||
export function focusedDeconstruct({
|
||||
export async function focusedDeconstruct({
|
||||
provider,
|
||||
modelName,
|
||||
targetNodeId,
|
||||
@@ -216,7 +216,7 @@ export function focusedDeconstruct({
|
||||
answer,
|
||||
});
|
||||
|
||||
const wrapper = provider.generateReconstruction(
|
||||
const wrapper = await provider.generateReconstruction(
|
||||
prompt,
|
||||
modelName,
|
||||
focusedDeconstructJsonSchema,
|
||||
|
||||
Reference in New Issue
Block a user