Commit 1cafa7d
chore: Copies latest session state to the passed-in session for runAsync with Session
NOTE: `runAsync` with `Session` object was an early interface and doesn't comply with ADK interfaces across languages. Adding this behavior back is to temporarily restore previous behavior.
Here are some clarifications of the behavior:
- Any changes to the passed-in `Session` object at `runAsync` callsite won't affect agent run;
- Callsite should always use session service to get latest session if they need to access session, instead of reading into the passed-in session object.
- All runAsync with Session object will be deprecated and removed in future versions.
PiperOrigin-RevId: 8200778431 parent 84e755c commit 1cafa7d
1 file changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
| |||
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
362 | 375 | | |
363 | 376 | | |
364 | 377 | | |
| |||
0 commit comments