Extracts the output content of a task regardless of whether it came from a canvas execution or a workflow execution.
outputContent.content
outputContent.output.output
Returns null if the task has no output yet (e.g. still running).
null
const task = await tela.tasks.get(id)const result = extractTaskOutput<MyOutput>(task) Copy
const task = await tela.tasks.get(id)const result = extractTaskOutput<MyOutput>(task)
Extracts the output content of a task regardless of whether it came from a canvas execution or a workflow execution.
outputContent.content.outputContent.output.outputin some legacy shapes; this helper handles both.Returns
nullif the task has no output yet (e.g. still running).