UNPKG

@openai/agents-core

Version:

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.

34 lines (33 loc) • 1.39 kB
import type { Agent, AgentOutputType } from '../../agent'; import type { RunState } from '../../runState'; import type { AgentInputItem } from '../../types'; export type SandboxMemoryTerminalMetadata = { terminal_state: 'completed' | 'interrupted' | 'cancelled' | 'failed' | 'max_turns_exceeded' | 'guardrail_tripped'; exception_type: string | null; exception_message: string | null; has_final_output: boolean; }; export type SandboxMemoryRolloutPayload = { updated_at: string; rollout_id: string; input: unknown; generated_items: unknown; interruptions?: unknown; terminal_metadata: SandboxMemoryTerminalMetadata; final_output?: unknown; }; export type MemoryRolloutIdentity = { conversationId?: string; sdkSessionId?: string; groupId?: string; fallbackId: string; }; export declare function resolveMemoryRolloutId(identity: MemoryRolloutIdentity): string; export declare function buildMemoryRolloutPayload<TContext>(state: RunState<TContext, Agent<TContext, AgentOutputType>>, args: { rolloutId: string; exception?: unknown; inputOverride?: string | AgentInputItem[]; }): SandboxMemoryRolloutPayload; export declare function validateRolloutId(value: string): string; export declare function normalizeRolloutSlug(value: string): string; export declare function renderPhaseOnePrompt(rolloutContents: string): string;