@agtlantis/core 0.4.1 → 0.5.0
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/{base-provider-C3mFLNiN.d.cts → base-provider-2TTw5HAa.d.cts} +20 -2
- package/dist/{base-provider-C3mFLNiN.d.ts → base-provider-2TTw5HAa.d.ts} +20 -2
- package/dist/index.cjs +92 -195
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -28
- package/dist/index.d.ts +32 -28
- package/dist/index.js +92 -194
- package/dist/index.js.map +1 -1
- package/dist/testing/index.cjs +31 -8
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +5 -1
- package/dist/testing/index.d.ts +5 -1
- package/dist/testing/index.js +31 -4
- package/dist/testing/index.js.map +1 -1
- package/package.json +2 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProviderType, a as PricingConfig, M as ModelPricing, b as ProviderPricing, C as CalculateCostParams, c as CostResult, S as StreamingExecution, d as StreamingSession, e as SessionStreamGeneratorFn, f as SessionEvent, E as ErrorEvent, g as StreamingResult, h as ExtractResult, i as SimpleExecution, j as SimpleSession, k as SimpleResult, l as ExecutionStatus, m as CompletionEvent, n as StreamTextParams, B as BaseProvider, F as FileSource, o as FileCache, U as UploadedFile, p as FileManager, L as Logger, q as FileManagerOptions } from './base-provider-
|
|
2
|
-
export {
|
|
1
|
+
import { P as ProviderType, a as PricingConfig, M as ModelPricing, b as ProviderPricing, C as CalculateCostParams, c as CostResult, S as StreamingExecution, d as StreamingSession, e as SessionStreamGeneratorFn, f as SessionEvent, E as ErrorEvent, g as StreamingResult, h as ExtractResult, i as SimpleExecution, j as SimpleSession, k as SimpleResult, l as ExecutionStatus, m as CompletionEvent, n as StreamTextParams, B as BaseProvider, F as FileSource, o as FileCache, U as UploadedFile, p as FileManager, L as Logger, G as GenerationOptions, q as FileManagerOptions } from './base-provider-2TTw5HAa.cjs';
|
|
2
|
+
export { ah as AdditionalCost, a5 as CreateStreamingSessionOptions, a8 as DefaultOutput, D as DistributiveOmit, al as DoneMetadata, v as EmittableEventInput, w as EventMetrics, r as Execution, K as ExecutionDoneEvent, J as ExecutionEmitEvent, N as ExecutionErrorEvent, x as ExecutionMetadata, s as ExecutionOptions, t as ExecutionResult, ak as ExecutionSession, I as ExecutionStartEvent, X as FileSourceBase64, W as FileSourceData, V as FileSourcePath, Y as FileSourceUrl, ad as GenerateObjectParams, ac as GenerateTextParams, aa as GenerateTextResultTyped, a9 as InferOutputComplete, H as LLMCallEndEvent, z as LLMCallLogType, ag as LLMCallRecord, A as LLMCallStartEvent, af as LLMCallType, y as LogLevel, a7 as OutputSpec, T as Provider, R as ReservedEventType, u as SessionEventInput, ai as SessionSummary, aj as SessionSummaryJSON, a2 as SimpleSessionOptions, ab as StreamTextResultTyped, a6 as StreamingSessionInternal, a4 as StreamingSessionOptions, ae as ToolCallSummary, Q as createLogger, a3 as createStreamingSession, Z as isFileSource, a0 as isFileSourceBase64, $ as isFileSourceData, _ as isFileSourcePath, a1 as isFileSourceUrl, O as noopLogger } from './base-provider-2TTw5HAa.cjs';
|
|
3
3
|
import { LanguageModelUsage, ToolSet, StopCondition } from 'ai';
|
|
4
4
|
export { GenerateTextResult, LanguageModelUsage, StreamTextResult, ToolSet } from 'ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1078,12 +1078,6 @@ declare class PromptIOError extends PromptError {
|
|
|
1078
1078
|
*/
|
|
1079
1079
|
declare function compileTemplate<TInput>(template: string, promptId: string): (input: TInput) => string;
|
|
1080
1080
|
|
|
1081
|
-
/**
|
|
1082
|
-
* File-based prompt repository implementation.
|
|
1083
|
-
*
|
|
1084
|
-
* Stores prompts as YAML files with naming convention: {id}-{version}.yaml
|
|
1085
|
-
*/
|
|
1086
|
-
|
|
1087
1081
|
interface FilePromptRepositoryOptions {
|
|
1088
1082
|
/** Directory path where prompt files are stored */
|
|
1089
1083
|
directory: string;
|
|
@@ -1227,18 +1221,22 @@ interface GoogleProviderConfig {
|
|
|
1227
1221
|
apiKey: string;
|
|
1228
1222
|
safetySettings?: SafetySetting[];
|
|
1229
1223
|
}
|
|
1224
|
+
interface GoogleProviderState {
|
|
1225
|
+
apiKey: string;
|
|
1226
|
+
defaultModelId: string | null;
|
|
1227
|
+
logger: Logger;
|
|
1228
|
+
safetySettings?: SafetySetting[];
|
|
1229
|
+
pricingConfig?: ProviderPricing;
|
|
1230
|
+
defaultOptions?: GoogleGenerativeAIProviderOptions;
|
|
1231
|
+
searchEnabled: boolean;
|
|
1232
|
+
urlContextEnabled: boolean;
|
|
1233
|
+
fileCache?: FileCache;
|
|
1234
|
+
defaultGenOptions?: GenerationOptions;
|
|
1235
|
+
}
|
|
1230
1236
|
declare class GoogleProvider extends BaseProvider {
|
|
1231
|
-
private readonly
|
|
1232
|
-
private readonly defaultModelId;
|
|
1233
|
-
private readonly logger;
|
|
1234
|
-
private readonly safetySettings?;
|
|
1235
|
-
private readonly pricingConfig?;
|
|
1236
|
-
private readonly defaultOptions?;
|
|
1237
|
-
private readonly searchEnabled;
|
|
1238
|
-
private readonly urlContextEnabled;
|
|
1239
|
-
private readonly fileCache?;
|
|
1237
|
+
private readonly config;
|
|
1240
1238
|
private readonly google;
|
|
1241
|
-
constructor(
|
|
1239
|
+
constructor(config: GoogleProviderState);
|
|
1242
1240
|
withDefaultModel(modelId: string): GoogleProvider;
|
|
1243
1241
|
withLogger(newLogger: Logger): GoogleProvider;
|
|
1244
1242
|
withPricing(pricing: ProviderPricing): GoogleProvider;
|
|
@@ -1256,6 +1254,7 @@ declare class GoogleProvider extends BaseProvider {
|
|
|
1256
1254
|
* ```
|
|
1257
1255
|
*/
|
|
1258
1256
|
withDefaultOptions(options: GoogleGenerativeAIProviderOptions): GoogleProvider;
|
|
1257
|
+
withDefaultGenerationOptions(options: GenerationOptions): GoogleProvider;
|
|
1259
1258
|
/**
|
|
1260
1259
|
* Enable Google Search grounding for all LLM calls.
|
|
1261
1260
|
* Allows the model to access real-time web information.
|
|
@@ -1328,17 +1327,21 @@ interface OpenAIProviderConfig {
|
|
|
1328
1327
|
baseURL?: string;
|
|
1329
1328
|
organization?: string;
|
|
1330
1329
|
}
|
|
1330
|
+
interface OpenAIProviderState {
|
|
1331
|
+
apiKey: string;
|
|
1332
|
+
defaultModelId: string | null;
|
|
1333
|
+
logger: Logger;
|
|
1334
|
+
baseURL?: string;
|
|
1335
|
+
organization?: string;
|
|
1336
|
+
pricingConfig?: ProviderPricing;
|
|
1337
|
+
defaultOptions?: OpenAIChatLanguageModelOptions;
|
|
1338
|
+
fileCache?: FileCache;
|
|
1339
|
+
defaultGenOptions?: GenerationOptions;
|
|
1340
|
+
}
|
|
1331
1341
|
declare class OpenAIProvider extends BaseProvider {
|
|
1332
|
-
private readonly
|
|
1333
|
-
private readonly defaultModelId;
|
|
1334
|
-
private readonly logger;
|
|
1335
|
-
private readonly baseURL?;
|
|
1336
|
-
private readonly organization?;
|
|
1337
|
-
private readonly pricingConfig?;
|
|
1338
|
-
private readonly defaultOptions?;
|
|
1339
|
-
private readonly fileCache?;
|
|
1342
|
+
private readonly config;
|
|
1340
1343
|
private readonly openai;
|
|
1341
|
-
constructor(
|
|
1344
|
+
constructor(config: OpenAIProviderState);
|
|
1342
1345
|
withDefaultModel(modelId: string): OpenAIProvider;
|
|
1343
1346
|
withLogger(newLogger: Logger): OpenAIProvider;
|
|
1344
1347
|
withPricing(pricing: ProviderPricing): OpenAIProvider;
|
|
@@ -1357,6 +1360,7 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
1357
1360
|
* ```
|
|
1358
1361
|
*/
|
|
1359
1362
|
withDefaultOptions(options: OpenAIChatLanguageModelOptions): OpenAIProvider;
|
|
1363
|
+
withDefaultGenerationOptions(options: GenerationOptions): OpenAIProvider;
|
|
1360
1364
|
/**
|
|
1361
1365
|
* Set a file cache for API consistency with GoogleProvider.
|
|
1362
1366
|
* Note: OpenAI does not support file caching, so this is a no-op.
|
|
@@ -1499,4 +1503,4 @@ declare class ValidationExhaustedError<TResult> extends AgtlantisError<Validatio
|
|
|
1499
1503
|
*/
|
|
1500
1504
|
declare function withValidation<TResult>(execute: (history: ReadonlyValidationHistory<NoInfer<TResult>>) => Promise<TResult>, options: ValidationOptions<NoInfer<TResult>>): Promise<TResult>;
|
|
1501
1505
|
|
|
1502
|
-
export { ANTHROPIC_PRICING, AgtlantisError, type AgtlantisErrorCode, type AgtlantisErrorOptions, BaseProvider, CalculateCostParams, type CompleteEvent, CompletionEvent, ConfigurationError, ConfigurationErrorCode, type ConfigurationErrorOptions, CostResult, DEFAULT_FALLBACK_PRICING, DEFAULT_MAX_SIZE, DEFAULT_PRICING_CONFIG, ERRORS, EXTENSION_TO_MIME, type EffectivePricingResult, ErrorEvent, ExecutionError, ExecutionErrorCode, type ExecutionErrorOptions, ExecutionStatus, ExtractResult, FileCache, FileError, FileErrorCode, type FileErrorOptions, FileManager, FileManagerOptions, FilePromptRepository, type FilePromptRepositoryOptions, FileSource, type FileSourceDisplayInfo, type FileSystem, type FoundFileSource, GOOGLE_PRICING, GoogleFileManager, GoogleProvider, type GoogleProviderConfig, type HarmBlockThreshold, type HarmCategory, type HookRunner, InMemoryFileCache, type InMemoryFileCacheOptions, Logger, ModelPricing, NoOpFileManager, OPENAI_PRICING, type OpenAIProviderConfig, PricingConfig, type PricingSource, type ProgressEvent, ProgressivePattern, type ProgressiveStreamOptions, PromptError, PromptErrorCode, type PromptErrorOptions, PromptIOError, PromptInvalidFormatError, PromptNotFoundError, type PromptRenderer, type PromptRepository, PromptTemplate, type PromptTemplateData, PromptTemplateError, ProviderPricing, ProviderType, type ReadonlyValidationHistory, type ReplaceResult, type ResolveOptions, type SafetySetting, SessionEvent, SessionStreamGeneratorFn, SimpleExecution, SimpleExecutionHost, SimpleResult, SimpleSession, StreamTextParams, StreamingExecution, StreamingExecutionHost, StreamingResult, StreamingSession, TOOL_CALLING_PROTOCOL, UploadedFile, type ValidationAttempt, ValidationErrorCode, ValidationExhaustedError, ValidationHistory, type ValidationOptions, type ValidationResult, calculateCost, calculateCostFromUsage, calculateTotalCost, combineSignals, compileTemplate, computeFileSourceHash, configurePricing, createFilePromptRepository, createGoogleProvider, createHookRunner, createOpenAIProvider, createZeroUsage, defineProgressivePattern, detectProviderType, determineResultStatus, getDuration, getEffectivePricing, getFileSourceDisplayInfo, getFileSourcesDisplayInfo, getModelPricing, getPricingConfig, inferMediaType, isAbortError, mapExecution, mapExecutionResult, mergeUsages, normalizeError, resetPricingConfig, resolveFileSource, resolveFileSourcesInInput, scanForFileSources, validateModelPricing, validatePricingConfig, validateProviderPricing, withValidation };
|
|
1506
|
+
export { ANTHROPIC_PRICING, AgtlantisError, type AgtlantisErrorCode, type AgtlantisErrorOptions, BaseProvider, CalculateCostParams, type CompleteEvent, CompletionEvent, ConfigurationError, ConfigurationErrorCode, type ConfigurationErrorOptions, CostResult, DEFAULT_FALLBACK_PRICING, DEFAULT_MAX_SIZE, DEFAULT_PRICING_CONFIG, ERRORS, EXTENSION_TO_MIME, type EffectivePricingResult, ErrorEvent, ExecutionError, ExecutionErrorCode, type ExecutionErrorOptions, ExecutionStatus, ExtractResult, FileCache, FileError, FileErrorCode, type FileErrorOptions, FileManager, FileManagerOptions, FilePromptRepository, type FilePromptRepositoryOptions, FileSource, type FileSourceDisplayInfo, type FileSystem, type FoundFileSource, GOOGLE_PRICING, GenerationOptions, GoogleFileManager, GoogleProvider, type GoogleProviderConfig, type HarmBlockThreshold, type HarmCategory, type HookRunner, InMemoryFileCache, type InMemoryFileCacheOptions, Logger, ModelPricing, NoOpFileManager, OPENAI_PRICING, type OpenAIProviderConfig, PricingConfig, type PricingSource, type ProgressEvent, ProgressivePattern, type ProgressiveStreamOptions, PromptError, PromptErrorCode, type PromptErrorOptions, PromptIOError, PromptInvalidFormatError, PromptNotFoundError, type PromptRenderer, type PromptRepository, PromptTemplate, type PromptTemplateData, PromptTemplateError, ProviderPricing, ProviderType, type ReadonlyValidationHistory, type ReplaceResult, type ResolveOptions, type SafetySetting, SessionEvent, SessionStreamGeneratorFn, SimpleExecution, SimpleExecutionHost, SimpleResult, SimpleSession, StreamTextParams, StreamingExecution, StreamingExecutionHost, StreamingResult, StreamingSession, TOOL_CALLING_PROTOCOL, UploadedFile, type ValidationAttempt, ValidationErrorCode, ValidationExhaustedError, ValidationHistory, type ValidationOptions, type ValidationResult, calculateCost, calculateCostFromUsage, calculateTotalCost, combineSignals, compileTemplate, computeFileSourceHash, configurePricing, createFilePromptRepository, createGoogleProvider, createHookRunner, createOpenAIProvider, createZeroUsage, defineProgressivePattern, detectProviderType, determineResultStatus, getDuration, getEffectivePricing, getFileSourceDisplayInfo, getFileSourcesDisplayInfo, getModelPricing, getPricingConfig, inferMediaType, isAbortError, mapExecution, mapExecutionResult, mergeUsages, normalizeError, resetPricingConfig, resolveFileSource, resolveFileSourcesInInput, scanForFileSources, validateModelPricing, validatePricingConfig, validateProviderPricing, withValidation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProviderType, a as PricingConfig, M as ModelPricing, b as ProviderPricing, C as CalculateCostParams, c as CostResult, S as StreamingExecution, d as StreamingSession, e as SessionStreamGeneratorFn, f as SessionEvent, E as ErrorEvent, g as StreamingResult, h as ExtractResult, i as SimpleExecution, j as SimpleSession, k as SimpleResult, l as ExecutionStatus, m as CompletionEvent, n as StreamTextParams, B as BaseProvider, F as FileSource, o as FileCache, U as UploadedFile, p as FileManager, L as Logger, q as FileManagerOptions } from './base-provider-
|
|
2
|
-
export {
|
|
1
|
+
import { P as ProviderType, a as PricingConfig, M as ModelPricing, b as ProviderPricing, C as CalculateCostParams, c as CostResult, S as StreamingExecution, d as StreamingSession, e as SessionStreamGeneratorFn, f as SessionEvent, E as ErrorEvent, g as StreamingResult, h as ExtractResult, i as SimpleExecution, j as SimpleSession, k as SimpleResult, l as ExecutionStatus, m as CompletionEvent, n as StreamTextParams, B as BaseProvider, F as FileSource, o as FileCache, U as UploadedFile, p as FileManager, L as Logger, G as GenerationOptions, q as FileManagerOptions } from './base-provider-2TTw5HAa.js';
|
|
2
|
+
export { ah as AdditionalCost, a5 as CreateStreamingSessionOptions, a8 as DefaultOutput, D as DistributiveOmit, al as DoneMetadata, v as EmittableEventInput, w as EventMetrics, r as Execution, K as ExecutionDoneEvent, J as ExecutionEmitEvent, N as ExecutionErrorEvent, x as ExecutionMetadata, s as ExecutionOptions, t as ExecutionResult, ak as ExecutionSession, I as ExecutionStartEvent, X as FileSourceBase64, W as FileSourceData, V as FileSourcePath, Y as FileSourceUrl, ad as GenerateObjectParams, ac as GenerateTextParams, aa as GenerateTextResultTyped, a9 as InferOutputComplete, H as LLMCallEndEvent, z as LLMCallLogType, ag as LLMCallRecord, A as LLMCallStartEvent, af as LLMCallType, y as LogLevel, a7 as OutputSpec, T as Provider, R as ReservedEventType, u as SessionEventInput, ai as SessionSummary, aj as SessionSummaryJSON, a2 as SimpleSessionOptions, ab as StreamTextResultTyped, a6 as StreamingSessionInternal, a4 as StreamingSessionOptions, ae as ToolCallSummary, Q as createLogger, a3 as createStreamingSession, Z as isFileSource, a0 as isFileSourceBase64, $ as isFileSourceData, _ as isFileSourcePath, a1 as isFileSourceUrl, O as noopLogger } from './base-provider-2TTw5HAa.js';
|
|
3
3
|
import { LanguageModelUsage, ToolSet, StopCondition } from 'ai';
|
|
4
4
|
export { GenerateTextResult, LanguageModelUsage, StreamTextResult, ToolSet } from 'ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1078,12 +1078,6 @@ declare class PromptIOError extends PromptError {
|
|
|
1078
1078
|
*/
|
|
1079
1079
|
declare function compileTemplate<TInput>(template: string, promptId: string): (input: TInput) => string;
|
|
1080
1080
|
|
|
1081
|
-
/**
|
|
1082
|
-
* File-based prompt repository implementation.
|
|
1083
|
-
*
|
|
1084
|
-
* Stores prompts as YAML files with naming convention: {id}-{version}.yaml
|
|
1085
|
-
*/
|
|
1086
|
-
|
|
1087
1081
|
interface FilePromptRepositoryOptions {
|
|
1088
1082
|
/** Directory path where prompt files are stored */
|
|
1089
1083
|
directory: string;
|
|
@@ -1227,18 +1221,22 @@ interface GoogleProviderConfig {
|
|
|
1227
1221
|
apiKey: string;
|
|
1228
1222
|
safetySettings?: SafetySetting[];
|
|
1229
1223
|
}
|
|
1224
|
+
interface GoogleProviderState {
|
|
1225
|
+
apiKey: string;
|
|
1226
|
+
defaultModelId: string | null;
|
|
1227
|
+
logger: Logger;
|
|
1228
|
+
safetySettings?: SafetySetting[];
|
|
1229
|
+
pricingConfig?: ProviderPricing;
|
|
1230
|
+
defaultOptions?: GoogleGenerativeAIProviderOptions;
|
|
1231
|
+
searchEnabled: boolean;
|
|
1232
|
+
urlContextEnabled: boolean;
|
|
1233
|
+
fileCache?: FileCache;
|
|
1234
|
+
defaultGenOptions?: GenerationOptions;
|
|
1235
|
+
}
|
|
1230
1236
|
declare class GoogleProvider extends BaseProvider {
|
|
1231
|
-
private readonly
|
|
1232
|
-
private readonly defaultModelId;
|
|
1233
|
-
private readonly logger;
|
|
1234
|
-
private readonly safetySettings?;
|
|
1235
|
-
private readonly pricingConfig?;
|
|
1236
|
-
private readonly defaultOptions?;
|
|
1237
|
-
private readonly searchEnabled;
|
|
1238
|
-
private readonly urlContextEnabled;
|
|
1239
|
-
private readonly fileCache?;
|
|
1237
|
+
private readonly config;
|
|
1240
1238
|
private readonly google;
|
|
1241
|
-
constructor(
|
|
1239
|
+
constructor(config: GoogleProviderState);
|
|
1242
1240
|
withDefaultModel(modelId: string): GoogleProvider;
|
|
1243
1241
|
withLogger(newLogger: Logger): GoogleProvider;
|
|
1244
1242
|
withPricing(pricing: ProviderPricing): GoogleProvider;
|
|
@@ -1256,6 +1254,7 @@ declare class GoogleProvider extends BaseProvider {
|
|
|
1256
1254
|
* ```
|
|
1257
1255
|
*/
|
|
1258
1256
|
withDefaultOptions(options: GoogleGenerativeAIProviderOptions): GoogleProvider;
|
|
1257
|
+
withDefaultGenerationOptions(options: GenerationOptions): GoogleProvider;
|
|
1259
1258
|
/**
|
|
1260
1259
|
* Enable Google Search grounding for all LLM calls.
|
|
1261
1260
|
* Allows the model to access real-time web information.
|
|
@@ -1328,17 +1327,21 @@ interface OpenAIProviderConfig {
|
|
|
1328
1327
|
baseURL?: string;
|
|
1329
1328
|
organization?: string;
|
|
1330
1329
|
}
|
|
1330
|
+
interface OpenAIProviderState {
|
|
1331
|
+
apiKey: string;
|
|
1332
|
+
defaultModelId: string | null;
|
|
1333
|
+
logger: Logger;
|
|
1334
|
+
baseURL?: string;
|
|
1335
|
+
organization?: string;
|
|
1336
|
+
pricingConfig?: ProviderPricing;
|
|
1337
|
+
defaultOptions?: OpenAIChatLanguageModelOptions;
|
|
1338
|
+
fileCache?: FileCache;
|
|
1339
|
+
defaultGenOptions?: GenerationOptions;
|
|
1340
|
+
}
|
|
1331
1341
|
declare class OpenAIProvider extends BaseProvider {
|
|
1332
|
-
private readonly
|
|
1333
|
-
private readonly defaultModelId;
|
|
1334
|
-
private readonly logger;
|
|
1335
|
-
private readonly baseURL?;
|
|
1336
|
-
private readonly organization?;
|
|
1337
|
-
private readonly pricingConfig?;
|
|
1338
|
-
private readonly defaultOptions?;
|
|
1339
|
-
private readonly fileCache?;
|
|
1342
|
+
private readonly config;
|
|
1340
1343
|
private readonly openai;
|
|
1341
|
-
constructor(
|
|
1344
|
+
constructor(config: OpenAIProviderState);
|
|
1342
1345
|
withDefaultModel(modelId: string): OpenAIProvider;
|
|
1343
1346
|
withLogger(newLogger: Logger): OpenAIProvider;
|
|
1344
1347
|
withPricing(pricing: ProviderPricing): OpenAIProvider;
|
|
@@ -1357,6 +1360,7 @@ declare class OpenAIProvider extends BaseProvider {
|
|
|
1357
1360
|
* ```
|
|
1358
1361
|
*/
|
|
1359
1362
|
withDefaultOptions(options: OpenAIChatLanguageModelOptions): OpenAIProvider;
|
|
1363
|
+
withDefaultGenerationOptions(options: GenerationOptions): OpenAIProvider;
|
|
1360
1364
|
/**
|
|
1361
1365
|
* Set a file cache for API consistency with GoogleProvider.
|
|
1362
1366
|
* Note: OpenAI does not support file caching, so this is a no-op.
|
|
@@ -1499,4 +1503,4 @@ declare class ValidationExhaustedError<TResult> extends AgtlantisError<Validatio
|
|
|
1499
1503
|
*/
|
|
1500
1504
|
declare function withValidation<TResult>(execute: (history: ReadonlyValidationHistory<NoInfer<TResult>>) => Promise<TResult>, options: ValidationOptions<NoInfer<TResult>>): Promise<TResult>;
|
|
1501
1505
|
|
|
1502
|
-
export { ANTHROPIC_PRICING, AgtlantisError, type AgtlantisErrorCode, type AgtlantisErrorOptions, BaseProvider, CalculateCostParams, type CompleteEvent, CompletionEvent, ConfigurationError, ConfigurationErrorCode, type ConfigurationErrorOptions, CostResult, DEFAULT_FALLBACK_PRICING, DEFAULT_MAX_SIZE, DEFAULT_PRICING_CONFIG, ERRORS, EXTENSION_TO_MIME, type EffectivePricingResult, ErrorEvent, ExecutionError, ExecutionErrorCode, type ExecutionErrorOptions, ExecutionStatus, ExtractResult, FileCache, FileError, FileErrorCode, type FileErrorOptions, FileManager, FileManagerOptions, FilePromptRepository, type FilePromptRepositoryOptions, FileSource, type FileSourceDisplayInfo, type FileSystem, type FoundFileSource, GOOGLE_PRICING, GoogleFileManager, GoogleProvider, type GoogleProviderConfig, type HarmBlockThreshold, type HarmCategory, type HookRunner, InMemoryFileCache, type InMemoryFileCacheOptions, Logger, ModelPricing, NoOpFileManager, OPENAI_PRICING, type OpenAIProviderConfig, PricingConfig, type PricingSource, type ProgressEvent, ProgressivePattern, type ProgressiveStreamOptions, PromptError, PromptErrorCode, type PromptErrorOptions, PromptIOError, PromptInvalidFormatError, PromptNotFoundError, type PromptRenderer, type PromptRepository, PromptTemplate, type PromptTemplateData, PromptTemplateError, ProviderPricing, ProviderType, type ReadonlyValidationHistory, type ReplaceResult, type ResolveOptions, type SafetySetting, SessionEvent, SessionStreamGeneratorFn, SimpleExecution, SimpleExecutionHost, SimpleResult, SimpleSession, StreamTextParams, StreamingExecution, StreamingExecutionHost, StreamingResult, StreamingSession, TOOL_CALLING_PROTOCOL, UploadedFile, type ValidationAttempt, ValidationErrorCode, ValidationExhaustedError, ValidationHistory, type ValidationOptions, type ValidationResult, calculateCost, calculateCostFromUsage, calculateTotalCost, combineSignals, compileTemplate, computeFileSourceHash, configurePricing, createFilePromptRepository, createGoogleProvider, createHookRunner, createOpenAIProvider, createZeroUsage, defineProgressivePattern, detectProviderType, determineResultStatus, getDuration, getEffectivePricing, getFileSourceDisplayInfo, getFileSourcesDisplayInfo, getModelPricing, getPricingConfig, inferMediaType, isAbortError, mapExecution, mapExecutionResult, mergeUsages, normalizeError, resetPricingConfig, resolveFileSource, resolveFileSourcesInInput, scanForFileSources, validateModelPricing, validatePricingConfig, validateProviderPricing, withValidation };
|
|
1506
|
+
export { ANTHROPIC_PRICING, AgtlantisError, type AgtlantisErrorCode, type AgtlantisErrorOptions, BaseProvider, CalculateCostParams, type CompleteEvent, CompletionEvent, ConfigurationError, ConfigurationErrorCode, type ConfigurationErrorOptions, CostResult, DEFAULT_FALLBACK_PRICING, DEFAULT_MAX_SIZE, DEFAULT_PRICING_CONFIG, ERRORS, EXTENSION_TO_MIME, type EffectivePricingResult, ErrorEvent, ExecutionError, ExecutionErrorCode, type ExecutionErrorOptions, ExecutionStatus, ExtractResult, FileCache, FileError, FileErrorCode, type FileErrorOptions, FileManager, FileManagerOptions, FilePromptRepository, type FilePromptRepositoryOptions, FileSource, type FileSourceDisplayInfo, type FileSystem, type FoundFileSource, GOOGLE_PRICING, GenerationOptions, GoogleFileManager, GoogleProvider, type GoogleProviderConfig, type HarmBlockThreshold, type HarmCategory, type HookRunner, InMemoryFileCache, type InMemoryFileCacheOptions, Logger, ModelPricing, NoOpFileManager, OPENAI_PRICING, type OpenAIProviderConfig, PricingConfig, type PricingSource, type ProgressEvent, ProgressivePattern, type ProgressiveStreamOptions, PromptError, PromptErrorCode, type PromptErrorOptions, PromptIOError, PromptInvalidFormatError, PromptNotFoundError, type PromptRenderer, type PromptRepository, PromptTemplate, type PromptTemplateData, PromptTemplateError, ProviderPricing, ProviderType, type ReadonlyValidationHistory, type ReplaceResult, type ResolveOptions, type SafetySetting, SessionEvent, SessionStreamGeneratorFn, SimpleExecution, SimpleExecutionHost, SimpleResult, SimpleSession, StreamTextParams, StreamingExecution, StreamingExecutionHost, StreamingResult, StreamingSession, TOOL_CALLING_PROTOCOL, UploadedFile, type ValidationAttempt, ValidationErrorCode, ValidationExhaustedError, ValidationHistory, type ValidationOptions, type ValidationResult, calculateCost, calculateCostFromUsage, calculateTotalCost, combineSignals, compileTemplate, computeFileSourceHash, configurePricing, createFilePromptRepository, createGoogleProvider, createHookRunner, createOpenAIProvider, createZeroUsage, defineProgressivePattern, detectProviderType, determineResultStatus, getDuration, getEffectivePricing, getFileSourceDisplayInfo, getFileSourcesDisplayInfo, getModelPricing, getPricingConfig, inferMediaType, isAbortError, mapExecution, mapExecutionResult, mergeUsages, normalizeError, resetPricingConfig, resolveFileSource, resolveFileSourcesInInput, scanForFileSources, validateModelPricing, validatePricingConfig, validateProviderPricing, withValidation };
|