@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
24 lines (23 loc) • 1.48 kB
TypeScript
import type { AgentInputItem } from '../types';
declare const SIMPLE_TOOL_RESULT_TYPE_BY_CALL_TYPE: {
readonly program: "program_output";
readonly function_call: "function_call_result";
readonly computer_call: "computer_call_result";
readonly shell_call: "shell_call_output";
readonly apply_patch_call: "apply_patch_call_output";
};
type SimpleToolResultType = (typeof SIMPLE_TOOL_RESULT_TYPE_BY_CALL_TYPE)[keyof typeof SIMPLE_TOOL_RESULT_TYPE_BY_CALL_TYPE];
declare const TOOL_SEARCH_OUTPUT = "tool_search_output";
declare const HOSTED_MCP_APPROVAL_RESPONSE = "mcp_approval_response";
type ToolResultType = SimpleToolResultType | typeof TOOL_SEARCH_OUTPUT | typeof HOSTED_MCP_APPROVAL_RESPONSE;
export type ToolResultCorrelation = Readonly<{
resultType: ToolResultType;
id: string;
}>;
export declare function getSimpleToolResultTypeForCall(type: unknown): SimpleToolResultType | undefined;
export declare function isSimpleToolResultType(type: unknown): type is SimpleToolResultType;
export declare function getToolResultCorrelationForCall(item: AgentInputItem): ToolResultCorrelation | undefined;
export declare function getToolResultCorrelationForResult(item: AgentInputItem): ToolResultCorrelation | undefined;
export declare function getToolResultCorrelationKey(correlation: ToolResultCorrelation): string;
export declare function getUnresolvedToolResultCorrelationsForResponse(items: readonly AgentInputItem[]): ToolResultCorrelation[];
export {};