a2a-js
Official JavaScript SDK for the Agent2Agent (A2A) Protocol
File Explorer
- settings.json
- bug-report.yml
- feature-request.yml
- build-tests.yml
- conventional-commits.yml
- coverage-comment.yml
- integration-tests.yml
- lint.yml
- npm-publish.yml
- release-please.yml
- release-pr-approvals.yml
- run-itk-nightly.yaml
- run-itk.yaml
- run-tck-compat.yaml
- stale-issues.yaml
- unit-tests.yml
- CODEOWNERS
- PULL_REQUEST_TEMPLATE.md
- compatibility-v0_3.md
- migration-guide.md
- buf.gen.yaml
- error_test_agent.ts
- itk_agent.ts
- run_error_tests.sh
- run_itk.sh
- scenarios.json
- scenarios_full.json
- generateCompatTypes.js
- grpc_transport.ts
- index.ts
- json_rpc_transport.ts
- pick_interface.ts
- rest_transport.ts
- tenant_transport_decorator.ts
- transport.ts
- auth-handler.ts
- card-resolver.ts
- context.ts
- factory.ts
- index.ts
- interceptors.ts
- multitransport-client.ts
- service-parameters.ts
- grpc_transport.ts
- index.ts
- json_rpc_transport.ts
- rest_transport.ts
- card-resolver.ts
- index.ts
- empty.ts
- struct.ts
- timestamp.ts
- a2a.ts
- buf.gen.yaml
- buf.lock
- buf.yaml
- README.md
- agent_card_handler.ts
- index.ts
- rest_handler.ts
- common.ts
- grpc_service.ts
- index.ts
- index.ts
- v03_push_notification_serializer.ts
- jsonrpc_transport_handler.ts
- rest_transport_handler.ts
- error.ts
- index.ts
- _clone.ts
- _validate.ts
- agent_card.ts
- artifacts.ts
- enums.ts
- errors.ts
- index.ts
- messages.ts
- parts.ts
- push_notifications.ts
- requests.ts
- security.ts
- tasks.ts
- versions.ts
- from_proto.ts
- id_decoding.ts
- to_proto.ts
- a2a.ts
- buf.gen.yaml
- buf.yaml
- README.md
- types.ts
- constants.ts
- index.ts
- README.md
- grpc.ts
- index.ts
- base.ts
- index.ts
- json_rpc.ts
- rest.ts
- any.ts
- duration.ts
- empty.ts
- struct.ts
- timestamp.ts
- error_details.ts
- status.ts
- a2a.ts
- buf.gen.yaml
- buf.lock
- buf.yaml
- README.md
- agent_executor.ts
- client.ts
- index.ts
- README.md
- _mock-v0_3-server.ts
- index.ts
- README.md
- index.ts
- README.md
- genkit.ts
- index.ts
- movie_agent.prompt
- README.md
- tmdb.ts
- tools.ts
- index.ts
- README.md
- agent_executor.ts
- client.ts
- index.ts
- README.md
- webhook.ts
- agent_executor.ts
- index.ts
- README.md
- index.ts
- agent_executor.ts
- authentication_middleware.ts
- index.ts
- README.md
- server_call_context.ts
- user_builder.ts
- index.ts
- README.md
- extensions.ts
- index.ts
- README.md
- cli.ts
- package-lock.json
- package.json
- agent_executor.ts
- request_context.ts
- user.ts
- execution_event_bus.ts
- execution_event_bus_manager.ts
- execution_event_queue.ts
- agent_card_handler.ts
- common.ts
- index.ts
- json_rpc_handler.ts
- rest_handler.ts
- common.ts
- grpc_service.ts
- index.ts
- default_push_notification_sender.ts
- push_notification_sender.ts
- push_notification_serializer.ts
- push_notification_store.ts
- a2a_request_handler.ts
- default_request_handler.ts
- jsonrpc_transport_handler.ts
- rest_transport_handler.ts
- list_tasks_serializer.ts
- context.ts
- index.ts
- owner_resolver.ts
- result_manager.ts
- store.ts
- utils.ts
- version.ts
- from_proto.ts
- to_proto.ts
- a2a.ts
- buf.gen.yaml
- buf.lock
- buf.yaml
- README.md
- constants.ts
- core.ts
- extensions.ts
- index.ts
- signature.ts
- sse_utils.ts
- version_utils.ts
- index.ts
- README.md
- package.json
- grpc_transport.spec.ts
- json_rpc_transport.spec.ts
- rest_transport.spec.ts
- tenant_transport_decorator.spec.ts
- card-resolver.spec.ts
- client_auth.spec.ts
- context.spec.ts
- factory.spec.ts
- multitransport-client.spec.ts
- util.ts
- grpc_transport.spec.ts
- json_rpc_transport.spec.ts
- rest_transport.spec.ts
- card_resolver.spec.ts
- agent_card_handler.spec.ts
- grpc_service.spec.ts
- create_legacy_aware_sender.spec.ts
- v03_push_notification_serializer.spec.ts
- jsonrpc_transport_handler.spec.ts
- rest_transport_handler.spec.ts
- _validate.spec.ts
- agent_card.spec.ts
- artifacts.spec.ts
- enums.spec.ts
- errors.spec.ts
- messages.spec.ts
- parts.spec.ts
- push_notifications.spec.ts
- requests.spec.ts
- security.spec.ts
- tasks.spec.ts
- versions.spec.ts
- from_proto.spec.ts
- to_proto.spec.ts
- constants.spec.ts
- samples_smoke.spec.ts
- execution_event_queue.spec.ts
- agent_card_handler.spec.ts
- express_app.spec.ts
- extensions_echo.spec.ts
- rest_handler.spec.ts
- sse_cleanup.spec.ts
- from_proto.spec.ts
- grpc_handler.spec.ts
- protobuf_serialization.spec.ts
- to_proto.spec.ts
- agent-executor.mock.ts
- push_notification_sender.mock.ts
- task_store.mock.ts
- auth_required.spec.ts
- cancel_task.spec.ts
- error_envelope.spec.ts
- push_notification_config.spec.ts
- resubscribe.spec.ts
- streaming_errors.spec.ts
- context.spec.ts
- default_request_handler.spec.ts
- execution_event_bus.spec.ts
- jsonrpc_transport_handler.spec.ts
- push_notification_integration.spec.ts
- push_notification_sender_serializer.spec.ts
- push_notification_store.spec.ts
- resource_scoping.spec.ts
- rest_transport_handler.spec.ts
- result_manager.spec.ts
- utils.spec.ts
- version.spec.ts
- e2e.spec.ts
- errors.spec.ts
- errors_grpc.spec.ts
- extensions.spec.ts
- signature.spec.ts
- sse_utils.spec.ts
- .gitignore
- .npmrc
- .prettierrc.json
- .release-please-manifest.json
- AGENTS.md
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- eslint.config.mjs
- LICENSE
- package-lock.json
- package.json
- README.md
- release-please-config.json
- SECURITY.md
- tsconfig.base.json
- tsconfig.json
- tsconfig.test.json
- tsup.config.ts
- vitest.config.ts
- vitest.edge.config.ts
- vitest.integration.config.ts
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npm run
View Details ▼
npm run
Run a script.
npm run
List available scripts:
npm run {{script_name}}
Run a script:
npm run {{script_name}} -- {{argument}} {{--option}}
Pass arguments to a script:
npm
View Details ▼
npm
JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.
npm init {{[-y|--yes]}}
Create a `package.json` file with default values (omit `--yes` to do it interactively):
npm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
task
View Details ▼
task
To-do list manager.
task add {{description}} due:{{tomorrow}}
Add a new task which is due tomorrow:
task {{task_id}} modify priority:{{H|M|L}}
Update a task's priority:
task {{task_id}} done
Complete a task:
signal
View Details ▼
signal
Simplified software signal facilities.
man signal
View documentation for signals in macOS:
