Skip to content

Commit 0878d68

Browse files
committed
Rename dynamic A2A samples
1 parent 2f3c636 commit 0878d68

9 files changed

Lines changed: 32 additions & 32 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ The CLI passes both values to the Select AI SDK as `wallet_location` and
122122
The server accepts both A2A 1.x and the A2A v0.3 JSON-RPC streaming protocol
123123
for compatibility with Gemini Enterprise.
124124

125-
See the [A2A user guide](doc/source/user_guide/a2a.rst) for the dynamic
126-
gateway, A2UI connection flow, persistent task state, task polling and
125+
See the [A2A user guide](doc/source/user_guide/a2a.rst) for dynamic sessions,
126+
the A2UI connection flow, persistent task state, task polling and
127127
cancellation, wallet configuration, and Google Cloud deployment modes.
128128

129129
Generate the A2A v0.3 Agent Card to paste into Gemini Enterprise after the

‎doc/source/user_guide/a2a.rst‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -487,17 +487,17 @@ session routing metadata. The credentials remain in the worker child process
487487
for the lifetime of that session, so use TLS for client-to-gateway traffic and
488488
follow the security policies for any client that renders the form.
489489

490-
The gateway samples perform this handshake automatically. They use the
490+
The dynamic-session samples perform this handshake automatically. They use the
491491
repository-local helper module
492-
`samples/a2a/gateway/_common.py <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/_common.py>`__;
492+
`samples/a2a/dynamic/_common.py <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/_common.py>`__;
493493
``_common``
494494
is not a package that users install with ``pip``. Running the samples from the
495495
repository root as shown below makes that helper available automatically.
496496

497497
The helper functions are:
498498

499499
``call(method, params)``
500-
Sends one A2A v0.3 JSON-RPC request to the configured gateway endpoint.
500+
Sends one A2A v0.3 JSON-RPC request to the configured server endpoint.
501501

502502
``connect(prompt)``
503503
Sends the initial prompt, reads the A2UI connection form, submits the
@@ -506,26 +506,26 @@ The helper functions are:
506506
A2A context ID for the connected session.
507507

508508
``send_prompt(prompt, context_id, blocking=None)``
509-
Sends a database prompt in an existing gateway context. Passing
509+
Sends a database prompt in an existing dynamic session. Passing
510510
``blocking=False`` adds the non-blocking request option.
511511

512512
``print_task_summary(task)``
513513
Prints the task state, result artifact name, and text parts without dumping
514514
the connection-form details.
515515

516-
If you copy a gateway sample into another directory, copy the
517-
`_common.py helper <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/_common.py>`__
516+
If you copy a dynamic-session sample into another directory, copy the
517+
`_common.py helper <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/_common.py>`__
518518
with it, or replace these helpers with an A2A client implementation of your
519519
own.
520520

521-
The complete gateway setup is also documented in the
522-
`gateway sample README <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/README.md>`__.
521+
The complete dynamic-session setup is also documented in the
522+
`dynamic sample README <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/README.md>`__.
523523
The examples below are the
524-
`blocking_task.py sample <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/blocking_task.py>`__
524+
`blocking_task.py sample <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/blocking_task.py>`__
525525
and the
526-
`task_poll.py sample <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/task_poll.py>`__.
526+
`task_poll.py sample <https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/task_poll.py>`__.
527527

528-
.. literalinclude:: ../../../samples/a2a/gateway/blocking_task.py
528+
.. literalinclude:: ../../../samples/a2a/dynamic/blocking_task.py
529529
:language: python
530530
:lines: 8-
531531

@@ -542,7 +542,7 @@ Run it with:
542542

543543
.. code-block:: bash
544544
545-
python samples/a2a/gateway/blocking_task.py
545+
python samples/a2a/dynamic/blocking_task.py
546546
547547
Representative output is:
548548

@@ -552,10 +552,10 @@ Representative output is:
552552
Artifact: database-agent-result
553553
The database contains ...
554554
555-
The gateway polling sample uses the same connection-form handshake, then
555+
The dynamic polling sample uses the same connection-form handshake, then
556556
passes ``configuration.blocking: false`` and polls ``tasks/get``:
557557

558-
.. literalinclude:: ../../../samples/a2a/gateway/task_poll.py
558+
.. literalinclude:: ../../../samples/a2a/dynamic/task_poll.py
559559
:language: python
560560
:lines: 8-
561561

