StopRuntimeSession
Source:
src/AWS/BedrockAgentCore/StopRuntimeSession.ts
Stops a specific session on the agent runtime.
Bind a Runtime inside a function runtime to call the
AgentCore data-plane API against it. Provide AgentCore.StopRuntimeSessionHttp
on the Function effect to implement the binding.
Runtime Sessions
Section titled “Runtime Sessions”// initconst stopRuntimeSession = yield* AgentCore.StopRuntimeSession(runtime);
return { fetch: Effect.gen(function* () { // runtime yield* stopRuntimeSession({ runtimeSessionId }); return HttpServerResponse.json({ stopped: true }); }),};