@ljoukov/llm 3.0.11 → 3.0.12
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.cjs +173 -241
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -31
- package/dist/index.d.ts +31 -31
- package/dist/index.js +172 -240
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Buffer } from 'node:buffer';
|
|
1
|
+
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
2
2
|
import { GroundingMetadata, Part } from '@google/genai';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ResponseTextConfig } from 'openai/resources/responses/responses';
|
|
@@ -44,6 +44,20 @@ type LlmContent = {
|
|
|
44
44
|
readonly role: LlmRole;
|
|
45
45
|
readonly parts: readonly LlmContentPart[];
|
|
46
46
|
};
|
|
47
|
+
type LlmToolOutputContentItem = {
|
|
48
|
+
readonly type: "input_text";
|
|
49
|
+
readonly text: string;
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "input_image";
|
|
52
|
+
readonly image_url: string;
|
|
53
|
+
readonly detail?: "auto";
|
|
54
|
+
} | {
|
|
55
|
+
readonly type: "input_file";
|
|
56
|
+
readonly file_data?: string | null;
|
|
57
|
+
readonly file_id?: string | null;
|
|
58
|
+
readonly file_url?: string | null;
|
|
59
|
+
readonly filename?: string | null;
|
|
60
|
+
};
|
|
47
61
|
type LlmImageSize = "1K" | "2K" | "4K";
|
|
48
62
|
type LlmWebSearchMode = "cached" | "live";
|
|
49
63
|
type LlmToolConfig = {
|
|
@@ -102,11 +116,11 @@ type LlmToolCallCompletedEvent = {
|
|
|
102
116
|
type LlmToolCallStreamEvent = LlmToolCallStartedEvent | LlmToolCallCompletedEvent;
|
|
103
117
|
type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlockedEvent | LlmToolCallStreamEvent;
|
|
104
118
|
type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
|
|
105
|
-
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "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
|
|
119
|
+
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "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.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
|
|
106
120
|
type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number];
|
|
107
121
|
declare const LLM_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
108
122
|
type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
|
|
109
|
-
declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "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
|
|
123
|
+
declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "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.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
110
124
|
type LlmModelId = (typeof LLM_MODEL_IDS)[number];
|
|
111
125
|
declare function isLlmTextModelId(value: string): value is LlmTextModelId;
|
|
112
126
|
declare function isLlmImageModelId(value: string): value is LlmImageModelId;
|
|
@@ -216,7 +230,7 @@ declare class LlmJsonCallError extends Error {
|
|
|
216
230
|
}
|
|
217
231
|
type LlmImageData = {
|
|
218
232
|
readonly mimeType?: string;
|
|
219
|
-
readonly data: Buffer;
|
|
233
|
+
readonly data: Buffer$1;
|
|
220
234
|
};
|
|
221
235
|
type LlmGenerateImagesRequest = {
|
|
222
236
|
readonly model: LlmImageModelId;
|
|
@@ -412,6 +426,7 @@ type AgentDirectoryEntry = {
|
|
|
412
426
|
};
|
|
413
427
|
interface AgentFilesystem {
|
|
414
428
|
readTextFile(filePath: string): Promise<string>;
|
|
429
|
+
readBinaryFile?(filePath: string): Promise<Buffer>;
|
|
415
430
|
writeTextFile(filePath: string, content: string): Promise<void>;
|
|
416
431
|
deleteFile(filePath: string): Promise<void>;
|
|
417
432
|
ensureDir(directoryPath: string): Promise<void>;
|
|
@@ -422,6 +437,7 @@ declare class InMemoryAgentFilesystem implements AgentFilesystem {
|
|
|
422
437
|
#private;
|
|
423
438
|
constructor(initialFiles?: Record<string, string>);
|
|
424
439
|
readTextFile(filePath: string): Promise<string>;
|
|
440
|
+
readBinaryFile(filePath: string): Promise<Buffer>;
|
|
425
441
|
writeTextFile(filePath: string, content: string): Promise<void>;
|
|
426
442
|
deleteFile(filePath: string): Promise<void>;
|
|
427
443
|
ensureDir(directoryPath: string): Promise<void>;
|
|
@@ -433,7 +449,7 @@ declare function createNodeAgentFilesystem(): AgentFilesystem;
|
|
|
433
449
|
declare function createInMemoryAgentFilesystem(initialFiles?: Record<string, string>): InMemoryAgentFilesystem;
|
|
434
450
|
|
|
435
451
|
type AgentFilesystemToolProfile = "auto" | "model-agnostic" | "codex" | "gemini";
|
|
436
|
-
type AgentFilesystemToolName = "apply_patch" | "read_file" | "
|
|
452
|
+
type AgentFilesystemToolName = "apply_patch" | "read_file" | "write_file" | "replace" | "list_dir" | "list_directory" | "grep_files" | "view_image" | "rg_search" | "grep_search" | "glob";
|
|
437
453
|
type AgentFilesystemToolAction = "read" | "write" | "delete" | "move" | "list" | "search";
|
|
438
454
|
type AgentFilesystemToolAccessContext = {
|
|
439
455
|
readonly cwd: string;
|
|
@@ -461,18 +477,7 @@ declare const codexReadFileInputSchema: z.ZodObject<{
|
|
|
461
477
|
file_path: z.ZodString;
|
|
462
478
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
463
479
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
464
|
-
|
|
465
|
-
slice: "slice";
|
|
466
|
-
indentation: "indentation";
|
|
467
|
-
}>>>;
|
|
468
|
-
indentation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
469
|
-
anchor_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
470
|
-
max_levels: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
471
|
-
include_siblings: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
472
|
-
include_header: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
473
|
-
max_lines: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
474
|
-
}, z.core.$strip>>>;
|
|
475
|
-
}, z.core.$strip>;
|
|
480
|
+
}, z.core.$strict>;
|
|
476
481
|
declare const codexListDirInputSchema: z.ZodObject<{
|
|
477
482
|
dir_path: z.ZodString;
|
|
478
483
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -485,6 +490,9 @@ declare const codexGrepFilesInputSchema: z.ZodObject<{
|
|
|
485
490
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
491
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
487
492
|
}, z.core.$strip>;
|
|
493
|
+
declare const codexViewImageInputSchema: z.ZodObject<{
|
|
494
|
+
path: z.ZodString;
|
|
495
|
+
}, z.core.$strip>;
|
|
488
496
|
declare const applyPatchInputSchema: z.ZodObject<{
|
|
489
497
|
input: z.ZodString;
|
|
490
498
|
}, z.core.$strip>;
|
|
@@ -492,15 +500,7 @@ declare const geminiReadFileInputSchema: z.ZodObject<{
|
|
|
492
500
|
file_path: z.ZodString;
|
|
493
501
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
494
502
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
495
|
-
}, z.core.$
|
|
496
|
-
declare const geminiReadFilesInputSchema: z.ZodObject<{
|
|
497
|
-
paths: z.ZodArray<z.ZodString>;
|
|
498
|
-
line_offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
|
-
line_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
500
|
-
char_offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
501
|
-
char_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
502
|
-
include_line_numbers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
503
|
-
}, z.core.$strip>;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
504
|
declare const geminiWriteFileInputSchema: z.ZodObject<{
|
|
505
505
|
file_path: z.ZodString;
|
|
506
506
|
content: z.ZodString;
|
|
@@ -549,9 +549,9 @@ declare const geminiGlobInputSchema: z.ZodObject<{
|
|
|
549
549
|
type CodexReadFileToolInput = z.output<typeof codexReadFileInputSchema>;
|
|
550
550
|
type CodexListDirToolInput = z.output<typeof codexListDirInputSchema>;
|
|
551
551
|
type CodexGrepFilesToolInput = z.output<typeof codexGrepFilesInputSchema>;
|
|
552
|
+
type CodexViewImageToolInput = z.output<typeof codexViewImageInputSchema>;
|
|
552
553
|
type CodexApplyPatchToolInput = z.output<typeof applyPatchInputSchema>;
|
|
553
554
|
type GeminiReadFileToolInput = z.output<typeof geminiReadFileInputSchema>;
|
|
554
|
-
type GeminiReadFilesToolInput = z.output<typeof geminiReadFilesInputSchema>;
|
|
555
555
|
type GeminiWriteFileToolInput = z.output<typeof geminiWriteFileInputSchema>;
|
|
556
556
|
type GeminiReplaceToolInput = z.output<typeof geminiReplaceInputSchema>;
|
|
557
557
|
type GeminiListDirectoryToolInput = z.output<typeof geminiListDirectoryInputSchema>;
|
|
@@ -567,8 +567,8 @@ declare function createCodexApplyPatchTool(options?: AgentFilesystemToolsOptions
|
|
|
567
567
|
declare function createCodexReadFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexReadFileInputSchema, string>;
|
|
568
568
|
declare function createListDirTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexListDirInputSchema, string>;
|
|
569
569
|
declare function createGrepFilesTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexGrepFilesInputSchema, string>;
|
|
570
|
+
declare function createViewImageTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexViewImageInputSchema, LlmToolOutputContentItem[]>;
|
|
570
571
|
declare function createGeminiReadFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReadFileInputSchema, string>;
|
|
571
|
-
declare function createReadFilesTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReadFilesInputSchema, string>;
|
|
572
572
|
declare function createWriteFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiWriteFileInputSchema, string>;
|
|
573
573
|
declare function createReplaceTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReplaceInputSchema, string>;
|
|
574
574
|
declare function createListDirectoryTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiListDirectoryInputSchema, string>;
|
|
@@ -843,9 +843,9 @@ declare const CHATGPT_MODEL_IDS: readonly ["chatgpt-gpt-5.3-codex", "chatgpt-gpt
|
|
|
843
843
|
type ChatGptModelId = (typeof CHATGPT_MODEL_IDS)[number];
|
|
844
844
|
declare function isChatGptModelId(value: string): value is ChatGptModelId;
|
|
845
845
|
|
|
846
|
-
declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3
|
|
846
|
+
declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
|
|
847
847
|
declare const GEMINI_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
848
|
-
declare const GEMINI_MODEL_IDS: readonly ["gemini-3
|
|
848
|
+
declare const GEMINI_MODEL_IDS: readonly ["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", "gemini-3.1-flash-image-preview"];
|
|
849
849
|
type GeminiModelId = (typeof GEMINI_MODEL_IDS)[number];
|
|
850
850
|
type GeminiTextModelId = (typeof GEMINI_TEXT_MODEL_IDS)[number];
|
|
851
851
|
type GeminiImageModelId = (typeof GEMINI_IMAGE_MODEL_IDS)[number];
|
|
@@ -867,4 +867,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
|
|
|
867
867
|
declare function isFireworksModelId(value: string): value is FireworksModelId;
|
|
868
868
|
declare function resolveFireworksModelId(model: string): string | undefined;
|
|
869
869
|
|
|
870
|
-
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type AgentTelemetryConfig, type AgentTelemetryEvent, type AgentTelemetrySelection, type AgentTelemetrySink, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type CandidateAssessment, type CandidateEvolutionOptions, type CandidateEvolutionResult, type CandidateEvolutionSnapshot, type CandidateEvolutionStats, type CandidateFeedbackEntry, type CandidateIssue, type CandidateProposal, type CandidateRecord, 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 FeedbackScope, 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
|
|
870
|
+
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type AgentTelemetryConfig, type AgentTelemetryEvent, type AgentTelemetrySelection, type AgentTelemetrySink, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type CandidateAssessment, type CandidateEvolutionOptions, type CandidateEvolutionResult, type CandidateEvolutionSnapshot, type CandidateEvolutionStats, type CandidateFeedbackEntry, type CandidateIssue, type CandidateProposal, type CandidateRecord, type ChatGptAuthProfile, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CodexViewImageToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FeedbackScope, 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 GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiTextModelId, type GeminiWriteFileToolInput, type GenerationSubagent, type GenerationSubagentInput, 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 LlmToolCallCompletedEvent, type LlmToolCallContext, type LlmToolCallResult, type LlmToolCallStartedEvent, type LlmToolCallStreamEvent, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopSteeringAppendResult, type LlmToolLoopSteeringChannel, type LlmToolLoopSteeringInput, type LlmToolLoopSteeringMessage, type LlmToolLoopStep, type LlmToolLoopStream, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, type ModelConcurrencyConfig, type ModelConcurrencyProvider, OPENAI_MODEL_IDS, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, 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, resetModelConcurrencyConfig, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Buffer } from 'node:buffer';
|
|
1
|
+
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
2
2
|
import { GroundingMetadata, Part } from '@google/genai';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ResponseTextConfig } from 'openai/resources/responses/responses';
|
|
@@ -44,6 +44,20 @@ type LlmContent = {
|
|
|
44
44
|
readonly role: LlmRole;
|
|
45
45
|
readonly parts: readonly LlmContentPart[];
|
|
46
46
|
};
|
|
47
|
+
type LlmToolOutputContentItem = {
|
|
48
|
+
readonly type: "input_text";
|
|
49
|
+
readonly text: string;
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "input_image";
|
|
52
|
+
readonly image_url: string;
|
|
53
|
+
readonly detail?: "auto";
|
|
54
|
+
} | {
|
|
55
|
+
readonly type: "input_file";
|
|
56
|
+
readonly file_data?: string | null;
|
|
57
|
+
readonly file_id?: string | null;
|
|
58
|
+
readonly file_url?: string | null;
|
|
59
|
+
readonly filename?: string | null;
|
|
60
|
+
};
|
|
47
61
|
type LlmImageSize = "1K" | "2K" | "4K";
|
|
48
62
|
type LlmWebSearchMode = "cached" | "live";
|
|
49
63
|
type LlmToolConfig = {
|
|
@@ -102,11 +116,11 @@ type LlmToolCallCompletedEvent = {
|
|
|
102
116
|
type LlmToolCallStreamEvent = LlmToolCallStartedEvent | LlmToolCallCompletedEvent;
|
|
103
117
|
type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlockedEvent | LlmToolCallStreamEvent;
|
|
104
118
|
type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
|
|
105
|
-
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "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
|
|
119
|
+
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.3-codex", "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.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
|
|
106
120
|
type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number];
|
|
107
121
|
declare const LLM_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
108
122
|
type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
|
|
109
|
-
declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "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
|
|
123
|
+
declare const LLM_MODEL_IDS: readonly ["gpt-5.3-codex", "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.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
110
124
|
type LlmModelId = (typeof LLM_MODEL_IDS)[number];
|
|
111
125
|
declare function isLlmTextModelId(value: string): value is LlmTextModelId;
|
|
112
126
|
declare function isLlmImageModelId(value: string): value is LlmImageModelId;
|
|
@@ -216,7 +230,7 @@ declare class LlmJsonCallError extends Error {
|
|
|
216
230
|
}
|
|
217
231
|
type LlmImageData = {
|
|
218
232
|
readonly mimeType?: string;
|
|
219
|
-
readonly data: Buffer;
|
|
233
|
+
readonly data: Buffer$1;
|
|
220
234
|
};
|
|
221
235
|
type LlmGenerateImagesRequest = {
|
|
222
236
|
readonly model: LlmImageModelId;
|
|
@@ -412,6 +426,7 @@ type AgentDirectoryEntry = {
|
|
|
412
426
|
};
|
|
413
427
|
interface AgentFilesystem {
|
|
414
428
|
readTextFile(filePath: string): Promise<string>;
|
|
429
|
+
readBinaryFile?(filePath: string): Promise<Buffer>;
|
|
415
430
|
writeTextFile(filePath: string, content: string): Promise<void>;
|
|
416
431
|
deleteFile(filePath: string): Promise<void>;
|
|
417
432
|
ensureDir(directoryPath: string): Promise<void>;
|
|
@@ -422,6 +437,7 @@ declare class InMemoryAgentFilesystem implements AgentFilesystem {
|
|
|
422
437
|
#private;
|
|
423
438
|
constructor(initialFiles?: Record<string, string>);
|
|
424
439
|
readTextFile(filePath: string): Promise<string>;
|
|
440
|
+
readBinaryFile(filePath: string): Promise<Buffer>;
|
|
425
441
|
writeTextFile(filePath: string, content: string): Promise<void>;
|
|
426
442
|
deleteFile(filePath: string): Promise<void>;
|
|
427
443
|
ensureDir(directoryPath: string): Promise<void>;
|
|
@@ -433,7 +449,7 @@ declare function createNodeAgentFilesystem(): AgentFilesystem;
|
|
|
433
449
|
declare function createInMemoryAgentFilesystem(initialFiles?: Record<string, string>): InMemoryAgentFilesystem;
|
|
434
450
|
|
|
435
451
|
type AgentFilesystemToolProfile = "auto" | "model-agnostic" | "codex" | "gemini";
|
|
436
|
-
type AgentFilesystemToolName = "apply_patch" | "read_file" | "
|
|
452
|
+
type AgentFilesystemToolName = "apply_patch" | "read_file" | "write_file" | "replace" | "list_dir" | "list_directory" | "grep_files" | "view_image" | "rg_search" | "grep_search" | "glob";
|
|
437
453
|
type AgentFilesystemToolAction = "read" | "write" | "delete" | "move" | "list" | "search";
|
|
438
454
|
type AgentFilesystemToolAccessContext = {
|
|
439
455
|
readonly cwd: string;
|
|
@@ -461,18 +477,7 @@ declare const codexReadFileInputSchema: z.ZodObject<{
|
|
|
461
477
|
file_path: z.ZodString;
|
|
462
478
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
463
479
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
464
|
-
|
|
465
|
-
slice: "slice";
|
|
466
|
-
indentation: "indentation";
|
|
467
|
-
}>>>;
|
|
468
|
-
indentation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
469
|
-
anchor_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
470
|
-
max_levels: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
471
|
-
include_siblings: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
472
|
-
include_header: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
473
|
-
max_lines: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
474
|
-
}, z.core.$strip>>>;
|
|
475
|
-
}, z.core.$strip>;
|
|
480
|
+
}, z.core.$strict>;
|
|
476
481
|
declare const codexListDirInputSchema: z.ZodObject<{
|
|
477
482
|
dir_path: z.ZodString;
|
|
478
483
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -485,6 +490,9 @@ declare const codexGrepFilesInputSchema: z.ZodObject<{
|
|
|
485
490
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
491
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
487
492
|
}, z.core.$strip>;
|
|
493
|
+
declare const codexViewImageInputSchema: z.ZodObject<{
|
|
494
|
+
path: z.ZodString;
|
|
495
|
+
}, z.core.$strip>;
|
|
488
496
|
declare const applyPatchInputSchema: z.ZodObject<{
|
|
489
497
|
input: z.ZodString;
|
|
490
498
|
}, z.core.$strip>;
|
|
@@ -492,15 +500,7 @@ declare const geminiReadFileInputSchema: z.ZodObject<{
|
|
|
492
500
|
file_path: z.ZodString;
|
|
493
501
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
494
502
|
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
495
|
-
}, z.core.$
|
|
496
|
-
declare const geminiReadFilesInputSchema: z.ZodObject<{
|
|
497
|
-
paths: z.ZodArray<z.ZodString>;
|
|
498
|
-
line_offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
|
-
line_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
500
|
-
char_offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
501
|
-
char_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
502
|
-
include_line_numbers: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
503
|
-
}, z.core.$strip>;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
504
|
declare const geminiWriteFileInputSchema: z.ZodObject<{
|
|
505
505
|
file_path: z.ZodString;
|
|
506
506
|
content: z.ZodString;
|
|
@@ -549,9 +549,9 @@ declare const geminiGlobInputSchema: z.ZodObject<{
|
|
|
549
549
|
type CodexReadFileToolInput = z.output<typeof codexReadFileInputSchema>;
|
|
550
550
|
type CodexListDirToolInput = z.output<typeof codexListDirInputSchema>;
|
|
551
551
|
type CodexGrepFilesToolInput = z.output<typeof codexGrepFilesInputSchema>;
|
|
552
|
+
type CodexViewImageToolInput = z.output<typeof codexViewImageInputSchema>;
|
|
552
553
|
type CodexApplyPatchToolInput = z.output<typeof applyPatchInputSchema>;
|
|
553
554
|
type GeminiReadFileToolInput = z.output<typeof geminiReadFileInputSchema>;
|
|
554
|
-
type GeminiReadFilesToolInput = z.output<typeof geminiReadFilesInputSchema>;
|
|
555
555
|
type GeminiWriteFileToolInput = z.output<typeof geminiWriteFileInputSchema>;
|
|
556
556
|
type GeminiReplaceToolInput = z.output<typeof geminiReplaceInputSchema>;
|
|
557
557
|
type GeminiListDirectoryToolInput = z.output<typeof geminiListDirectoryInputSchema>;
|
|
@@ -567,8 +567,8 @@ declare function createCodexApplyPatchTool(options?: AgentFilesystemToolsOptions
|
|
|
567
567
|
declare function createCodexReadFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexReadFileInputSchema, string>;
|
|
568
568
|
declare function createListDirTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexListDirInputSchema, string>;
|
|
569
569
|
declare function createGrepFilesTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexGrepFilesInputSchema, string>;
|
|
570
|
+
declare function createViewImageTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof codexViewImageInputSchema, LlmToolOutputContentItem[]>;
|
|
570
571
|
declare function createGeminiReadFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReadFileInputSchema, string>;
|
|
571
|
-
declare function createReadFilesTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReadFilesInputSchema, string>;
|
|
572
572
|
declare function createWriteFileTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiWriteFileInputSchema, string>;
|
|
573
573
|
declare function createReplaceTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiReplaceInputSchema, string>;
|
|
574
574
|
declare function createListDirectoryTool(options?: AgentFilesystemToolsOptions): LlmFunctionTool<typeof geminiListDirectoryInputSchema, string>;
|
|
@@ -843,9 +843,9 @@ declare const CHATGPT_MODEL_IDS: readonly ["chatgpt-gpt-5.3-codex", "chatgpt-gpt
|
|
|
843
843
|
type ChatGptModelId = (typeof CHATGPT_MODEL_IDS)[number];
|
|
844
844
|
declare function isChatGptModelId(value: string): value is ChatGptModelId;
|
|
845
845
|
|
|
846
|
-
declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3
|
|
846
|
+
declare const GEMINI_TEXT_MODEL_IDS: readonly ["gemini-3.1-pro-preview", "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-flash-latest", "gemini-flash-lite-latest"];
|
|
847
847
|
declare const GEMINI_IMAGE_MODEL_IDS: readonly ["gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
848
|
-
declare const GEMINI_MODEL_IDS: readonly ["gemini-3
|
|
848
|
+
declare const GEMINI_MODEL_IDS: readonly ["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", "gemini-3.1-flash-image-preview"];
|
|
849
849
|
type GeminiModelId = (typeof GEMINI_MODEL_IDS)[number];
|
|
850
850
|
type GeminiTextModelId = (typeof GEMINI_TEXT_MODEL_IDS)[number];
|
|
851
851
|
type GeminiImageModelId = (typeof GEMINI_IMAGE_MODEL_IDS)[number];
|
|
@@ -867,4 +867,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
|
|
|
867
867
|
declare function isFireworksModelId(value: string): value is FireworksModelId;
|
|
868
868
|
declare function resolveFireworksModelId(model: string): string | undefined;
|
|
869
869
|
|
|
870
|
-
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type AgentTelemetryConfig, type AgentTelemetryEvent, type AgentTelemetrySelection, type AgentTelemetrySink, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type CandidateAssessment, type CandidateEvolutionOptions, type CandidateEvolutionResult, type CandidateEvolutionSnapshot, type CandidateEvolutionStats, type CandidateFeedbackEntry, type CandidateIssue, type CandidateProposal, type CandidateRecord, 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 FeedbackScope, 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
|
|
870
|
+
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type AgentTelemetryConfig, type AgentTelemetryEvent, type AgentTelemetrySelection, type AgentTelemetrySink, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_MODEL_IDS, CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_JSON_TOOL_DESCRIPTION, CODEX_APPLY_PATCH_LARK_GRAMMAR, type CandidateAssessment, type CandidateEvolutionOptions, type CandidateEvolutionResult, type CandidateEvolutionSnapshot, type CandidateEvolutionStats, type CandidateFeedbackEntry, type CandidateIssue, type CandidateProposal, type CandidateRecord, type ChatGptAuthProfile, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CodexViewImageToolInput, type CreateApplyPatchToolOptions, FIREWORKS_DEFAULT_GLM_MODEL, FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL, FIREWORKS_DEFAULT_KIMI_MODEL, FIREWORKS_DEFAULT_MINIMAX_MODEL, FIREWORKS_MODEL_IDS, type FeedbackScope, 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 GeminiReplaceToolInput, type GeminiRgSearchToolInput, type GeminiTextModelId, type GeminiWriteFileToolInput, type GenerationSubagent, type GenerationSubagentInput, 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 LlmToolCallCompletedEvent, type LlmToolCallContext, type LlmToolCallResult, type LlmToolCallStartedEvent, type LlmToolCallStreamEvent, type LlmToolConfig, type LlmToolLoopRequest, type LlmToolLoopResult, type LlmToolLoopSteeringAppendResult, type LlmToolLoopSteeringChannel, type LlmToolLoopSteeringInput, type LlmToolLoopSteeringMessage, type LlmToolLoopStep, type LlmToolLoopStream, type LlmToolSet, type LlmUsageEvent, type LlmUsageTokens, type LlmWebSearchMode, type ModelConcurrencyConfig, type ModelConcurrencyProvider, OPENAI_MODEL_IDS, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, 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, resetModelConcurrencyConfig, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
|