feat(orchestrator): observe Page Data validation
This commit is contained in:
@@ -124,6 +124,12 @@ export function createRemoteWorkflowEngine({
|
||||
async getState(runId) {
|
||||
return request(`/v1/runs/${encodeURIComponent(runId)}`);
|
||||
},
|
||||
async recordValidationObservation(runId, observation) {
|
||||
return request(`/v1/runs/${encodeURIComponent(runId)}/validation-observations`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(observation ?? {}),
|
||||
});
|
||||
},
|
||||
async *streamEvents(runId, cursor = null) {
|
||||
const query = cursor == null ? '' : `?after=${encodeURIComponent(cursor)}`;
|
||||
const result = await request(`/v1/runs/${encodeURIComponent(runId)}/events${query}`);
|
||||
|
||||
Reference in New Issue
Block a user