‎gcloud/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Both deployments expose the public A2A endpoint at:
103103

104104
Both accept A2A 1.0 method names and the A2A v0.3 compatibility method names.
105105
The gateway client flow is documented in the
106-
[gateway samples](../samples/a2a/gateway/README.md).
106+
[dynamic-session samples](../samples/a2a/dynamic/README.md).
107107

108108
## Which deployment should you choose?
109109

‎samples/README.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,22 @@ Task 7e1...: completed
219219
}
220220
```
221221

222-
## A2A dynamic gateway
222+
## Dynamic A2A sessions
223223

224-
The dynamic gateway samples submit the A2UI database connection form, open a
225-
temporary worker session, and execute database tasks. The gateway advertises
224+
The dynamic session samples submit the A2UI database connection form, open a
225+
temporary database session, and execute database tasks. The server advertises
226226
`streaming: false` and supports non-blocking task execution with
227227
`configuration.blocking: false` and `tasks/get`.
228228

229-
Gateway-specific samples that perform the form handshake and then execute a
230-
real database task are in [a2a/gateway](a2a/gateway/README.md):
229+
Dynamic-session samples that perform the form handshake and then execute a
230+
real database task are in [a2a/dynamic](a2a/dynamic/README.md):
231231

232232
```bash
233-
python samples/a2a/gateway/blocking_task.py
234-
python samples/a2a/gateway/task_poll.py
233+
python samples/a2a/dynamic/blocking_task.py
234+
python samples/a2a/dynamic/task_poll.py
235235
```
236236

237-
See that README for local Consul, worker, and gateway startup instructions.
237+
See that README for standalone and clustered startup instructions.
238238

239239
The full A2A architecture, protocol details, session lifecycle, and Google
240240
Cloud deployment explanation are in the
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ The server accepts both versions, but streaming is disabled in both.
1919

2020
The sample scripts import `call`, `connect`, `send_prompt`, and
2121
`print_task_summary` from the adjacent
22-
[`_common.py`](https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/_common.py)
22+
[`_common.py`](https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/_common.py)
2323
file. This is a
2424
repository-local sample helper, not an additional Python dependency. It sends
2525
the JSON-RPC requests, reads the fields requested by the returned A2UI form,
2626
submits only those fields from the environment variables below, and formats
2727
the final task result. If you copy a script elsewhere, copy
28-
[`_common.py`](https://github.com/oracle/python-select-ai/blob/main/samples/a2a/gateway/_common.py)
28+
[`_common.py`](https://github.com/oracle/python-select-ai/blob/main/samples/a2a/dynamic/_common.py)
2929
with it or replace those helpers with your own A2A client code.
3030

3131
## Local setup
@@ -83,7 +83,7 @@ select-ai a2a worker \
8383
--worker-endpoint http://127.0.0.1:8081
8484
```
8585

86-
Terminal 3, the gateway:
86+
Terminal 3, the dynamic server:
8787

8888
```bash
8989
source .venv/bin/activate
@@ -127,7 +127,7 @@ First inspect the exact A2UI artifact and requested fields without submitting
127127
credentials:
128128

129129
```bash
130-
python samples/a2a/gateway/inspect_form.py
130+
python samples/a2a/dynamic/inspect_form.py
131131
```
132132

133133
The task samples perform the connection-form handshake automatically and
@@ -137,13 +137,13 @@ validate that the final artifact is
137137
Blocking database task:
138138

139139
```bash
140-
python samples/a2a/gateway/blocking_task.py
140+
python samples/a2a/dynamic/blocking_task.py
141141
```
142142

143143
Non-blocking database task with polling:
144144

145145
```bash
146-
python samples/a2a/gateway/task_poll.py
146+
python samples/a2a/dynamic/task_poll.py
147147
```
148148

149149
Expected task output is similar to:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def send_prompt(
148148
context_id: str,
149149
blocking: bool | None = None,
150150
) -> dict:
151-
"""Send a normal database prompt through an existing gateway session."""
151+
"""Send a normal database prompt through an existing dynamic session."""
152152
params = {"message": _message(prompt, context_id)}
153153
if blocking is False:
154154
params["configuration"] = {"blocking": False}

0 commit comments

Comments
 (0)