Repository navigation
Commit b76014f
authored
fix(docs): add explicit shutdown to quickstart example (#149)
## Summary
- update the README quickstart async example to call
`agent_control.ashutdown()` in a `finally` block
- wrap the snippet with an `if __name__ == "__main__":` guard
- add a short note explaining that short-lived scripts should explicitly
shut down so observability events flush before exit
## Testing
- make check
- git push -u origin abhi/quickstart-explicit-shutdown (pre-push hook:
lint, typecheck, contrib evaluator checks)1 parent ef3e1d8 commit b76014f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
0 commit comments