@ljoukov/llm 3.0.3 → 3.0.6

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
@@ -240,6 +240,23 @@ type LlmToolCallResult = {
240
240
  readonly output: unknown;
241
241
  readonly error?: string;
242
242
  readonly callId?: string;
243
+ readonly startedAt?: string;
244
+ readonly completedAt?: string;
245
+ readonly durationMs?: number;
246
+ readonly metrics?: Record<string, unknown>;
247
+ };
248
+ type LlmToolLoopStepTiming = {
249
+ readonly startedAt: string;
250
+ readonly completedAt: string;
251
+ readonly totalMs: number;
252
+ readonly queueWaitMs: number;
253
+ readonly connectionSetupMs: number;
254
+ readonly activeGenerationMs: number;
255
+ readonly toolExecutionMs: number;
256
+ readonly waitToolMs: number;
257
+ readonly schedulerDelayMs: number;
258
+ readonly providerRetryDelayMs: number;
259
+ readonly providerAttempts: number;
243
260
  };
244
261
  type LlmToolLoopStep = {
245
262
  readonly step: number;
@@ -249,6 +266,7 @@ type LlmToolLoopStep = {
249
266
  readonly toolCalls: readonly LlmToolCallResult[];
250
267
  readonly usage?: LlmUsageTokens;
251
268
  readonly costUsd: number;
269
+ readonly timing?: LlmToolLoopStepTiming;
252
270
  };
253
271
  type LlmToolLoopResult = {
254
272
  readonly text: string;
@@ -302,6 +320,32 @@ declare function loadEnvFromFile(filePath: string, { override }?: {
302
320
  override?: boolean;
303
321
  }): void;
304
322
 
323
+ type ModelConcurrencyProvider = "openai" | "google" | "fireworks";
324
+ type ModelConcurrencyConfig = {
325
+ readonly globalCap?: number;
326
+ readonly providerCaps?: Partial<Record<ModelConcurrencyProvider, number>>;
327
+ readonly modelCaps?: Record<string, number>;
328
+ readonly providerModelCaps?: Partial<Record<ModelConcurrencyProvider, Record<string, number>>>;
329
+ };
330
+ declare function configureModelConcurrency(config?: ModelConcurrencyConfig): void;
331
+ declare function resetModelConcurrencyConfig(): void;
332
+
333
+ type AgentSubagentToolPromptPattern = "codex" | "none";
334
+ type AgentSubagentToolConfig = {
335
+ readonly enabled?: boolean;
336
+ readonly maxAgents?: number;
337
+ readonly maxDepth?: number;
338
+ readonly defaultWaitTimeoutMs?: number;
339
+ readonly maxWaitTimeoutMs?: number;
340
+ readonly promptPattern?: AgentSubagentToolPromptPattern;
341
+ readonly instructions?: string;
342
+ readonly model?: LlmTextModelId;
343
+ readonly maxSteps?: number;
344
+ readonly inheritTools?: boolean;
345
+ readonly inheritFilesystemTool?: boolean;
346
+ };
347
+ type AgentSubagentToolSelection = boolean | AgentSubagentToolConfig;
348
+
305
349
  type AgentPathKind = "file" | "directory" | "symlink" | "other";
306
350
  type AgentPathInfo = {
307
351
  readonly kind: AgentPathKind;
@@ -485,12 +529,56 @@ type AgentFilesystemToolConfig = {
485
529
  readonly options?: AgentFilesystemToolsOptions;
486
530
  };
487
531
  type AgentFilesystemToolSelection = boolean | AgentFilesystemToolProfile | AgentFilesystemToolConfig;
532
+
488
533
  type RunAgentLoopRequest = Omit<LlmToolLoopRequest, "tools"> & {
489
534
  readonly tools?: LlmToolSet;
490
535
  readonly filesystemTool?: AgentFilesystemToolSelection;
491
536
  readonly filesystem_tool?: AgentFilesystemToolSelection;
537
+ readonly subagentTool?: AgentSubagentToolSelection;
538
+ readonly subagent_tool?: AgentSubagentToolSelection;
539
+ readonly subagents?: AgentSubagentToolSelection;
540
+ readonly telemetry?: AgentTelemetrySelection;
492
541
  };
493
542
  declare function runAgentLoop(request: RunAgentLoopRequest): Promise<LlmToolLoopResult>;
543
+ type AgentTelemetryBaseEvent = {
544
+ readonly timestamp: string;
545
+ readonly runId: string;
546
+ readonly parentRunId?: string;
547
+ readonly depth: number;
548
+ readonly model: LlmToolLoopRequest["model"];
549
+ };
550
+ type AgentRunStartedTelemetryEvent = AgentTelemetryBaseEvent & {
551
+ readonly type: "agent.run.started";
552
+ readonly inputMode: "string" | "messages";
553
+ readonly customToolCount: number;
554
+ readonly mergedToolCount: number;
555
+ readonly filesystemToolsEnabled: boolean;
556
+ readonly subagentToolsEnabled: boolean;
557
+ };
558
+ type AgentRunStreamTelemetryEvent = AgentTelemetryBaseEvent & {
559
+ readonly type: "agent.run.stream";
560
+ readonly event: LlmStreamEvent;
561
+ };
562
+ type AgentRunCompletedTelemetryEvent = AgentTelemetryBaseEvent & {
563
+ readonly type: "agent.run.completed";
564
+ readonly success: boolean;
565
+ readonly durationMs: number;
566
+ readonly stepCount?: number;
567
+ readonly toolCallCount?: number;
568
+ readonly totalCostUsd?: number;
569
+ readonly usage?: LlmUsageTokens;
570
+ readonly error?: string;
571
+ };
572
+ type AgentTelemetryEvent = AgentRunStartedTelemetryEvent | AgentRunStreamTelemetryEvent | AgentRunCompletedTelemetryEvent;
573
+ type AgentTelemetrySink = {
574
+ readonly emit: (event: AgentTelemetryEvent) => void | Promise<void>;
575
+ readonly flush?: () => void | Promise<void>;
576
+ };
577
+ type AgentTelemetryConfig = {
578
+ readonly sink: AgentTelemetrySink;
579
+ readonly includeLlmStreamEvents?: boolean;
580
+ };
581
+ type AgentTelemetrySelection = AgentTelemetrySink | AgentTelemetryConfig;
494
582
 
495
583
  declare const CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION = "Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.";
496
584
  declare const CODEX_APPLY_PATCH_LARK_GRAMMAR: string;
@@ -579,4 +667,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
579
667
  declare function isFireworksModelId(value: string): value is FireworksModelId;
580
668
  declare function resolveFireworksModelId(model: string): string | undefined;
581
669
 
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 };
670
+ 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 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, 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, type ModelConcurrencyConfig, type ModelConcurrencyProvider, OPENAI_MODEL_IDS, type OpenAiModelId, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, 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, resetModelConcurrencyConfig, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };
package/dist/index.d.ts CHANGED
@@ -240,6 +240,23 @@ type LlmToolCallResult = {
240
240
  readonly output: unknown;
241
241
  readonly error?: string;
242
242
  readonly callId?: string;
243
+ readonly startedAt?: string;
244
+ readonly completedAt?: string;
245
+ readonly durationMs?: number;
246
+ readonly metrics?: Record<string, unknown>;
247
+ };
248
+ type LlmToolLoopStepTiming = {
249
+ readonly startedAt: string;
250
+ readonly completedAt: string;
251
+ readonly totalMs: number;
252
+ readonly queueWaitMs: number;
253
+ readonly connectionSetupMs: number;
254
+ readonly activeGenerationMs: number;
255
+ readonly toolExecutionMs: number;
256
+ readonly waitToolMs: number;
257
+ readonly schedulerDelayMs: number;
258
+ readonly providerRetryDelayMs: number;
259
+ readonly providerAttempts: number;
243
260
  };
244
261
  type LlmToolLoopStep = {
245
262
  readonly step: number;
@@ -249,6 +266,7 @@ type LlmToolLoopStep = {
249
266
  readonly toolCalls: readonly LlmToolCallResult[];
250
267
  readonly usage?: LlmUsageTokens;
251
268
  readonly costUsd: number;
269
+ readonly timing?: LlmToolLoopStepTiming;
252
270
  };
253
271
  type LlmToolLoopResult = {
254
272
  readonly text: string;
@@ -302,6 +320,32 @@ declare function loadEnvFromFile(filePath: string, { override }?: {
302
320
  override?: boolean;
303
321
  }): void;
304
322
 
323
+ type ModelConcurrencyProvider = "openai" | "google" | "fireworks";
324
+ type ModelConcurrencyConfig = {
325
+ readonly globalCap?: number;
326
+ readonly providerCaps?: Partial<Record<ModelConcurrencyProvider, number>>;
327
+ readonly modelCaps?: Record<string, number>;
328
+ readonly providerModelCaps?: Partial<Record<ModelConcurrencyProvider, Record<string, number>>>;
329
+ };
330
+ declare function configureModelConcurrency(config?: ModelConcurrencyConfig): void;
331
+ declare function resetModelConcurrencyConfig(): void;
332
+
333
+ type AgentSubagentToolPromptPattern = "codex" | "none";
334
+ type AgentSubagentToolConfig = {
335
+ readonly enabled?: boolean;
336
+ readonly maxAgents?: number;
337
+ readonly maxDepth?: number;
338
+ readonly defaultWaitTimeoutMs?: number;
339
+ readonly maxWaitTimeoutMs?: number;
340
+ readonly promptPattern?: AgentSubagentToolPromptPattern;
341
+ readonly instructions?: string;
342
+ readonly model?: LlmTextModelId;
343
+ readonly maxSteps?: number;
344
+ readonly inheritTools?: boolean;
345
+ readonly inheritFilesystemTool?: boolean;
346
+ };
347
+ type AgentSubagentToolSelection = boolean | AgentSubagentToolConfig;
348
+
305
349
  type AgentPathKind = "file" | "directory" | "symlink" | "other";
306
350
  type AgentPathInfo = {
307
351
  readonly kind: AgentPathKind;
@@ -485,12 +529,56 @@ type AgentFilesystemToolConfig = {
485
529
  readonly options?: AgentFilesystemToolsOptions;
486
530
  };
487
531
  type AgentFilesystemToolSelection = boolean | AgentFilesystemToolProfile | AgentFilesystemToolConfig;
532
+
488
533
  type RunAgentLoopRequest = Omit<LlmToolLoopRequest, "tools"> & {
489
534
  readonly tools?: LlmToolSet;
490
535
  readonly filesystemTool?: AgentFilesystemToolSelection;
491
536
  readonly filesystem_tool?: AgentFilesystemToolSelection;
537
+ readonly subagentTool?: AgentSubagentToolSelection;
538
+ readonly subagent_tool?: AgentSubagentToolSelection;
539
+ readonly subagents?: AgentSubagentToolSelection;
540
+ readonly telemetry?: AgentTelemetrySelection;
492
541
  };
493
542
  declare function runAgentLoop(request: RunAgentLoopRequest): Promise<LlmToolLoopResult>;
543
+ type AgentTelemetryBaseEvent = {
544
+ readonly timestamp: string;
545
+ readonly runId: string;
546
+ readonly parentRunId?: string;
547
+ readonly depth: number;
548
+ readonly model: LlmToolLoopRequest["model"];
549
+ };
550
+ type AgentRunStartedTelemetryEvent = AgentTelemetryBaseEvent & {
551
+ readonly type: "agent.run.started";
552
+ readonly inputMode: "string" | "messages";
553
+ readonly customToolCount: number;
554
+ readonly mergedToolCount: number;
555
+ readonly filesystemToolsEnabled: boolean;
556
+ readonly subagentToolsEnabled: boolean;
557
+ };
558
+ type AgentRunStreamTelemetryEvent = AgentTelemetryBaseEvent & {
559
+ readonly type: "agent.run.stream";
560
+ readonly event: LlmStreamEvent;
561
+ };
562
+ type AgentRunCompletedTelemetryEvent = AgentTelemetryBaseEvent & {
563
+ readonly type: "agent.run.completed";
564
+ readonly success: boolean;
565
+ readonly durationMs: number;
566
+ readonly stepCount?: number;
567
+ readonly toolCallCount?: number;
568
+ readonly totalCostUsd?: number;
569
+ readonly usage?: LlmUsageTokens;
570
+ readonly error?: string;
571
+ };
572
+ type AgentTelemetryEvent = AgentRunStartedTelemetryEvent | AgentRunStreamTelemetryEvent | AgentRunCompletedTelemetryEvent;
573
+ type AgentTelemetrySink = {
574
+ readonly emit: (event: AgentTelemetryEvent) => void | Promise<void>;
575
+ readonly flush?: () => void | Promise<void>;
576
+ };
577
+ type AgentTelemetryConfig = {
578
+ readonly sink: AgentTelemetrySink;
579
+ readonly includeLlmStreamEvents?: boolean;
580
+ };
581
+ type AgentTelemetrySelection = AgentTelemetrySink | AgentTelemetryConfig;
494
582
 
495
583
  declare const CODEX_APPLY_PATCH_FREEFORM_TOOL_DESCRIPTION = "Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.";
496
584
  declare const CODEX_APPLY_PATCH_LARK_GRAMMAR: string;
@@ -579,4 +667,4 @@ declare const FIREWORKS_DEFAULT_GPT_OSS_120B_MODEL: FireworksModelId;
579
667
  declare function isFireworksModelId(value: string): value is FireworksModelId;
580
668
  declare function resolveFireworksModelId(model: string): string | undefined;
581
669
 
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 };
670
+ 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 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, 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, type ModelConcurrencyConfig, type ModelConcurrencyProvider, OPENAI_MODEL_IDS, type OpenAiModelId, type RunAgentLoopRequest, appendMarkdownSourcesSection, applyPatch, configureGemini, configureModelConcurrency, 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, resetModelConcurrencyConfig, resolveFilesystemToolProfile, resolveFireworksModelId, runAgentLoop, runToolLoop, sanitisePartForLogging, streamJson, streamText, stripCodexCitationMarkers, toGeminiJsonSchema, tool };