export type GraphAIArray = { array: Array; }; export type GraphAIItem = { item: Item; }; export type GraphAIItems = { items: Array; }; export type GraphAIArrayWithItem = GraphAIArray & GraphAIItem; export type GraphAIArrayWithItems = GraphAIArray & GraphAIItems; export type GraphAIArrayWithOptionalItem = GraphAIArray & Partial>; export type GraphAIArrayWithOptionalItems = GraphAIArray & Partial>; export type GraphAIArrayWithOptionalItemAndItems = GraphAIArray & Partial & GraphAIItems>; export type GraphAIArrayWithItemAndItems = GraphAIArray & GraphAIItem & GraphAIItems; export type GraphAIWithOptionalArrayAndItem = Partial & GraphAIItem>; export type GraphAIText = { text: string; }; export type GraphAINullableText = { text: string | null; }; export type GraphAIData = { data: Data; }; export type GraphAIResult = { result: Result; }; export type GraphAIWithOptionalTextAndData = Partial>; export type GraphAIThrowError = { throwError: boolean; }; export type GraphAISupressError = { supressError: boolean; }; export type GraphAIDebug = { debug: boolean; }; export type GraphAIMessageRole = "user" | "system" | "assistant" | "tool" | "developer"; export type GraphAIMessagePayload = { role: GraphAIMessageRole; content: Content | null; }; export type GraphAIMessage = { message: GraphAIMessagePayload | null; }; export type GraphAIMessages = { messages: Array>; }; export type GraphAIToolPayload = { id: string; name: string; arguments?: unknown; }; export type GraphAITool = { tool: GraphAIToolPayload; }; export type GraphAIToolCalls = { tool_calls: Array; }; export type GraphAIFileName = { file: string; }; export type GraphAIDirName = { dir: string; }; export type GraphAIDirNames = { dirs: string[]; }; export type GraphAIBaseDirName = { baseDir: string; }; export type GraphAIPathName = { path: string; }; export type GraphAIBuffer = { buffer: BufferType; }; export type GraphAIType = { type: string; }; export type GraphAIInputType = { inputType: string; }; export type GraphAIOutputType = { outputType: string; }; export type GraphAIDataType = { dataType: string; }; export type GraphAIOnError = { onError: { message: string; status?: number; error: ErrorData; }; }; export type GraphAIFlatResponse = { flatResponse: boolean; };