// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../../core/resource'; import { APIPromise } from '../../../core/api-promise'; import { RequestOptions } from '../../../internal/request-options'; import { path } from '../../../internal/utils/path'; /** * Agents defined by the company */ export class ResumeState extends APIResource { /** * Capture opaque state that can restore a compatible eval agent session. * * @example HTTP * Representative request and response shapes. * ``` * POST /agents/sessions/{session_id}/resume-state/ HTTP/1.1 * Host: rest.ripplingapis.com * Accept: application/json * Rippling-Api-Version: 2024-08-01 * * HTTP/1.1 200 OK * Content-Type: application/json * * { * "artifact": "string" * } * ``` */ create(sessionID: string, options?: RequestOptions): APIPromise { return this._client.post(path`/agents/sessions/${sessionID}/resume-state/`, options); } } /** * Opaque state used to restore an eval agent session. */ export interface ResumeStateCreateResponse { /** * An opaque base64-encoded agent session resume state */ artifact: string; } export declare namespace ResumeState { export { type ResumeStateCreateResponse as ResumeStateCreateResponse }; }