Commit 892f846
committed
fix(managed_agents): align memory cookbook with CMA series conventions
- Guard the session.status_idle break on stop_reason.type == "end_turn"
so the pattern is safe to copy into custom-tool agents
- Import wait_for_idle_status from utilities and call it before each
sessions.archive() to absorb the SSE-vs-status race
- Use environments.archive instead of environments.delete
- Define MODEL via the COOKBOOK_MODEL env var like the other CMA
notebooks and pass it to agents.create
- Seed cell: capture the return, print the seeded path, and note that
it must run before the cleanup cell that deletes the store
https://claude.ai/code/session_01VkfVPdiJTWVh6Vj5owqRXH1 parent 1016f8f commit 892f846
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
114 | | - | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
190 | | - | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
474 | 480 | | |
475 | 481 | | |
476 | 482 | | |
477 | | - | |
| 483 | + | |
| 484 | + | |
478 | 485 | | |
479 | 486 | | |
480 | 487 | | |
481 | 488 | | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
485 | | - | |
| 492 | + | |
| 493 | + | |
486 | 494 | | |
487 | 495 | | |
488 | 496 | | |
| |||
542 | 550 | | |
543 | 551 | | |
544 | 552 | | |
| 553 | + | |
545 | 554 | | |
| 555 | + | |
546 | 556 | | |
547 | 557 | | |
548 | 558 | | |
549 | | - | |
| 559 | + | |
550 | 560 | | |
551 | 561 | | |
552 | 562 | | |
| |||
0 commit comments