MCPcopy Index your code
hub / github.com/simstudioai/sim / taskErrored

Function taskErrored

apps/sim/lib/a2a/client.ts:355–358  ·  view source on GitHub ↗
(task: Task)

Source from the content-addressed store, hash-verified

353 * input-required/auth-required are not failures — the caller branches on `state`.
354 */
355export function taskErrored(task: Task): boolean {
356 const state = task.status?.state ?? TaskState.TASK_STATE_UNSPECIFIED
357 return state === TaskState.TASK_STATE_FAILED || state === TaskState.TASK_STATE_REJECTED
358}
359
360/** Flattened agent card fields for block output. */
361export interface A2AAgentCardOutput {

Callers 2

client.test.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected