import type * as agentcore from "@distilled.cloud/aws/bedrock-agentcore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { CodeInterpreter } from "./CodeInterpreter.ts"; export interface StopCodeInterpreterSessionRequest extends Omit { } /** * Stops a running code interpreter session. * * Bind a {@link 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 * **Example:** Stop a Session After Use * ```typescript * // init * const stopSession = yield* AgentCore.StopCodeInterpreterSession(interpreter); * * // runtime (inside the handler) * yield* stopSession({ sessionId: session.sessionId }); * ``` * * @binding */ export interface StopCodeInterpreterSession extends Binding.Service(codeInterpreter: R) => Effect.Effect<(request: StopCodeInterpreterSessionRequest) => Effect.Effect>> { } export declare const StopCodeInterpreterSession: StopCodeInterpreterSession; //# sourceMappingURL=StopCodeInterpreterSession.d.ts.map