@ljoukov/llm 7.0.13 → 7.0.15
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/README.md +73 -3
- package/dist/index.cjs +346 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -4
- package/dist/index.d.ts +76 -4
- package/dist/index.js +339 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -44,6 +44,9 @@ declare function isOpenAiModelId(value: string): value is OpenAiModelId;
|
|
|
44
44
|
declare const OPENAI_IMAGE_MODEL_IDS: readonly ["gpt-image-2"];
|
|
45
45
|
type OpenAiImageModelId = (typeof OPENAI_IMAGE_MODEL_IDS)[number];
|
|
46
46
|
declare function isOpenAiImageModelId(value: string): value is OpenAiImageModelId;
|
|
47
|
+
declare const CHATGPT_IMAGE_MODEL_IDS: readonly ["chatgpt-gpt-image-2"];
|
|
48
|
+
type ChatGptImageModelId = (typeof CHATGPT_IMAGE_MODEL_IDS)[number];
|
|
49
|
+
declare function isChatGptImageModelId(value: string): value is ChatGptImageModelId;
|
|
47
50
|
declare const OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS: readonly ["1024x1024", "1536x1024", "1024x1536", "2048x2048", "2048x1152", "3840x2160", "2160x3840"];
|
|
48
51
|
type OpenAiGptImage2PopularResolution = (typeof OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS)[number];
|
|
49
52
|
declare const OPENAI_GPT_IMAGE_2_AUTO_RESOLUTION: "auto";
|
|
@@ -85,6 +88,7 @@ type ExperimentalChatGptModelId = `${typeof EXPERIMENTAL_CHATGPT_MODEL_PREFIX}${
|
|
|
85
88
|
type ChatGptModelId = ListedChatGptModelId | ExperimentalChatGptModelId;
|
|
86
89
|
declare function isExperimentalChatGptModelId(value: string): value is ExperimentalChatGptModelId;
|
|
87
90
|
declare function isChatGptModelId(value: string): value is ChatGptModelId;
|
|
91
|
+
declare function resolveChatGptImageProviderModel(_model: ChatGptImageModelId): string;
|
|
88
92
|
|
|
89
93
|
type LlmTelemetryOperation = "generateText" | "streamText" | "generateJson" | "streamJson" | "generateImages";
|
|
90
94
|
type LlmTelemetryBaseEvent = {
|
|
@@ -304,9 +308,9 @@ type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlo
|
|
|
304
308
|
type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
|
|
305
309
|
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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"];
|
|
306
310
|
type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number] | ExperimentalChatGptModelId;
|
|
307
|
-
declare const LLM_IMAGE_MODEL_IDS: readonly ["gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
311
|
+
declare const LLM_IMAGE_MODEL_IDS: readonly ["gpt-image-2", "chatgpt-gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
308
312
|
type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
|
|
309
|
-
declare const LLM_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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", "gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
313
|
+
declare const LLM_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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", "gpt-image-2", "chatgpt-gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
310
314
|
type LlmModelId = LlmTextModelId | LlmImageModelId;
|
|
311
315
|
declare function isLlmTextModelId(value: string): value is LlmTextModelId;
|
|
312
316
|
declare function isLlmImageModelId(value: string): value is LlmImageModelId;
|
|
@@ -322,6 +326,17 @@ type LlmTextResult = {
|
|
|
322
326
|
readonly usage?: LlmUsageTokens;
|
|
323
327
|
readonly costUsd: number;
|
|
324
328
|
readonly grounding?: GroundingMetadata;
|
|
329
|
+
readonly openAi?: LlmOpenAiResponseMetadata;
|
|
330
|
+
};
|
|
331
|
+
type LlmOpenAiResponseContainerReference = {
|
|
332
|
+
readonly containerId: string;
|
|
333
|
+
readonly toolType: "shell" | "code_interpreter";
|
|
334
|
+
readonly itemId?: string;
|
|
335
|
+
readonly callId?: string;
|
|
336
|
+
};
|
|
337
|
+
type LlmOpenAiResponseMetadata = {
|
|
338
|
+
readonly responseId?: string;
|
|
339
|
+
readonly containers: readonly LlmOpenAiResponseContainerReference[];
|
|
325
340
|
};
|
|
326
341
|
type LlmTextStream = {
|
|
327
342
|
readonly events: AsyncIterable<LlmStreamEvent>;
|
|
@@ -445,6 +460,10 @@ type LlmOpenAiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
|
445
460
|
readonly partialImages?: LlmOpenAiImagePartialImageCount;
|
|
446
461
|
readonly numImages?: LlmOpenAiImageNumImages;
|
|
447
462
|
};
|
|
463
|
+
type LlmChatGptGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
464
|
+
readonly model: ChatGptImageModelId;
|
|
465
|
+
readonly numImages?: LlmOpenAiImageNumImages;
|
|
466
|
+
};
|
|
448
467
|
type LlmGeminiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
449
468
|
readonly model: GeminiImageModelId;
|
|
450
469
|
readonly imageGradingPrompt: string;
|
|
@@ -452,7 +471,7 @@ type LlmGeminiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
|
452
471
|
readonly imageAspectRatio?: string;
|
|
453
472
|
readonly imageSize?: LlmImageSize;
|
|
454
473
|
};
|
|
455
|
-
type LlmGenerateImagesRequest = LlmOpenAiGenerateImagesRequest | LlmGeminiGenerateImagesRequest;
|
|
474
|
+
type LlmGenerateImagesRequest = LlmOpenAiGenerateImagesRequest | LlmChatGptGenerateImagesRequest | LlmGeminiGenerateImagesRequest;
|
|
456
475
|
type LlmFunctionTool<Schema extends z.ZodType, Output> = {
|
|
457
476
|
readonly type?: "function";
|
|
458
477
|
readonly description?: string;
|
|
@@ -655,6 +674,59 @@ declare const files: {
|
|
|
655
674
|
readonly content: typeof filesContent;
|
|
656
675
|
};
|
|
657
676
|
|
|
677
|
+
type LlmOpenAiContainerNetworkPolicy = {
|
|
678
|
+
readonly type: "disabled";
|
|
679
|
+
} | {
|
|
680
|
+
readonly type: "allowlist";
|
|
681
|
+
readonly allowedDomains: readonly string[];
|
|
682
|
+
readonly domainSecrets?: readonly {
|
|
683
|
+
readonly domain: string;
|
|
684
|
+
readonly name: string;
|
|
685
|
+
readonly value: string;
|
|
686
|
+
}[];
|
|
687
|
+
};
|
|
688
|
+
type LlmOpenAiContainerCreateOptions = {
|
|
689
|
+
readonly name: string;
|
|
690
|
+
readonly fileIds?: readonly string[];
|
|
691
|
+
readonly memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
692
|
+
readonly networkPolicy?: LlmOpenAiContainerNetworkPolicy;
|
|
693
|
+
readonly expiresAfterMinutes?: number;
|
|
694
|
+
};
|
|
695
|
+
type LlmOpenAiContainer = {
|
|
696
|
+
readonly id: string;
|
|
697
|
+
readonly name: string;
|
|
698
|
+
readonly status: string;
|
|
699
|
+
readonly createdAt?: number;
|
|
700
|
+
readonly lastActiveAt?: number;
|
|
701
|
+
readonly memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
702
|
+
};
|
|
703
|
+
type LlmOpenAiContainerFile = {
|
|
704
|
+
readonly id: string;
|
|
705
|
+
readonly containerId: string;
|
|
706
|
+
readonly path: string;
|
|
707
|
+
readonly bytes?: number | null;
|
|
708
|
+
readonly createdAt?: number;
|
|
709
|
+
readonly source?: string;
|
|
710
|
+
};
|
|
711
|
+
type LlmOpenAiContainerFileUpload = {
|
|
712
|
+
readonly containerId: string;
|
|
713
|
+
readonly filename: string;
|
|
714
|
+
readonly data: ArrayBuffer | ArrayBufferView | Blob | Response | AsyncIterable<ArrayBufferView>;
|
|
715
|
+
readonly mimeType?: string;
|
|
716
|
+
};
|
|
717
|
+
declare function createOpenAiContainer(options: LlmOpenAiContainerCreateOptions): Promise<LlmOpenAiContainer>;
|
|
718
|
+
declare function deleteOpenAiContainer(containerId: string): Promise<void>;
|
|
719
|
+
declare function listOpenAiContainerFiles(containerId: string): Promise<readonly LlmOpenAiContainerFile[]>;
|
|
720
|
+
declare function uploadOpenAiContainerFile(upload: LlmOpenAiContainerFileUpload): Promise<LlmOpenAiContainerFile>;
|
|
721
|
+
declare function downloadOpenAiContainerFile(params: {
|
|
722
|
+
readonly containerId: string;
|
|
723
|
+
readonly fileId: string;
|
|
724
|
+
}): Promise<Uint8Array>;
|
|
725
|
+
declare function downloadOpenAiContainerFileText(params: {
|
|
726
|
+
readonly containerId: string;
|
|
727
|
+
readonly fileId: string;
|
|
728
|
+
}): Promise<string>;
|
|
729
|
+
|
|
658
730
|
/**
|
|
659
731
|
* Loads `.env.local` from `process.cwd()` once.
|
|
660
732
|
*
|
|
@@ -1100,4 +1172,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
|
|
|
1100
1172
|
declare function isFireworksModelId(value: string): value is FireworksModelId;
|
|
1101
1173
|
declare function resolveFireworksModelId(model: string): string | undefined;
|
|
1102
1174
|
|
|
1103
|
-
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLogLineSink, type AgentLoggingConfig, type AgentLoggingSelection, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, 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, DEFAULT_FILE_TTL_SECONDS, DEFAULT_SIGNED_URL_TTL_SECONDS, EXPERIMENTAL_CHATGPT_MODEL_PREFIX, type ExperimentalChatGptModelId, 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 ListedChatGptModelId, type LlmBaseRequest, type LlmBlockedEvent, type LlmCallCompletedTelemetryEvent, type LlmCallStartedTelemetryEvent, type LlmCallStreamTelemetryEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFileCreateParams, type LlmFileDeleted, type LlmFileUploadBackend, type LlmFileUploadEvent, type LlmFileUploadMetrics, type LlmFileUploadMode, type LlmFileUploadSource, type LlmFunctionTool, type LlmGeminiGenerateImagesRequest, type LlmGenerateImagesRequest, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputFilePart, type LlmInputImagePart, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmMediaResolution, type LlmModelEvent, type LlmModelId, type LlmOpenAiGenerateImagesRequest, type LlmOpenAiImageBackground, type LlmOpenAiImageModeration, type LlmOpenAiImageNumImages, type LlmOpenAiImageOutputFormat, type LlmOpenAiImagePartialImageCount, type LlmOpenAiImageQuality, type LlmOpenAiImageResolution, type LlmOpenAiShellEnvironment, type LlmOpenAiShellNetworkPolicy, type LlmProvider, type LlmStoredFile, type LlmStreamEvent, type LlmTelemetryOperation, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmThinkingLevel, 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_GPT_IMAGE_2_AUTO_RESOLUTION, OPENAI_GPT_IMAGE_2_BACKGROUNDS, OPENAI_GPT_IMAGE_2_MODERATION_LEVELS, OPENAI_GPT_IMAGE_2_NUM_IMAGES, OPENAI_GPT_IMAGE_2_OUTPUT_FORMATS, OPENAI_GPT_IMAGE_2_PARTIAL_IMAGE_COUNTS, OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS, OPENAI_GPT_IMAGE_2_QUALITY_LEVELS, OPENAI_GPT_IMAGE_2_RESOLUTIONS, OPENAI_GPT_IMAGE_2_SIZE_CONSTRAINTS, OPENAI_IMAGE_MODEL_IDS, OPENAI_MODEL_IDS, type OpenAiGptImage2Background, type OpenAiGptImage2CustomResolution, type OpenAiGptImage2ListedResolution, type OpenAiGptImage2Moderation, type OpenAiGptImage2NumImages, type OpenAiGptImage2OutputFormat, type OpenAiGptImage2PartialImageCount, type OpenAiGptImage2PopularResolution, type OpenAiGptImage2Quality, type OpenAiGptImage2Resolution, type OpenAiGptImage2ResolutionValidationResult, type OpenAiImageModelId, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, type TelemetryConfig, type TelemetryEvent, type TelemetrySelection, type TelemetrySink, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, configureTelemetry, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, createWriteFileTool, customTool, emptyFileUploadMetrics, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, files, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptModelId, isExperimentalChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiImageModelId, isOpenAiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resetModelConcurrencyConfig, resetTelemetry, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool, validateOpenAiGptImage2Resolution };
|
|
1175
|
+
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLogLineSink, type AgentLoggingConfig, type AgentLoggingSelection, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_IMAGE_MODEL_IDS, 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 ChatGptImageModelId, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CodexViewImageToolInput, type CreateApplyPatchToolOptions, DEFAULT_FILE_TTL_SECONDS, DEFAULT_SIGNED_URL_TTL_SECONDS, EXPERIMENTAL_CHATGPT_MODEL_PREFIX, type ExperimentalChatGptModelId, 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 ListedChatGptModelId, type LlmBaseRequest, type LlmBlockedEvent, type LlmCallCompletedTelemetryEvent, type LlmCallStartedTelemetryEvent, type LlmCallStreamTelemetryEvent, type LlmChatGptGenerateImagesRequest, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFileCreateParams, type LlmFileDeleted, type LlmFileUploadBackend, type LlmFileUploadEvent, type LlmFileUploadMetrics, type LlmFileUploadMode, type LlmFileUploadSource, type LlmFunctionTool, type LlmGeminiGenerateImagesRequest, type LlmGenerateImagesRequest, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputFilePart, type LlmInputImagePart, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmMediaResolution, type LlmModelEvent, type LlmModelId, type LlmOpenAiContainer, type LlmOpenAiContainerCreateOptions, type LlmOpenAiContainerFile, type LlmOpenAiContainerFileUpload, type LlmOpenAiContainerNetworkPolicy, type LlmOpenAiGenerateImagesRequest, type LlmOpenAiImageBackground, type LlmOpenAiImageModeration, type LlmOpenAiImageNumImages, type LlmOpenAiImageOutputFormat, type LlmOpenAiImagePartialImageCount, type LlmOpenAiImageQuality, type LlmOpenAiImageResolution, type LlmOpenAiResponseContainerReference, type LlmOpenAiResponseMetadata, type LlmOpenAiShellEnvironment, type LlmOpenAiShellNetworkPolicy, type LlmProvider, type LlmStoredFile, type LlmStreamEvent, type LlmTelemetryOperation, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmThinkingLevel, 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_GPT_IMAGE_2_AUTO_RESOLUTION, OPENAI_GPT_IMAGE_2_BACKGROUNDS, OPENAI_GPT_IMAGE_2_MODERATION_LEVELS, OPENAI_GPT_IMAGE_2_NUM_IMAGES, OPENAI_GPT_IMAGE_2_OUTPUT_FORMATS, OPENAI_GPT_IMAGE_2_PARTIAL_IMAGE_COUNTS, OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS, OPENAI_GPT_IMAGE_2_QUALITY_LEVELS, OPENAI_GPT_IMAGE_2_RESOLUTIONS, OPENAI_GPT_IMAGE_2_SIZE_CONSTRAINTS, OPENAI_IMAGE_MODEL_IDS, OPENAI_MODEL_IDS, type OpenAiGptImage2Background, type OpenAiGptImage2CustomResolution, type OpenAiGptImage2ListedResolution, type OpenAiGptImage2Moderation, type OpenAiGptImage2NumImages, type OpenAiGptImage2OutputFormat, type OpenAiGptImage2PartialImageCount, type OpenAiGptImage2PopularResolution, type OpenAiGptImage2Quality, type OpenAiGptImage2Resolution, type OpenAiGptImage2ResolutionValidationResult, type OpenAiImageModelId, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, type TelemetryConfig, type TelemetryEvent, type TelemetrySelection, type TelemetrySink, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, configureTelemetry, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createOpenAiContainer, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, createWriteFileTool, customTool, deleteOpenAiContainer, downloadOpenAiContainerFile, downloadOpenAiContainerFileText, emptyFileUploadMetrics, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, files, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptImageModelId, isChatGptModelId, isExperimentalChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiImageModelId, isOpenAiModelId, listOpenAiContainerFiles, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resetModelConcurrencyConfig, resetTelemetry, resolveChatGptImageProviderModel, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool, uploadOpenAiContainerFile, validateOpenAiGptImage2Resolution };
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ declare function isOpenAiModelId(value: string): value is OpenAiModelId;
|
|
|
44
44
|
declare const OPENAI_IMAGE_MODEL_IDS: readonly ["gpt-image-2"];
|
|
45
45
|
type OpenAiImageModelId = (typeof OPENAI_IMAGE_MODEL_IDS)[number];
|
|
46
46
|
declare function isOpenAiImageModelId(value: string): value is OpenAiImageModelId;
|
|
47
|
+
declare const CHATGPT_IMAGE_MODEL_IDS: readonly ["chatgpt-gpt-image-2"];
|
|
48
|
+
type ChatGptImageModelId = (typeof CHATGPT_IMAGE_MODEL_IDS)[number];
|
|
49
|
+
declare function isChatGptImageModelId(value: string): value is ChatGptImageModelId;
|
|
47
50
|
declare const OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS: readonly ["1024x1024", "1536x1024", "1024x1536", "2048x2048", "2048x1152", "3840x2160", "2160x3840"];
|
|
48
51
|
type OpenAiGptImage2PopularResolution = (typeof OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS)[number];
|
|
49
52
|
declare const OPENAI_GPT_IMAGE_2_AUTO_RESOLUTION: "auto";
|
|
@@ -85,6 +88,7 @@ type ExperimentalChatGptModelId = `${typeof EXPERIMENTAL_CHATGPT_MODEL_PREFIX}${
|
|
|
85
88
|
type ChatGptModelId = ListedChatGptModelId | ExperimentalChatGptModelId;
|
|
86
89
|
declare function isExperimentalChatGptModelId(value: string): value is ExperimentalChatGptModelId;
|
|
87
90
|
declare function isChatGptModelId(value: string): value is ChatGptModelId;
|
|
91
|
+
declare function resolveChatGptImageProviderModel(_model: ChatGptImageModelId): string;
|
|
88
92
|
|
|
89
93
|
type LlmTelemetryOperation = "generateText" | "streamText" | "generateJson" | "streamJson" | "generateImages";
|
|
90
94
|
type LlmTelemetryBaseEvent = {
|
|
@@ -304,9 +308,9 @@ type LlmStreamEvent = LlmTextDeltaEvent | LlmUsageEvent | LlmModelEvent | LlmBlo
|
|
|
304
308
|
type LlmProvider = "openai" | "chatgpt" | "gemini" | "fireworks";
|
|
305
309
|
declare const LLM_TEXT_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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"];
|
|
306
310
|
type LlmTextModelId = (typeof LLM_TEXT_MODEL_IDS)[number] | ExperimentalChatGptModelId;
|
|
307
|
-
declare const LLM_IMAGE_MODEL_IDS: readonly ["gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
311
|
+
declare const LLM_IMAGE_MODEL_IDS: readonly ["gpt-image-2", "chatgpt-gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
308
312
|
type LlmImageModelId = (typeof LLM_IMAGE_MODEL_IDS)[number];
|
|
309
|
-
declare const LLM_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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", "gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
313
|
+
declare const LLM_MODEL_IDS: readonly ["gpt-5.5", "gpt-5.5-fast", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "chatgpt-gpt-5.5", "chatgpt-gpt-5.5-fast", "chatgpt-gpt-5.4", "chatgpt-gpt-5.4-fast", "chatgpt-gpt-5.4-mini", "chatgpt-gpt-5.3-codex-spark", "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", "gpt-image-2", "chatgpt-gpt-image-2", "gemini-3-pro-image-preview", "gemini-3.1-flash-image-preview"];
|
|
310
314
|
type LlmModelId = LlmTextModelId | LlmImageModelId;
|
|
311
315
|
declare function isLlmTextModelId(value: string): value is LlmTextModelId;
|
|
312
316
|
declare function isLlmImageModelId(value: string): value is LlmImageModelId;
|
|
@@ -322,6 +326,17 @@ type LlmTextResult = {
|
|
|
322
326
|
readonly usage?: LlmUsageTokens;
|
|
323
327
|
readonly costUsd: number;
|
|
324
328
|
readonly grounding?: GroundingMetadata;
|
|
329
|
+
readonly openAi?: LlmOpenAiResponseMetadata;
|
|
330
|
+
};
|
|
331
|
+
type LlmOpenAiResponseContainerReference = {
|
|
332
|
+
readonly containerId: string;
|
|
333
|
+
readonly toolType: "shell" | "code_interpreter";
|
|
334
|
+
readonly itemId?: string;
|
|
335
|
+
readonly callId?: string;
|
|
336
|
+
};
|
|
337
|
+
type LlmOpenAiResponseMetadata = {
|
|
338
|
+
readonly responseId?: string;
|
|
339
|
+
readonly containers: readonly LlmOpenAiResponseContainerReference[];
|
|
325
340
|
};
|
|
326
341
|
type LlmTextStream = {
|
|
327
342
|
readonly events: AsyncIterable<LlmStreamEvent>;
|
|
@@ -445,6 +460,10 @@ type LlmOpenAiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
|
445
460
|
readonly partialImages?: LlmOpenAiImagePartialImageCount;
|
|
446
461
|
readonly numImages?: LlmOpenAiImageNumImages;
|
|
447
462
|
};
|
|
463
|
+
type LlmChatGptGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
464
|
+
readonly model: ChatGptImageModelId;
|
|
465
|
+
readonly numImages?: LlmOpenAiImageNumImages;
|
|
466
|
+
};
|
|
448
467
|
type LlmGeminiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
449
468
|
readonly model: GeminiImageModelId;
|
|
450
469
|
readonly imageGradingPrompt: string;
|
|
@@ -452,7 +471,7 @@ type LlmGeminiGenerateImagesRequest = LlmGenerateImagesRequestBase & {
|
|
|
452
471
|
readonly imageAspectRatio?: string;
|
|
453
472
|
readonly imageSize?: LlmImageSize;
|
|
454
473
|
};
|
|
455
|
-
type LlmGenerateImagesRequest = LlmOpenAiGenerateImagesRequest | LlmGeminiGenerateImagesRequest;
|
|
474
|
+
type LlmGenerateImagesRequest = LlmOpenAiGenerateImagesRequest | LlmChatGptGenerateImagesRequest | LlmGeminiGenerateImagesRequest;
|
|
456
475
|
type LlmFunctionTool<Schema extends z.ZodType, Output> = {
|
|
457
476
|
readonly type?: "function";
|
|
458
477
|
readonly description?: string;
|
|
@@ -655,6 +674,59 @@ declare const files: {
|
|
|
655
674
|
readonly content: typeof filesContent;
|
|
656
675
|
};
|
|
657
676
|
|
|
677
|
+
type LlmOpenAiContainerNetworkPolicy = {
|
|
678
|
+
readonly type: "disabled";
|
|
679
|
+
} | {
|
|
680
|
+
readonly type: "allowlist";
|
|
681
|
+
readonly allowedDomains: readonly string[];
|
|
682
|
+
readonly domainSecrets?: readonly {
|
|
683
|
+
readonly domain: string;
|
|
684
|
+
readonly name: string;
|
|
685
|
+
readonly value: string;
|
|
686
|
+
}[];
|
|
687
|
+
};
|
|
688
|
+
type LlmOpenAiContainerCreateOptions = {
|
|
689
|
+
readonly name: string;
|
|
690
|
+
readonly fileIds?: readonly string[];
|
|
691
|
+
readonly memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
692
|
+
readonly networkPolicy?: LlmOpenAiContainerNetworkPolicy;
|
|
693
|
+
readonly expiresAfterMinutes?: number;
|
|
694
|
+
};
|
|
695
|
+
type LlmOpenAiContainer = {
|
|
696
|
+
readonly id: string;
|
|
697
|
+
readonly name: string;
|
|
698
|
+
readonly status: string;
|
|
699
|
+
readonly createdAt?: number;
|
|
700
|
+
readonly lastActiveAt?: number;
|
|
701
|
+
readonly memoryLimit?: "1g" | "4g" | "16g" | "64g";
|
|
702
|
+
};
|
|
703
|
+
type LlmOpenAiContainerFile = {
|
|
704
|
+
readonly id: string;
|
|
705
|
+
readonly containerId: string;
|
|
706
|
+
readonly path: string;
|
|
707
|
+
readonly bytes?: number | null;
|
|
708
|
+
readonly createdAt?: number;
|
|
709
|
+
readonly source?: string;
|
|
710
|
+
};
|
|
711
|
+
type LlmOpenAiContainerFileUpload = {
|
|
712
|
+
readonly containerId: string;
|
|
713
|
+
readonly filename: string;
|
|
714
|
+
readonly data: ArrayBuffer | ArrayBufferView | Blob | Response | AsyncIterable<ArrayBufferView>;
|
|
715
|
+
readonly mimeType?: string;
|
|
716
|
+
};
|
|
717
|
+
declare function createOpenAiContainer(options: LlmOpenAiContainerCreateOptions): Promise<LlmOpenAiContainer>;
|
|
718
|
+
declare function deleteOpenAiContainer(containerId: string): Promise<void>;
|
|
719
|
+
declare function listOpenAiContainerFiles(containerId: string): Promise<readonly LlmOpenAiContainerFile[]>;
|
|
720
|
+
declare function uploadOpenAiContainerFile(upload: LlmOpenAiContainerFileUpload): Promise<LlmOpenAiContainerFile>;
|
|
721
|
+
declare function downloadOpenAiContainerFile(params: {
|
|
722
|
+
readonly containerId: string;
|
|
723
|
+
readonly fileId: string;
|
|
724
|
+
}): Promise<Uint8Array>;
|
|
725
|
+
declare function downloadOpenAiContainerFileText(params: {
|
|
726
|
+
readonly containerId: string;
|
|
727
|
+
readonly fileId: string;
|
|
728
|
+
}): Promise<string>;
|
|
729
|
+
|
|
658
730
|
/**
|
|
659
731
|
* Loads `.env.local` from `process.cwd()` once.
|
|
660
732
|
*
|
|
@@ -1100,4 +1172,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
|
|
|
1100
1172
|
declare function isFireworksModelId(value: string): value is FireworksModelId;
|
|
1101
1173
|
declare function resolveFireworksModelId(model: string): string | undefined;
|
|
1102
1174
|
|
|
1103
|
-
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLogLineSink, type AgentLoggingConfig, type AgentLoggingSelection, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, 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, DEFAULT_FILE_TTL_SECONDS, DEFAULT_SIGNED_URL_TTL_SECONDS, EXPERIMENTAL_CHATGPT_MODEL_PREFIX, type ExperimentalChatGptModelId, 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 ListedChatGptModelId, type LlmBaseRequest, type LlmBlockedEvent, type LlmCallCompletedTelemetryEvent, type LlmCallStartedTelemetryEvent, type LlmCallStreamTelemetryEvent, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFileCreateParams, type LlmFileDeleted, type LlmFileUploadBackend, type LlmFileUploadEvent, type LlmFileUploadMetrics, type LlmFileUploadMode, type LlmFileUploadSource, type LlmFunctionTool, type LlmGeminiGenerateImagesRequest, type LlmGenerateImagesRequest, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputFilePart, type LlmInputImagePart, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmMediaResolution, type LlmModelEvent, type LlmModelId, type LlmOpenAiGenerateImagesRequest, type LlmOpenAiImageBackground, type LlmOpenAiImageModeration, type LlmOpenAiImageNumImages, type LlmOpenAiImageOutputFormat, type LlmOpenAiImagePartialImageCount, type LlmOpenAiImageQuality, type LlmOpenAiImageResolution, type LlmOpenAiShellEnvironment, type LlmOpenAiShellNetworkPolicy, type LlmProvider, type LlmStoredFile, type LlmStreamEvent, type LlmTelemetryOperation, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmThinkingLevel, 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_GPT_IMAGE_2_AUTO_RESOLUTION, OPENAI_GPT_IMAGE_2_BACKGROUNDS, OPENAI_GPT_IMAGE_2_MODERATION_LEVELS, OPENAI_GPT_IMAGE_2_NUM_IMAGES, OPENAI_GPT_IMAGE_2_OUTPUT_FORMATS, OPENAI_GPT_IMAGE_2_PARTIAL_IMAGE_COUNTS, OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS, OPENAI_GPT_IMAGE_2_QUALITY_LEVELS, OPENAI_GPT_IMAGE_2_RESOLUTIONS, OPENAI_GPT_IMAGE_2_SIZE_CONSTRAINTS, OPENAI_IMAGE_MODEL_IDS, OPENAI_MODEL_IDS, type OpenAiGptImage2Background, type OpenAiGptImage2CustomResolution, type OpenAiGptImage2ListedResolution, type OpenAiGptImage2Moderation, type OpenAiGptImage2NumImages, type OpenAiGptImage2OutputFormat, type OpenAiGptImage2PartialImageCount, type OpenAiGptImage2PopularResolution, type OpenAiGptImage2Quality, type OpenAiGptImage2Resolution, type OpenAiGptImage2ResolutionValidationResult, type OpenAiImageModelId, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, type TelemetryConfig, type TelemetryEvent, type TelemetrySelection, type TelemetrySink, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, configureTelemetry, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, createWriteFileTool, customTool, emptyFileUploadMetrics, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, files, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptModelId, isExperimentalChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiImageModelId, isOpenAiModelId, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resetModelConcurrencyConfig, resetTelemetry, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool, validateOpenAiGptImage2Resolution };
|
|
1175
|
+
export { type AgentDirectoryEntry, type AgentFilesystem, type AgentFilesystemToolAccessContext, type AgentFilesystemToolAccessHook, type AgentFilesystemToolAction, type AgentFilesystemToolConfig, type AgentFilesystemToolName, type AgentFilesystemToolProfile, type AgentFilesystemToolSelection, type AgentFilesystemToolsOptions, type AgentLogLineSink, type AgentLoggingConfig, type AgentLoggingSelection, type AgentLoopStream, type AgentPathInfo, type AgentPathKind, type AgentRunCompletedTelemetryEvent, type AgentRunStartedTelemetryEvent, type AgentRunStreamTelemetryEvent, type AgentSubagentToolConfig, type AgentSubagentToolPromptPattern, type AgentSubagentToolSelection, type ApplyPatchAccessContext, type ApplyPatchAccessHook, type ApplyPatchRequest, type ApplyPatchResult, type ApplyPatchToolInput, type AssessmentSubagentInput, CHATGPT_IMAGE_MODEL_IDS, 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 ChatGptImageModelId, type ChatGptModelId, type CodexApplyPatchToolInput, type CodexGrepFilesToolInput, type CodexListDirToolInput, type CodexReadFileToolInput, type CodexViewImageToolInput, type CreateApplyPatchToolOptions, DEFAULT_FILE_TTL_SECONDS, DEFAULT_SIGNED_URL_TTL_SECONDS, EXPERIMENTAL_CHATGPT_MODEL_PREFIX, type ExperimentalChatGptModelId, 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 ListedChatGptModelId, type LlmBaseRequest, type LlmBlockedEvent, type LlmCallCompletedTelemetryEvent, type LlmCallStartedTelemetryEvent, type LlmCallStreamTelemetryEvent, type LlmChatGptGenerateImagesRequest, type LlmContent, type LlmContentPart, type LlmCustomTool, type LlmCustomToolInputFormat, type LlmExecutableTool, type LlmFileCreateParams, type LlmFileDeleted, type LlmFileUploadBackend, type LlmFileUploadEvent, type LlmFileUploadMetrics, type LlmFileUploadMode, type LlmFileUploadSource, type LlmFunctionTool, type LlmGeminiGenerateImagesRequest, type LlmGenerateImagesRequest, type LlmImageData, type LlmImageModelId, type LlmImageSize, type LlmInput, type LlmInputFilePart, type LlmInputImagePart, type LlmInputMessage, LlmJsonCallError, type LlmJsonRequest, type LlmJsonStream, type LlmJsonStreamEvent, type LlmJsonStreamRequest, type LlmMediaResolution, type LlmModelEvent, type LlmModelId, type LlmOpenAiContainer, type LlmOpenAiContainerCreateOptions, type LlmOpenAiContainerFile, type LlmOpenAiContainerFileUpload, type LlmOpenAiContainerNetworkPolicy, type LlmOpenAiGenerateImagesRequest, type LlmOpenAiImageBackground, type LlmOpenAiImageModeration, type LlmOpenAiImageNumImages, type LlmOpenAiImageOutputFormat, type LlmOpenAiImagePartialImageCount, type LlmOpenAiImageQuality, type LlmOpenAiImageResolution, type LlmOpenAiResponseContainerReference, type LlmOpenAiResponseMetadata, type LlmOpenAiShellEnvironment, type LlmOpenAiShellNetworkPolicy, type LlmProvider, type LlmStoredFile, type LlmStreamEvent, type LlmTelemetryOperation, type LlmTextDeltaEvent, type LlmTextModelId, type LlmTextRequest, type LlmTextResult, type LlmTextStream, type LlmThinkingLevel, 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_GPT_IMAGE_2_AUTO_RESOLUTION, OPENAI_GPT_IMAGE_2_BACKGROUNDS, OPENAI_GPT_IMAGE_2_MODERATION_LEVELS, OPENAI_GPT_IMAGE_2_NUM_IMAGES, OPENAI_GPT_IMAGE_2_OUTPUT_FORMATS, OPENAI_GPT_IMAGE_2_PARTIAL_IMAGE_COUNTS, OPENAI_GPT_IMAGE_2_POPULAR_RESOLUTIONS, OPENAI_GPT_IMAGE_2_QUALITY_LEVELS, OPENAI_GPT_IMAGE_2_RESOLUTIONS, OPENAI_GPT_IMAGE_2_SIZE_CONSTRAINTS, OPENAI_IMAGE_MODEL_IDS, OPENAI_MODEL_IDS, type OpenAiGptImage2Background, type OpenAiGptImage2CustomResolution, type OpenAiGptImage2ListedResolution, type OpenAiGptImage2Moderation, type OpenAiGptImage2NumImages, type OpenAiGptImage2OutputFormat, type OpenAiGptImage2PartialImageCount, type OpenAiGptImage2PopularResolution, type OpenAiGptImage2Quality, type OpenAiGptImage2Resolution, type OpenAiGptImage2ResolutionValidationResult, type OpenAiImageModelId, type OpenAiModelId, type ParentSelectionConfig, type ParentSelectionMidpoint, type PostCheckRejection, type PostGenerationCheckInput, type RunAgentLoopRequest, type TelemetryConfig, type TelemetryEvent, type TelemetrySelection, type TelemetrySink, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, configureTelemetry, convertGooglePartsToLlmParts, createApplyPatchTool, createCodexApplyPatchTool, createCodexFilesystemToolSet, createCodexReadFileTool, createFilesystemToolSetForModel, createGeminiFilesystemToolSet, createGeminiReadFileTool, createGlobTool, createGrepFilesTool, createGrepSearchTool, createInMemoryAgentFilesystem, createListDirTool, createListDirectoryTool, createModelAgnosticFilesystemToolSet, createNodeAgentFilesystem, createOpenAiContainer, createReplaceTool, createRgSearchTool, createToolLoopSteeringChannel, createViewImageTool, createWriteFileTool, customTool, deleteOpenAiContainer, downloadOpenAiContainerFile, downloadOpenAiContainerFileText, emptyFileUploadMetrics, encodeChatGptAuthJson, encodeChatGptAuthJsonB64, estimateCallCostUsd, exchangeChatGptOauthCode, files, generateImageInBatches, generateImages, generateJson, generateText, getChatGptAuthProfile, getCurrentToolCallContext, isChatGptImageModelId, isChatGptModelId, isExperimentalChatGptModelId, isFireworksModelId, isGeminiImageModelId, isGeminiModelId, isGeminiTextModelId, isLlmImageModelId, isLlmModelId, isLlmTextModelId, isOpenAiImageModelId, isOpenAiModelId, listOpenAiContainerFiles, loadEnvFromFile, loadLocalEnv, parseJsonFromLlmText, refreshChatGptOauthToken, resetModelConcurrencyConfig, resetTelemetry, resolveChatGptImageProviderModel, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runCandidateEvolution, runToolLoop, sanitisePartForLogging, streamAgentLoop, streamJson, streamText, streamToolLoop, stripCodexCitationMarkers, toGeminiJsonSchema, tool, uploadOpenAiContainerFile, validateOpenAiGptImage2Resolution };
|