UNPKG

@openai/agents-core

Version:

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

6 lines (5 loc) • 569 B
export type ToolOutputCustomData = Record<string, unknown>; export type MaybePromise<T> = T | Promise<T>; export type ToolOutputCustomDataExtractor<TContext> = (context: TContext) => MaybePromise<ToolOutputCustomData | null | undefined>; export declare function normalizeToolOutputCustomData(value: ToolOutputCustomData | null | undefined): ToolOutputCustomData | undefined; export declare function maybeExtractToolOutputCustomData<TContext>(extractor: ToolOutputCustomDataExtractor<TContext> | undefined, context: TContext): Promise<ToolOutputCustomData | undefined>;