UNPKG

@openai/agents-core

Version:

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

17 lines (16 loc) • 872 B
import type { Agent } from '../agent'; import { RunContext } from '../runContext'; import type { ToolErrorFormatter, ToolErrorFormatterArgs } from '../run'; export declare const TOOL_APPROVAL_REJECTION_MESSAGE = "Tool execution was not approved."; type ApprovalRejectedToolType = ToolErrorFormatterArgs['toolType']; type ApprovalRejectionMessageOptions<TContext = unknown> = { runContext: RunContext<TContext>; toolType: ApprovalRejectedToolType; toolName: string; approvalToolNames?: readonly string[]; approvalAgent?: Agent<any, any>; callId: string; toolErrorFormatter?: ToolErrorFormatter<TContext>; }; export declare function resolveApprovalRejectionMessage<TContext>({ runContext, toolType, toolName, approvalToolNames, approvalAgent, callId, toolErrorFormatter, }: ApprovalRejectionMessageOptions<TContext>): Promise<string>; export {};