Spawn Diagnostic • AI Agent SDK

spawn_diagnostic: Fire-and-forget a detached diagnostic into “log_dir“.

spawn_diagnostic

Method

</div>

This is a method of the ShutdownForensicsProtocol class in the protocols module.

Fire-and-forget a detached diagnostic into `log_dir`.

Must never raise and must not block the caller; the diagnostic runs in a detached session so it survives a `SIGKILL` on the process group.

Signature

python
def spawn_diagnostic(ctx: Dict[str, Any], log_dir: Optional[str]) -> None

Parameters

ParamField Dict[str, Any]

No description available.

ParamField Optional[str]

No description available.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 5756