feat(orchestrator): observe Page Data validation
This commit is contained in:
@@ -134,6 +134,19 @@ export function createOrchestratorApp({
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/v1/runs/:runId/validation-observations', async (request, response, next) => {
|
||||
try {
|
||||
const state = await runtime.recordValidationObservation(
|
||||
request.params.runId,
|
||||
request.body,
|
||||
);
|
||||
if (!state) return response.status(404).json({ error: { code: 'RUN_NOT_FOUND' } });
|
||||
return response.json(state);
|
||||
} catch (error) {
|
||||
return next(error);
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/v1/runs/:runId/resume', async (request, response, next) => {
|
||||
try {
|
||||
const state = await runtime.resume(request.params.runId, request.body);
|
||||
|
||||
Reference in New Issue
Block a user