a9cd7750f4
CI / unit-test (push) Has been cancelled
CI / detect-changes (push) Has been cancelled
CI / build (push) Has been cancelled
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / build-ui (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
UI v2 Integration CI / E2E (Integration) (push) Has been cancelled
UI v2 CI / Lint, Format & Test (push) Has been cancelled
UI v2 CI / E2E (Mocked) (push) Has been cancelled
29 lines
917 B
JSON
29 lines
917 B
JSON
{
|
|
"name": "book_appointment",
|
|
"version": 1,
|
|
"schemaVersion": 2,
|
|
"description": "Multi-turn A2A agent: asks a clarifying question (HUMAN task → A2A 'input-required'), then confirms. Exposed via metadata.a2a.enabled. A client resumes it by sending another message/send carrying the returned task id; that follow-up completes the HUMAN task and the workflow continues.",
|
|
"ownerEmail": "a2a@example.com",
|
|
"metadata": {
|
|
"a2a.enabled": true,
|
|
"a2a.tags": ["scheduling", "multi-turn"]
|
|
},
|
|
"tasks": [
|
|
{
|
|
"name": "ask_preferred_time",
|
|
"taskReferenceName": "ask",
|
|
"type": "HUMAN"
|
|
},
|
|
{
|
|
"name": "confirm_appointment",
|
|
"taskReferenceName": "confirm",
|
|
"type": "INLINE",
|
|
"inputParameters": {
|
|
"evaluatorType": "graaljs",
|
|
"expression": "({ status: 'confirmed', when: $.when })",
|
|
"when": "${ask.output._a2a_text}"
|
|
}
|
|
}
|
|
]
|
|
}
|