You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c166961
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,10 +139,15 @@ async def main():
139
139
print(await chat("test")) # ❌ Blocked
140
140
except ControlViolationError as e:
141
141
print(f"❌ Blocked: {e.control_name}")
142
+
finally:
143
+
await agent_control.ashutdown()
142
144
143
-
asyncio.run(main())
145
+
if__name__=="__main__":
146
+
asyncio.run(main())
144
147
```
145
148
149
+
Use `agent_control.shutdown()` or `await agent_control.ashutdown()` before process exit so short-lived scripts flush pending observability events cleanly.
150
+
146
151
Next, create a control in Step 4, then run the setup and agent scripts in
0 commit comments