@ljoukov/llm 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -76,9 +76,18 @@ type LlmBlockedEvent = {
76
76
  };
77
77
  type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlockedEvent;
78
78
  type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
79
+ declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini", "chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini", "kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b", "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
80
+ type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number];
81
+ declare const LLM_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview"];
82
+ type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
83
+ declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini", "chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini", "kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b", "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview"];
84
+ type LlmModelId = (typeof LLM_MODEL_IDS)[number];
85
+ declare function isLlmTextModelId(value: string): value is LlmTextModelId;
86
+ declare function isLlmImageModelId(value: string): value is LlmImageModelId;
87
+ declare function isLlmModelId(value: string): value is LlmModelId;
79
88
  type LlmTextResult = {
80
89
  readonly provider: LlmProvider;
81
- readonly model: string;
90
+ readonly model: LlmModelId;
82
91
  readonly modelVersion: string;
83
92
  readonly content?: LlmContent;
84
93
  readonly text: string;
@@ -134,7 +143,7 @@ type LlmInput = {
134
143
  readonly instructions?: string;
135
144
  };
136
145
  type LlmBaseRequest = {
137
- readonly model: string;
146
+ readonly model: LlmModelId;
138
147
  readonly tools?: readonly LlmToolConfig[];
139
148
  readonly responseMimeType?: string;
140
149
  readonly responseJsonSchema?: JsonSchema;
@@ -146,7 +155,10 @@ type LlmBaseRequest = {
146
155
  readonly signal?: AbortSignal;
147
156
  };
148
157
  type LlmTextRequest = LlmInput & LlmBaseRequest;
149
- type LlmJsonRequest<T> = LlmInput & LlmBaseRequest & {
158
+ type LlmStructuredRequestBase = Omit<LlmBaseRequest, "model"> & {
159
+ readonly model: LlmTextModelId;
160
+ };
161
+ type LlmJsonRequest<T> = LlmInput & LlmStructuredRequestBase & {
150
162
  readonly schema: z.ZodType<T>;
151
163
  readonly openAiSchemaName?: string;
152
164
  readonly maxAttempts?: number;
@@ -181,7 +193,7 @@ type LlmImageData = {
181
193
  readonly data: Buffer;
182
194
  };
183
195
  type LlmGenerateImagesRequest = {
184
- readonly model: string;
196
+ readonly model: LlmImageModelId;
185
197
  readonly stylePrompt: string;
186
198
  readonly styleImages?: readonly LlmImageData[];
187
199
  readonly imagePrompts: readonly string[];
@@ -245,7 +257,7 @@ type LlmToolLoopResult = {
245
257
  readonly totalCostUsd: number;
246
258
  };
247
259
  type LlmToolLoopRequest = LlmInput & {
248
- readonly model: string;
260
+ readonly model: LlmTextModelId;
249
261
  readonly tools: LlmToolSet;
250
262
  readonly modelTools?: readonly LlmToolConfig[];
251
263
  readonly maxSteps?: number;
@@ -536,21 +548,35 @@ declare function refreshChatGptOauthToken(refreshToken: string, fallback?: {
536
548
  }): Promise<ChatGptAuthProfile>;
537
549
  declare function getChatGptAuthProfile(): Promise<ChatGptAuthProfile>;
538
550
 
539
- declare const GEMINI_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
551
+ declare const OPENAI_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini"];
552
+ type OpenAiModelId = (typeof OPENAI_MODEL_IDS)[number];
553
+ declare function isOpenAiModelId(value: string): value is OpenAiModelId;
554
+ declare const CHATGPT_MODEL_IDS: readonly ["chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini"];
555
+ type ChatGptModelId = (typeof CHATGPT_MODEL_IDS)[number];
556
+ declare function isChatGptModelId(value: string): value is ChatGptModelId;
557
+
558
+ declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
559
+ declare const GEMINI_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview"];
560
+ declare const GEMINI_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview"];
540
561
  type GeminiModelId = (typeof GEMINI_MODEL_IDS)[number];
562
+ type GeminiTextModelId = (typeof GEMINI_TEXT_MODEL_IDS)[number];
563
+ type GeminiImageModelId = (typeof GEMINI_IMAGE_MODEL_IDS)[number];
541
564
  declare function isGeminiModelId(value: string): value is GeminiModelId;
565
+ declare function isGeminiTextModelId(value: string): value is GeminiTextModelId;
566
+ declare function isGeminiImageModelId(value: string): value is GeminiImageModelId;
542
567
  type GeminiConfiguration = {
543
568
  readonly projectId?: string;
544
569
  readonly location?: string;
545
570
  };
546
571
  declare function configureGemini(options?: GeminiConfiguration): void;
547
572
 
548
- declare const FIREWORKS_MODEL_IDS: readonly ["kimi-k2.5", "glm-5", "minimax-m2.1"];
573
+ declare const FIREWORKS_MODEL_IDS: readonly ["kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b"];
549
574
  type FireworksModelId = (typeof FIREWORKS_MODEL_IDS)[number];
550
575
  declare const FIREWORKS_DEFAULT_KIMI_MODEL: FireworksModelId;
551
576
  declare const FIREWORKS_DEFAULT_GLM_MODEL: FireworksModelId;
552
577
  declare const FIREWORKS_DEFAULT_MINIMAX_MODEL: FireworksModelId;
578
+ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
553
579
  declare function isFireworksModelId(value: string): value is FireworksModelId;
554
580
  declare function resolveFireworksModelId(model: string): string | undefined;
555
581
 
556
- export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentPathInfo, type AgentPathKind, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type ChatGptAuthProfile, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FireworksModelId, type GeminiGlobToolInput, type GeminiGrepSearchToolInput, type GeminiListDirectoryToolInput, type GeminiModelId, type GeminiReadFileToolInput, type GeminiReadFilesToolInput, type GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiWriteFileToolInput, InMemoryAgentFilesystem, type JsonSchema, type LlmBaseRequest, type LlmBlockedEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFunctionTool, type LlmImageData, type LlmImageSize, type LlmInput, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmModelEvent, type LlmProvider, type LlmStreamEvent, type LlmTextDeltaEvent, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmToolCallContext, type LlmToolCallResult, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopStep, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReadFilesTool, createReplaceTool, createRgSearchTool, createWriteFileTool, customTool, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isFireworksModelId, isGeminiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
582
+ export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentPathInfo, type AgentPathKind, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type ChatGptAuthProfile, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FireworksModelId, GEMINI_IMAGE_MODEL_IDS, GEMINI_MODEL_IDS, GEMINI_TEXT_MODEL_IDS, type GeminiGlobToolInput, type GeminiGrepSearchToolInput, type GeminiImageModelId, type GeminiListDirectoryToolInput, type GeminiModelId, type GeminiReadFileToolInput, type GeminiReadFilesToolInput, type GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiTextModelId, type GeminiWriteFileToolInput, InMemoryAgentFilesystem, type JsonSchema, LLM_IMAGE_MODEL_IDS, LLM_MODEL_IDS, LLM_TEXT_MODEL_IDS, type LlmBaseRequest, type LlmBlockedEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFunctionTool, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmModelEvent, type LlmModelId, type LlmProvider, type LlmStreamEvent, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmToolCallContext, type LlmToolCallResult, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopStep, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, OPENAI_MODEL_IDS, type OpenAiModelId, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReadFilesTool, createReplaceTool, createRgSearchTool, createWriteFileTool, customTool, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
package/dist/index.d.ts CHANGED
@@ -76,9 +76,18 @@ type LlmBlockedEvent = {
76
76
  };
77
77
  type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlockedEvent;
78
78
  type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
79
+ declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini", "chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini", "kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b", "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
80
+ type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number];
81
+ declare const LLM_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview"];
82
+ type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
83
+ declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini", "chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini", "kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b", "gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview"];
84
+ type LlmModelId = (typeof LLM_MODEL_IDS)[number];
85
+ declare function isLlmTextModelId(value: string): value is LlmTextModelId;
86
+ declare function isLlmImageModelId(value: string): value is LlmImageModelId;
87
+ declare function isLlmModelId(value: string): value is LlmModelId;
79
88
  type LlmTextResult = {
80
89
  readonly provider: LlmProvider;
81
- readonly model: string;
90
+ readonly model: LlmModelId;
82
91
  readonly modelVersion: string;
83
92
  readonly content?: LlmContent;
84
93
  readonly text: string;
@@ -134,7 +143,7 @@ type LlmInput = {
134
143
  readonly instructions?: string;
135
144
  };
136
145
  type LlmBaseRequest = {
137
- readonly model: string;
146
+ readonly model: LlmModelId;
138
147
  readonly tools?: readonly LlmToolConfig[];
139
148
  readonly responseMimeType?: string;
140
149
  readonly responseJsonSchema?: JsonSchema;
@@ -146,7 +155,10 @@ type LlmBaseRequest = {
146
155
  readonly signal?: AbortSignal;
147
156
  };
148
157
  type LlmTextRequest = LlmInput & LlmBaseRequest;
149
- type LlmJsonRequest<T> = LlmInput & LlmBaseRequest & {
158
+ type LlmStructuredRequestBase = Omit<LlmBaseRequest, "model"> & {
159
+ readonly model: LlmTextModelId;
160
+ };
161
+ type LlmJsonRequest<T> = LlmInput & LlmStructuredRequestBase & {
150
162
  readonly schema: z.ZodType<T>;
151
163
  readonly openAiSchemaName?: string;
152
164
  readonly maxAttempts?: number;
@@ -181,7 +193,7 @@ type LlmImageData = {
181
193
  readonly data: Buffer;
182
194
  };
183
195
  type LlmGenerateImagesRequest = {
184
- readonly model: string;
196
+ readonly model: LlmImageModelId;
185
197
  readonly stylePrompt: string;
186
198
  readonly styleImages?: readonly LlmImageData[];
187
199
  readonly imagePrompts: readonly string[];
@@ -245,7 +257,7 @@ type LlmToolLoopResult = {
245
257
  readonly totalCostUsd: number;
246
258
  };
247
259
  type LlmToolLoopRequest = LlmInput & {
248
- readonly model: string;
260
+ readonly model: LlmTextModelId;
249
261
  readonly tools: LlmToolSet;
250
262
  readonly modelTools?: readonly LlmToolConfig[];
251
263
  readonly maxSteps?: number;
@@ -536,21 +548,35 @@ declare function refreshChatGptOauthToken(refreshToken: string, fallback?: {
536
548
  }): Promise<ChatGptAuthProfile>;
537
549
  declare function getChatGptAuthProfile(): Promise<ChatGptAuthProfile>;
538
550
 
539
- declare const GEMINI_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
551
+ declare const OPENAI_MODEL_IDS: readonly ["gpt-5.3-codex", "gpt-5.3-codex-spark", "gpt-5.2", "gpt-5.1-codex-mini"];
552
+ type OpenAiModelId = (typeof OPENAI_MODEL_IDS)[number];
553
+ declare function isOpenAiModelId(value: string): value is OpenAiModelId;
554
+ declare const CHATGPT_MODEL_IDS: readonly ["chatgpt-gpt-5.3-codex", "chatgpt-gpt-5.3-codex-spark", "chatgpt-gpt-5.2", "chatgpt-gpt-5.1-codex-mini"];
555
+ type ChatGptModelId = (typeof CHATGPT_MODEL_IDS)[number];
556
+ declare function isChatGptModelId(value: string): value is ChatGptModelId;
557
+
558
+ declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
559
+ declare const GEMINI_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview"];
560
+ declare const GEMINI_MODEL_IDS: readonly ["gemini-3-pro-preview", "gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview"];
540
561
  type GeminiModelId = (typeof GEMINI_MODEL_IDS)[number];
562
+ type GeminiTextModelId = (typeof GEMINI_TEXT_MODEL_IDS)[number];
563
+ type GeminiImageModelId = (typeof GEMINI_IMAGE_MODEL_IDS)[number];
541
564
  declare function isGeminiModelId(value: string): value is GeminiModelId;
565
+ declare function isGeminiTextModelId(value: string): value is GeminiTextModelId;
566
+ declare function isGeminiImageModelId(value: string): value is GeminiImageModelId;
542
567
  type GeminiConfiguration = {
543
568
  readonly projectId?: string;
544
569
  readonly location?: string;
545
570
  };
546
571
  declare function configureGemini(options?: GeminiConfiguration): void;
547
572
 
548
- declare const FIREWORKS_MODEL_IDS: readonly ["kimi-k2.5", "glm-5", "minimax-m2.1"];
573
+ declare const FIREWORKS_MODEL_IDS: readonly ["kimi-k2.5", "glm-5", "minimax-m2.1", "gpt-oss-120b"];
549
574
  type FireworksModelId = (typeof FIREWORKS_MODEL_IDS)[number];
550
575
  declare const FIREWORKS_DEFAULT_KIMI_MODEL: FireworksModelId;
551
576
  declare const FIREWORKS_DEFAULT_GLM_MODEL: FireworksModelId;
552
577
  declare const FIREWORKS_DEFAULT_MINIMAX_MODEL: FireworksModelId;
578
+ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
553
579
  declare function isFireworksModelId(value: string): value is FireworksModelId;
554
580
  declare function resolveFireworksModelId(model: string): string | undefined;
555
581
 
556
- export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentPathInfo, type AgentPathKind, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type ChatGptAuthProfile, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FireworksModelId, type GeminiGlobToolInput, type GeminiGrepSearchToolInput, type GeminiListDirectoryToolInput, type GeminiModelId, type GeminiReadFileToolInput, type GeminiReadFilesToolInput, type GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiWriteFileToolInput, InMemoryAgentFilesystem, type JsonSchema, type LlmBaseRequest, type LlmBlockedEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFunctionTool, type LlmImageData, type LlmImageSize, type LlmInput, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmModelEvent, type LlmProvider, type LlmStreamEvent, type LlmTextDeltaEvent, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmToolCallContext, type LlmToolCallResult, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopStep, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReadFilesTool, createReplaceTool, createRgSearchTool, createWriteFileTool, customTool, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isFireworksModelId, isGeminiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
582
+ export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentPathInfo, type AgentPathKind, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type ChatGptAuthProfile, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FireworksModelId, GEMINI_IMAGE_MODEL_IDS, GEMINI_MODEL_IDS, GEMINI_TEXT_MODEL_IDS, type GeminiGlobToolInput, type GeminiGrepSearchToolInput, type GeminiImageModelId, type GeminiListDirectoryToolInput, type GeminiModelId, type GeminiReadFileToolInput, type GeminiReadFilesToolInput, type GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiTextModelId, type GeminiWriteFileToolInput, InMemoryAgentFilesystem, type JsonSchema, LLM_IMAGE_MODEL_IDS, LLM_MODEL_IDS, LLM_TEXT_MODEL_IDS, type LlmBaseRequest, type LlmBlockedEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFunctionTool, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmModelEvent, type LlmModelId, type LlmProvider, type LlmStreamEvent, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmToolCallContext, type LlmToolCallResult, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopStep, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, OPENAI_MODEL_IDS, type OpenAiModelId, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReadFilesTool, createReplaceTool, createRgSearchTool, createWriteFileTool, customTool, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };