Commit 37b5a0f
feat: Pass state from first bidi_stream_query request to async_create_session
The `bidi_stream_query` method in AdkApp now correctly extracts the "state" field from the initial request in the stream and forwards it to `async_create_session` when a new session is being created. This ensures that session state is properly initialized for bidi-directional streaming calls. A unit test is added to verify this behavior.
PiperOrigin-RevId: 8953681301 parent 09794ba commit 37b5a0f
File tree
2 files changed
+31
-1
lines changed- tests/unit/vertex_adk
- vertexai/preview/reasoning_engines/templates
2 files changed
+31
-1
lines changedLines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
651 | 680 | | |
652 | 681 | | |
653 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
| 1181 | + | |
| 1182 | + | |
1182 | 1183 | | |
1183 | 1184 | | |
1184 | 1185 | | |
| |||
0 commit comments