Documentation Index
Fetch the complete documentation index at: https://docs.egisai.co/llms.txt
Use this file to discover all available pages before exploring further.
When to use it
You usually don’t have to callshutdown() explicitly — egisai.init()
registers it with atexit so it runs at process exit. Call it manually if:
- Your process orchestrator terminates without firing
atexithandlers (some containers do this onSIGKILL-like signals). - You want to deactivate the SDK in the middle of a long-running process — for example in a unit test, or before reinitializing with new credentials.
Parameters
None.Returns
None.
Behavior
- Stops the policy refresher worker if running.
- Stops the audit logger worker if running, draining its queue first.
- Closes the HTTP client used to talk to the control plane.
- Releases any cached judge-side resources.
- Safe to call multiple times — each subsequent call is a no-op.
shutdown() does not undo the import-time patches applied to provider
SDKs. To resume governance after a shutdown(), call egisai.init() again.
Example
What’s next
init
Activate the SDK.
Troubleshooting
What to check when something looks off at shutdown.