Skip to main content

TaskSpecToLaunchFormJson

Converts a TaskSpec to an RSJF-compliant JSON schema.

def TaskSpecToLaunchFormJson(
ctx: context.Context,
taskSpec: *task.TaskSpec
) - > *structpb.Struct

Converts a TaskSpec to an RSJF-compliant JSON schema. This function is used to generate a launch form based on the inputs defined in a task specification.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and tracing.
taskSpec*task.TaskSpecThe task specification containing the interface definition from which the launch form schema will be generated.

Returns

TypeDescription
*structpb.StructA structpb.Struct representing the RSJF-compliant JSON schema for the launch form.