StopCodeInterpreterSession
Source:
src/AWS/BedrockAgentCore/StopCodeInterpreterSession.ts
Stops a running code interpreter session.
Bind a CodeInterpreter inside a function runtime to end sessions
opened with StartCodeInterpreterSession and release the sandbox.
Provide AgentCore.StopCodeInterpreterSessionHttp on the Function effect
to implement the binding.
Stopping Sessions
Section titled “Stopping Sessions”// initconst stopSession = yield* AgentCore.StopCodeInterpreterSession(interpreter);
// runtime (inside the handler)yield* stopSession({ sessionId: session.sessionId });