openai
Version:
The official TypeScript library for the OpenAI API
12 lines • 539 B
text/typescript
import type { AgentToolHandler } from "../../agents/agent-session-stream.mjs";
import type { AgentToolError } from "./tool-error.mjs";
/** @internal */
export declare const toolStages: unique symbol;
/**
* Marks handlers that accept stage updates, including across ESM/CJS imports.
* @internal
*/
export type StagedToolHandler = ((arguments_: Parameters<AgentToolHandler>[0], setStage?: (stage: AgentToolError['stage']) => void) => ReturnType<AgentToolHandler>) & {
[toolStages]?: true;
};
//# sourceMappingURL=tool-stages.d.mts.map