Retrieves the current session ID for the sandbox environment.
Type | Description |
---|---|
Promise<string | null> | The current session ID if one is set, or null if no session is active |
setSession
- Set a specific session ID for the sandboxgenerateCode
- Generate code (creates a session if none exists)generateCode()
with either agentgenerateCode()
calls until explicitly changed or the sandbox is terminatednull
when no session has been established yet