(task: Task)
| 353 | * input-required/auth-required are not failures — the caller branches on `state`. |
| 354 | */ |
| 355 | export 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. */ |
| 361 | export interface A2AAgentCardOutput { |
no outgoing calls
no test coverage detected