UNPKG

@openai/agents-core

Version:

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

9 lines (8 loc) • 844 B
import type { Agent, AgentOutputType } from '../../agent'; import type { SandboxAgent } from '../agent'; export declare function allocateAgentKeys<TContext>(startingAgent: Agent<TContext, AgentOutputType>): Map<number, string>; export declare function indexAgentsByKey<TContext>(startingAgent: Agent<TContext, AgentOutputType>, keys: ReadonlyMap<number, string>): Map<string, Agent<TContext, AgentOutputType>>; export declare function acquireSandboxAgent<TContext>(agent: SandboxAgent<TContext, AgentOutputType>): number; export declare function releaseSandboxAgents<TContext>(agents: Iterable<SandboxAgent<TContext, AgentOutputType>>): void; export declare function isSandboxAgent<TContext>(agent: Agent<TContext, AgentOutputType>): agent is SandboxAgent<TContext, AgentOutputType>; export declare function getObjectId(value: object): number;