feat: add lda report workflow demo panel
This commit is contained in:
@@ -242,6 +242,9 @@ const RunInterruptSchema = Schema.Struct({
|
||||
kind: Schema.String,
|
||||
payload: JsonObjectSchema,
|
||||
outcomes: Schema.Array(Schema.String),
|
||||
request_schema: Schema.optional(JsonObjectSchema),
|
||||
resume_schema: Schema.optional(JsonObjectSchema),
|
||||
typed: Schema.optional(Schema.Boolean),
|
||||
});
|
||||
|
||||
const RunNextActionsSchema = Schema.Struct({
|
||||
@@ -275,6 +278,31 @@ export const WorkflowRunsInspect = Rpc.make("workflow.runs.inspect", {
|
||||
error: Schema.Never,
|
||||
});
|
||||
|
||||
export const WorkflowRunsStartPayloadSchema = Schema.Struct({
|
||||
deployment_id: Schema.String,
|
||||
workflow_input: JsonObjectSchema,
|
||||
trace_range: Schema.optional(Schema.NullOr(TraceRangeSchema)),
|
||||
});
|
||||
|
||||
export const WorkflowRunsResumePayloadSchema = Schema.Struct({
|
||||
run_id: Schema.String,
|
||||
resume_payload: JsonObjectSchema,
|
||||
resume_outcome: Schema.optional(Schema.String),
|
||||
trace_range: Schema.optional(Schema.NullOr(TraceRangeSchema)),
|
||||
});
|
||||
|
||||
export const WorkflowRunsStart = Rpc.make("workflow.runs.start", {
|
||||
payload: WorkflowRunsStartPayloadSchema,
|
||||
success: WorkflowRunsInspectResultSchema,
|
||||
error: Schema.Never,
|
||||
});
|
||||
|
||||
export const WorkflowRunsResume = Rpc.make("workflow.runs.resume", {
|
||||
payload: WorkflowRunsResumePayloadSchema,
|
||||
success: WorkflowRunsInspectResultSchema,
|
||||
error: Schema.Never,
|
||||
});
|
||||
|
||||
export const WorkflowRunsTracePayloadSchema = Schema.Struct({
|
||||
run_id: Schema.String,
|
||||
trace_range: TraceRangeSchema,
|
||||
@@ -314,5 +342,7 @@ export const WorkflowRpcs = RpcGroup.make(
|
||||
WorkflowDeploymentsValidate,
|
||||
WorkflowRunsList,
|
||||
WorkflowRunsInspect,
|
||||
WorkflowRunsStart,
|
||||
WorkflowRunsResume,
|
||||
WorkflowRunsTrace,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user