@axlsdk/axl 0.25.2 → 0.26.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/README.md +36 -9
- package/dist/{chunk-PJROX3XU.js → chunk-SBQL47BB.js} +40 -25
- package/dist/chunk-SBQL47BB.js.map +1 -0
- package/dist/index.cjs +12827 -10877
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1636 -44
- package/dist/index.d.ts +1636 -44
- package/dist/index.js +12784 -10855
- package/dist/index.js.map +1 -1
- package/dist/{span-manager-L4H6ZCRQ.js → span-manager-I4JFIB5F.js} +2 -2
- package/package.json +2 -2
- package/dist/chunk-PJROX3XU.js.map +0 -1
- /package/dist/{span-manager-L4H6ZCRQ.js.map → span-manager-I4JFIB5F.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -273,6 +273,17 @@ type ExternalOperationReport = {
|
|
|
273
273
|
* second call.
|
|
274
274
|
*/
|
|
275
275
|
setCost(amountUsd: number, usage?: Partial<AccountingUsage>): void;
|
|
276
|
+
/**
|
|
277
|
+
* Snapshot caller-supplied JSON evidence. Repeated calls merge the supplied
|
|
278
|
+
* request and response independently; omitted fields retain prior values.
|
|
279
|
+
* Capture is diagnostic only: invalid payloads degrade its journal record
|
|
280
|
+
* without changing this operation's result or charge. Outside a capturing
|
|
281
|
+
* accounting scope this is a safe no-op.
|
|
282
|
+
*/
|
|
283
|
+
capture(payload: {
|
|
284
|
+
request?: unknown;
|
|
285
|
+
response?: unknown;
|
|
286
|
+
}): void;
|
|
276
287
|
};
|
|
277
288
|
/** Descriptor for `withExternalOperation` / {@link externalOperation}. */
|
|
278
289
|
type ExternalOperationDescriptor = {
|
|
@@ -503,6 +514,14 @@ type StreamChunk = {
|
|
|
503
514
|
arguments?: string;
|
|
504
515
|
} | {
|
|
505
516
|
type: 'done';
|
|
517
|
+
/** Provider-neutral finish reason, when the wire reports one. */
|
|
518
|
+
finishReason?: FinishReason;
|
|
519
|
+
/** Exact vendor finish reason or status used to derive `finishReason`. */
|
|
520
|
+
rawFinishReason?: string;
|
|
521
|
+
/** Response identifier reported by the provider. Never inferred from the request. */
|
|
522
|
+
responseId?: string;
|
|
523
|
+
/** Model reported in the response. Never inferred from the requested model. */
|
|
524
|
+
responseModel?: string;
|
|
506
525
|
usage?: {
|
|
507
526
|
prompt_tokens: number;
|
|
508
527
|
completion_tokens: number;
|
|
@@ -2027,11 +2046,21 @@ type CallTiming = {
|
|
|
2027
2046
|
*/
|
|
2028
2047
|
wireMs: number;
|
|
2029
2048
|
};
|
|
2049
|
+
/** Provider-neutral reason a model call ended. Unrecognized wire reasons map to `other`. */
|
|
2050
|
+
type FinishReason = 'stop' | 'length' | 'tool_calls' | 'content_filter' | 'refusal' | 'other';
|
|
2030
2051
|
/** Provider response */
|
|
2031
2052
|
type ProviderResponse = {
|
|
2032
2053
|
content: string;
|
|
2033
2054
|
thinking_content?: string;
|
|
2034
2055
|
tool_calls?: ToolCallMessage[];
|
|
2056
|
+
/** Provider-neutral finish reason, when the wire reports a terminal reason or status. */
|
|
2057
|
+
finishReason?: FinishReason;
|
|
2058
|
+
/** Exact vendor finish reason or status used to derive `finishReason`. */
|
|
2059
|
+
rawFinishReason?: string;
|
|
2060
|
+
/** Response identifier reported by the provider. Never inferred from the request. */
|
|
2061
|
+
responseId?: string;
|
|
2062
|
+
/** Model reported in the response. Never inferred from the requested model. */
|
|
2063
|
+
responseModel?: string;
|
|
2035
2064
|
usage?: {
|
|
2036
2065
|
prompt_tokens: number;
|
|
2037
2066
|
completion_tokens: number;
|
|
@@ -3762,9 +3791,10 @@ type OpenAIChatMessage = {
|
|
|
3762
3791
|
}>;
|
|
3763
3792
|
};
|
|
3764
3793
|
type OpenAIChatResponse = {
|
|
3794
|
+
id?: string;
|
|
3765
3795
|
choices: Array<{
|
|
3766
3796
|
message: OpenAIChatMessage;
|
|
3767
|
-
finish_reason
|
|
3797
|
+
finish_reason?: string | null;
|
|
3768
3798
|
}>;
|
|
3769
3799
|
usage?: OpenAIUsage;
|
|
3770
3800
|
} & OpenAIModelResponse;
|
|
@@ -3989,21 +4019,37 @@ type TelemetryConfig = {
|
|
|
3989
4019
|
tracerProvider?: unknown;
|
|
3990
4020
|
/** Tracer name. Defaults to 'axl'. */
|
|
3991
4021
|
serviceName?: string;
|
|
4022
|
+
/** Opt in to GenAI message and tool content on spans. Defaults to false. Trace redaction wins. */
|
|
4023
|
+
captureContent?: boolean;
|
|
4024
|
+
/**
|
|
4025
|
+
* Per-attribute UTF-8 bound for opted-in content. Defaults to 64 KiB. Larger
|
|
4026
|
+
* attributes are omitted whole and named in `axl.gen_ai.content_omitted`.
|
|
4027
|
+
*/
|
|
4028
|
+
maxContentAttributeBytes?: number;
|
|
3992
4029
|
};
|
|
4030
|
+
/** OpenTelemetry-compatible scalar and native array attribute values. */
|
|
4031
|
+
type SpanAttributeValue = string | number | boolean | string[] | number[] | boolean[];
|
|
4032
|
+
type SpanAttributes = Record<string, SpanAttributeValue>;
|
|
3993
4033
|
/** A handle to an active span for adding events and attributes. */
|
|
3994
4034
|
interface SpanHandle {
|
|
3995
|
-
setAttribute(key: string, value:
|
|
3996
|
-
addEvent(name: string, attributes?:
|
|
4035
|
+
setAttribute(key: string, value: SpanAttributeValue): void;
|
|
4036
|
+
addEvent(name: string, attributes?: SpanAttributes): void;
|
|
3997
4037
|
setStatus(code: 'unset' | 'ok' | 'error', message?: string): void;
|
|
3998
4038
|
end(): void;
|
|
3999
4039
|
}
|
|
4000
4040
|
/** Manages span creation and context propagation. */
|
|
4001
4041
|
interface SpanManager {
|
|
4002
4042
|
/** Wrap an async function in a span. Child spans created inside auto-nest. */
|
|
4003
|
-
withSpanAsync<T>(name: string, attributes:
|
|
4043
|
+
withSpanAsync<T>(name: string, attributes: SpanAttributes, fn: (span: SpanHandle) => Promise<T>): Promise<T>;
|
|
4044
|
+
/** Start a span whose lifetime is controlled by the caller (for streamed calls). Optional for legacy managers. */
|
|
4045
|
+
startSpan?(name: string, attributes: SpanAttributes, options?: {
|
|
4046
|
+
kind?: 'client';
|
|
4047
|
+
/** Epoch milliseconds at logical call initiation. */
|
|
4048
|
+
startTime?: number;
|
|
4049
|
+
}): SpanHandle;
|
|
4004
4050
|
/** Add an event to the currently active span (if any). */
|
|
4005
|
-
addEventToActiveSpan(name: string, attributes?:
|
|
4006
|
-
/**
|
|
4051
|
+
addEventToActiveSpan(name: string, attributes?: SpanAttributes): void;
|
|
4052
|
+
/** Release manager-owned resources. External tracer providers remain application-owned. */
|
|
4007
4053
|
shutdown(): Promise<void>;
|
|
4008
4054
|
}
|
|
4009
4055
|
|
|
@@ -5517,8 +5563,14 @@ type CapturedMessage = {
|
|
|
5517
5563
|
/** Bounded descriptor for the non-text parts, when there were any. */
|
|
5518
5564
|
input?: ModelInputDescriptor;
|
|
5519
5565
|
name?: string;
|
|
5566
|
+
/** Agent provenance carried by the provider-neutral conversation. */
|
|
5567
|
+
agent?: ChatMessage['agent'];
|
|
5568
|
+
/** Runtime provenance that can affect provider prompt-cache placement. */
|
|
5569
|
+
origin?: ChatMessage['origin'];
|
|
5520
5570
|
tool_calls?: ToolCallMessage[];
|
|
5521
5571
|
tool_call_id?: string;
|
|
5572
|
+
/** Opaque response-derived continuity data required for later model turns. */
|
|
5573
|
+
providerMetadata?: Record<string, unknown>;
|
|
5522
5574
|
};
|
|
5523
5575
|
/** The provider-neutral request, snapshotted by value at invocation. */
|
|
5524
5576
|
type CapturedRequest = {
|
|
@@ -5528,6 +5580,7 @@ type CapturedRequest = {
|
|
|
5528
5580
|
name: string;
|
|
5529
5581
|
description?: string;
|
|
5530
5582
|
parameters: unknown;
|
|
5583
|
+
strict?: boolean;
|
|
5531
5584
|
}>;
|
|
5532
5585
|
responseFormat?: ResponseFormat;
|
|
5533
5586
|
/** Allowlisted call options only. Never signals, functions or credentials. */
|
|
@@ -5548,7 +5601,13 @@ type CapturedRequest = {
|
|
|
5548
5601
|
/** What came back, projected to the fields that explain a turn. */
|
|
5549
5602
|
type CapturedResponse = {
|
|
5550
5603
|
content: string;
|
|
5604
|
+
thinking?: string;
|
|
5551
5605
|
tool_calls?: ToolCallMessage[];
|
|
5606
|
+
finishReason?: ProviderResponse['finishReason'];
|
|
5607
|
+
rawFinishReason?: string;
|
|
5608
|
+
responseId?: string;
|
|
5609
|
+
responseModel?: string;
|
|
5610
|
+
providerMetadata?: Record<string, unknown>;
|
|
5552
5611
|
usage?: ProviderResponse['usage'];
|
|
5553
5612
|
cost?: number;
|
|
5554
5613
|
costProvenance?: string;
|
|
@@ -5560,6 +5619,15 @@ type CapturedError = {
|
|
|
5560
5619
|
message: string;
|
|
5561
5620
|
code?: string;
|
|
5562
5621
|
status?: number;
|
|
5622
|
+
retryable?: boolean;
|
|
5623
|
+
requestId?: string;
|
|
5624
|
+
retryAfterMs?: number;
|
|
5625
|
+
};
|
|
5626
|
+
/** Output observed before a stream ended without a terminal response. */
|
|
5627
|
+
type CapturedPartialResponse = {
|
|
5628
|
+
content?: string;
|
|
5629
|
+
thinking?: string;
|
|
5630
|
+
tool_calls?: ToolCallMessage[];
|
|
5563
5631
|
};
|
|
5564
5632
|
/** The gate that rejected the previous turn and the correction fed back in. */
|
|
5565
5633
|
type CapturedCorrection = {
|
|
@@ -5574,30 +5642,47 @@ type CapturedPhase = 'start' | 'attempt' | 'end';
|
|
|
5574
5642
|
* One JSONL line. `v: 1` is the codec version; `@axlsdk/eval` re-exports this
|
|
5575
5643
|
* as `RequestRecord` and owns the bundle/import validation around it.
|
|
5576
5644
|
*
|
|
5577
|
-
* A `start`
|
|
5578
|
-
*
|
|
5579
|
-
*
|
|
5580
|
-
*
|
|
5581
|
-
*
|
|
5645
|
+
* A model `start` carries the request; `attempt` marks another transport
|
|
5646
|
+
* attempt for that same logical model call; `end` carries its response/error.
|
|
5647
|
+
* An external `start` carries its name after admission; its `end` carries the
|
|
5648
|
+
* caller's optional JSON evidence and reported settlement. A call that never
|
|
5649
|
+
* returns leaves a start without an end.
|
|
5582
5650
|
*/
|
|
5583
|
-
type
|
|
5651
|
+
type CapturedRecordBase = {
|
|
5584
5652
|
v: 1;
|
|
5585
5653
|
phase: CapturedPhase;
|
|
5586
5654
|
operationId: string;
|
|
5587
|
-
kind: 'chat' | 'stream';
|
|
5588
5655
|
caseIndex?: number;
|
|
5589
5656
|
scorer?: string;
|
|
5590
5657
|
executionId?: string;
|
|
5658
|
+
workflow?: string;
|
|
5659
|
+
agent?: string;
|
|
5660
|
+
depth?: number;
|
|
5661
|
+
sessionId?: string;
|
|
5662
|
+
purpose?: 'ask' | 'summary' | 'judge' | 'direct';
|
|
5591
5663
|
askId?: string;
|
|
5592
5664
|
parentAskId?: string;
|
|
5593
5665
|
turn?: number;
|
|
5594
5666
|
retryReason?: 'schema' | 'validate' | 'guardrail';
|
|
5667
|
+
rejectedCallId?: string;
|
|
5668
|
+
/** Dispatch and settlement timestamps; absent in older v1 journals. */
|
|
5669
|
+
startedAt?: string;
|
|
5670
|
+
endedAt?: string;
|
|
5671
|
+
durationMs?: number;
|
|
5672
|
+
/** Failed provider timing, if available, without a success response. */
|
|
5673
|
+
timing?: ProviderResponse['timing'];
|
|
5595
5674
|
/** 1-indexed transport attempt this record describes. */
|
|
5596
5675
|
transportAttempts: number;
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5676
|
+
/** Structural settlement retained when an oversized end line becomes a stub. */
|
|
5677
|
+
outcomeStatus?: 'ok' | 'error' | 'aborted' | 'stalled' | 'consumer_closed' | 'unfinished';
|
|
5678
|
+
/** The following settlement fields are populated on oversized end stubs. */
|
|
5679
|
+
usage?: ProviderResponse['usage'] | Partial<AccountingUsage>;
|
|
5680
|
+
cost?: number;
|
|
5681
|
+
costProvenance?: string;
|
|
5682
|
+
finishReason?: ProviderResponse['finishReason'];
|
|
5683
|
+
rawFinishReason?: string;
|
|
5684
|
+
responseId?: string;
|
|
5685
|
+
responseModel?: string;
|
|
5601
5686
|
error?: CapturedError;
|
|
5602
5687
|
/**
|
|
5603
5688
|
* Why an operation ended without a response, when it ended deliberately.
|
|
@@ -5614,6 +5699,8 @@ type CapturedRequestRecord = {
|
|
|
5614
5699
|
redacted: boolean;
|
|
5615
5700
|
/** `true` when the record was replaced by a stub over `maxRecordBytes`. */
|
|
5616
5701
|
truncated: boolean;
|
|
5702
|
+
/** New v1 request projection retained opaque continuity data if present. */
|
|
5703
|
+
continuityCaptured?: true;
|
|
5617
5704
|
/** What could not be represented, e.g. `['media']`. */
|
|
5618
5705
|
omitted: string[];
|
|
5619
5706
|
/**
|
|
@@ -5630,10 +5717,41 @@ type CapturedRequestRecord = {
|
|
|
5630
5717
|
/** Encoded size of the record this stub replaced. Present only on stubs. */
|
|
5631
5718
|
bytes?: number;
|
|
5632
5719
|
};
|
|
5720
|
+
/** JSON values accepted from `ExternalOperationReport.capture()`. */
|
|
5721
|
+
type CapturedJsonValue = null | boolean | number | string | CapturedJsonValue[] | {
|
|
5722
|
+
[key: string]: CapturedJsonValue;
|
|
5723
|
+
};
|
|
5724
|
+
/** Model calls retain their existing required provider/model contract. */
|
|
5725
|
+
type CapturedModelRequestRecord = CapturedRecordBase & {
|
|
5726
|
+
kind: 'chat' | 'stream';
|
|
5727
|
+
provider: string;
|
|
5728
|
+
model: string;
|
|
5729
|
+
request?: CapturedRequest;
|
|
5730
|
+
response?: CapturedResponse;
|
|
5731
|
+
partial?: CapturedPartialResponse;
|
|
5732
|
+
name?: never;
|
|
5733
|
+
external?: never;
|
|
5734
|
+
};
|
|
5735
|
+
/** Caller-declared work has a name and no invented provider or model. */
|
|
5736
|
+
type CapturedExternalRequestRecord = CapturedRecordBase & {
|
|
5737
|
+
kind: 'external';
|
|
5738
|
+
name: string;
|
|
5739
|
+
/** Caller JSON, snapshotted when `report.capture()` was called. On the end line. */
|
|
5740
|
+
external?: {
|
|
5741
|
+
request?: CapturedJsonValue;
|
|
5742
|
+
response?: CapturedJsonValue;
|
|
5743
|
+
};
|
|
5744
|
+
provider?: never;
|
|
5745
|
+
model?: never;
|
|
5746
|
+
request?: never;
|
|
5747
|
+
response?: never;
|
|
5748
|
+
partial?: never;
|
|
5749
|
+
};
|
|
5750
|
+
type CapturedRequestRecord = CapturedModelRequestRecord | CapturedExternalRequestRecord;
|
|
5633
5751
|
/** A pointer from an eval item / scorer to one captured operation. */
|
|
5634
5752
|
type CapturedOperationRef = {
|
|
5635
5753
|
operationId: string;
|
|
5636
|
-
kind: 'chat' | 'stream';
|
|
5754
|
+
kind: 'chat' | 'stream' | 'external';
|
|
5637
5755
|
turn?: number;
|
|
5638
5756
|
attempt?: number;
|
|
5639
5757
|
status: 'recorded' | 'start_only' | 'truncated' | 'omitted';
|
|
@@ -5995,6 +6113,8 @@ declare class AxlRuntime extends EventEmitter {
|
|
|
5995
6113
|
/** Raw adapter → its scoped facade. Keyed weakly so a registry that drops an
|
|
5996
6114
|
* adapter does not pin it here. */
|
|
5997
6115
|
private scopedProviders;
|
|
6116
|
+
/** Validated at construction so a bad bound fails loudly before any call. */
|
|
6117
|
+
private readonly contentAttributeMaxBytes;
|
|
5998
6118
|
private transcriptionProviderRegistry;
|
|
5999
6119
|
private stateStore;
|
|
6000
6120
|
private executions;
|
|
@@ -6381,8 +6501,8 @@ declare class AxlRuntime extends EventEmitter {
|
|
|
6381
6501
|
* It forwards everything to the adapter — custom properties and accessors,
|
|
6382
6502
|
* class private-field methods, property writes, capability methods, ordinary
|
|
6383
6503
|
* `instanceof` — while routing `chat`/`stream` through accounting and budget
|
|
6384
|
-
* admission whenever a `trackOutcome` scope is active.
|
|
6385
|
-
*
|
|
6504
|
+
* admission whenever a `trackOutcome` scope is active. Optional runtime
|
|
6505
|
+
* telemetry also observes calls outside an accounting scope.
|
|
6386
6506
|
*
|
|
6387
6507
|
* Identity is stable per runtime per adapter (repeated calls return the same
|
|
6388
6508
|
* facade), but `resolveProvider(uri).provider === registeredInstance` is now
|
|
@@ -6677,6 +6797,1497 @@ declare class AxlRuntime extends EventEmitter {
|
|
|
6677
6797
|
private updateHandoffDuration;
|
|
6678
6798
|
}
|
|
6679
6799
|
|
|
6800
|
+
declare const modelSchema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
6801
|
+
v: z.ZodLiteral<2>;
|
|
6802
|
+
id: z.ZodString;
|
|
6803
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
6804
|
+
ask: "ask";
|
|
6805
|
+
summary: "summary";
|
|
6806
|
+
judge: "judge";
|
|
6807
|
+
direct: "direct";
|
|
6808
|
+
}>>;
|
|
6809
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
6810
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
6811
|
+
ids: z.ZodObject<{
|
|
6812
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
6813
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
6814
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
6815
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
6816
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
6817
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
6818
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
6819
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6820
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
6821
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
6822
|
+
}, z.core.$strict>;
|
|
6823
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
6824
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
6825
|
+
retryReason: z.ZodEnum<{
|
|
6826
|
+
schema: "schema";
|
|
6827
|
+
validate: "validate";
|
|
6828
|
+
guardrail: "guardrail";
|
|
6829
|
+
}>;
|
|
6830
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
6831
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
6832
|
+
stage: z.ZodEnum<{
|
|
6833
|
+
schema: "schema";
|
|
6834
|
+
validate: "validate";
|
|
6835
|
+
guardrail: "guardrail";
|
|
6836
|
+
}>;
|
|
6837
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6838
|
+
feedbackMessage: z.ZodString;
|
|
6839
|
+
}, z.core.$strict>>;
|
|
6840
|
+
}, z.core.$strict>>;
|
|
6841
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
6842
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
6843
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
6844
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
6845
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
6846
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
6847
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
6848
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
6849
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
6850
|
+
}, z.core.$strict>>;
|
|
6851
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
6852
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
6853
|
+
provider_reported: "provider_reported";
|
|
6854
|
+
price_table_estimate: "price_table_estimate";
|
|
6855
|
+
caller_reported: "caller_reported";
|
|
6856
|
+
adapter_reported: "adapter_reported";
|
|
6857
|
+
}>>;
|
|
6858
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
6859
|
+
captured: z.ZodObject<{
|
|
6860
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
6861
|
+
redacted: z.ZodBoolean;
|
|
6862
|
+
truncated: z.ZodBoolean;
|
|
6863
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6864
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
6865
|
+
replayable: z.ZodBoolean;
|
|
6866
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6867
|
+
}, z.core.$strict>;
|
|
6868
|
+
kind: z.ZodEnum<{
|
|
6869
|
+
chat: "chat";
|
|
6870
|
+
stream: "stream";
|
|
6871
|
+
}>;
|
|
6872
|
+
provider: z.ZodString;
|
|
6873
|
+
model: z.ZodString;
|
|
6874
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
6875
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
6876
|
+
role: z.ZodString;
|
|
6877
|
+
content: z.ZodNullable<z.ZodString>;
|
|
6878
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
6879
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6880
|
+
type: z.ZodLiteral<"text">;
|
|
6881
|
+
characters: z.ZodNumber;
|
|
6882
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6883
|
+
type: z.ZodLiteral<"image">;
|
|
6884
|
+
source: z.ZodEnum<{
|
|
6885
|
+
bytes: "bytes";
|
|
6886
|
+
base64: "base64";
|
|
6887
|
+
"provider-file": "provider-file";
|
|
6888
|
+
url: "url";
|
|
6889
|
+
}>;
|
|
6890
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
6891
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
6892
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
6893
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6894
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6895
|
+
type: z.ZodLiteral<"audio">;
|
|
6896
|
+
source: z.ZodEnum<{
|
|
6897
|
+
bytes: "bytes";
|
|
6898
|
+
base64: "base64";
|
|
6899
|
+
"provider-file": "provider-file";
|
|
6900
|
+
}>;
|
|
6901
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
6902
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
6903
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
6904
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6905
|
+
}, z.core.$strict>], "type">>;
|
|
6906
|
+
}, z.core.$strict>>;
|
|
6907
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6908
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
6909
|
+
origin: z.ZodOptional<z.ZodLiteral<"runtime">>;
|
|
6910
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6911
|
+
id: z.ZodString;
|
|
6912
|
+
type: z.ZodLiteral<"function">;
|
|
6913
|
+
function: z.ZodObject<{
|
|
6914
|
+
name: z.ZodString;
|
|
6915
|
+
arguments: z.ZodString;
|
|
6916
|
+
}, z.core.$strict>;
|
|
6917
|
+
}, z.core.$strict>>>;
|
|
6918
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
6919
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
6920
|
+
}, z.core.$strict>>;
|
|
6921
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6922
|
+
name: z.ZodString;
|
|
6923
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6924
|
+
parameters: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
6925
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
6926
|
+
}, z.core.$strict>>>;
|
|
6927
|
+
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6928
|
+
type: z.ZodLiteral<"text">;
|
|
6929
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6930
|
+
type: z.ZodLiteral<"json_object">;
|
|
6931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6932
|
+
type: z.ZodLiteral<"json_schema">;
|
|
6933
|
+
json_schema: z.ZodObject<{
|
|
6934
|
+
name: z.ZodString;
|
|
6935
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
6936
|
+
schema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
6937
|
+
}, z.core.$strict>;
|
|
6938
|
+
}, z.core.$strict>], "type">>;
|
|
6939
|
+
options: z.ZodObject<{
|
|
6940
|
+
model: z.ZodString;
|
|
6941
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
6942
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
6943
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
6944
|
+
thinkingBudget: z.ZodOptional<z.ZodNumber>;
|
|
6945
|
+
includeThoughts: z.ZodOptional<z.ZodBoolean>;
|
|
6946
|
+
toolChoice: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
6947
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6948
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
6949
|
+
}, z.core.$strict>;
|
|
6950
|
+
providerOptionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6951
|
+
}, z.core.$strict>>;
|
|
6952
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
6953
|
+
status: z.ZodLiteral<"ok">;
|
|
6954
|
+
response: z.ZodObject<{
|
|
6955
|
+
content: z.ZodString;
|
|
6956
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
6957
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6958
|
+
id: z.ZodString;
|
|
6959
|
+
type: z.ZodLiteral<"function">;
|
|
6960
|
+
function: z.ZodObject<{
|
|
6961
|
+
name: z.ZodString;
|
|
6962
|
+
arguments: z.ZodString;
|
|
6963
|
+
}, z.core.$strict>;
|
|
6964
|
+
}, z.core.$strict>>>;
|
|
6965
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
6966
|
+
length: "length";
|
|
6967
|
+
stop: "stop";
|
|
6968
|
+
tool_calls: "tool_calls";
|
|
6969
|
+
content_filter: "content_filter";
|
|
6970
|
+
refusal: "refusal";
|
|
6971
|
+
other: "other";
|
|
6972
|
+
}>>;
|
|
6973
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
6974
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
6975
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
6976
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
6977
|
+
}, z.core.$strict>;
|
|
6978
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6979
|
+
status: z.ZodLiteral<"ok">;
|
|
6980
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
6981
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
6982
|
+
length: "length";
|
|
6983
|
+
stop: "stop";
|
|
6984
|
+
tool_calls: "tool_calls";
|
|
6985
|
+
content_filter: "content_filter";
|
|
6986
|
+
refusal: "refusal";
|
|
6987
|
+
other: "other";
|
|
6988
|
+
}>>;
|
|
6989
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
6990
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
6991
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
6992
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6993
|
+
status: z.ZodLiteral<"error">;
|
|
6994
|
+
error: z.ZodObject<{
|
|
6995
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6996
|
+
message: z.ZodString;
|
|
6997
|
+
code: z.ZodOptional<z.ZodString>;
|
|
6998
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
6999
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7000
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7001
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7002
|
+
}, z.core.$strict>;
|
|
7003
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7004
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7005
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7006
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7007
|
+
id: z.ZodString;
|
|
7008
|
+
type: z.ZodLiteral<"function">;
|
|
7009
|
+
function: z.ZodObject<{
|
|
7010
|
+
name: z.ZodString;
|
|
7011
|
+
arguments: z.ZodString;
|
|
7012
|
+
}, z.core.$strict>;
|
|
7013
|
+
}, z.core.$strict>>>;
|
|
7014
|
+
}, z.core.$strict>>;
|
|
7015
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7016
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7017
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7018
|
+
status: z.ZodLiteral<"error">;
|
|
7019
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7020
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7021
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7022
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7023
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7024
|
+
id: z.ZodString;
|
|
7025
|
+
type: z.ZodLiteral<"function">;
|
|
7026
|
+
function: z.ZodObject<{
|
|
7027
|
+
name: z.ZodString;
|
|
7028
|
+
arguments: z.ZodString;
|
|
7029
|
+
}, z.core.$strict>;
|
|
7030
|
+
}, z.core.$strict>>>;
|
|
7031
|
+
}, z.core.$strict>>;
|
|
7032
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7033
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7034
|
+
status: z.ZodEnum<{
|
|
7035
|
+
aborted: "aborted";
|
|
7036
|
+
stalled: "stalled";
|
|
7037
|
+
consumer_closed: "consumer_closed";
|
|
7038
|
+
}>;
|
|
7039
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7040
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7041
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7042
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7043
|
+
id: z.ZodString;
|
|
7044
|
+
type: z.ZodLiteral<"function">;
|
|
7045
|
+
function: z.ZodObject<{
|
|
7046
|
+
name: z.ZodString;
|
|
7047
|
+
arguments: z.ZodString;
|
|
7048
|
+
}, z.core.$strict>;
|
|
7049
|
+
}, z.core.$strict>>>;
|
|
7050
|
+
}, z.core.$strict>>;
|
|
7051
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7052
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7053
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7054
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7055
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7056
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7057
|
+
}, z.core.$strict>]>;
|
|
7058
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7059
|
+
prompt_tokens: z.ZodNumber;
|
|
7060
|
+
completion_tokens: z.ZodNumber;
|
|
7061
|
+
total_tokens: z.ZodNumber;
|
|
7062
|
+
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7063
|
+
cached_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7064
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7065
|
+
audio_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7066
|
+
audio_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7067
|
+
}, z.core.$strict>>;
|
|
7068
|
+
}, z.core.$strict>>;
|
|
7069
|
+
declare const externalSchema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
7070
|
+
v: z.ZodLiteral<2>;
|
|
7071
|
+
id: z.ZodString;
|
|
7072
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7073
|
+
ask: "ask";
|
|
7074
|
+
summary: "summary";
|
|
7075
|
+
judge: "judge";
|
|
7076
|
+
direct: "direct";
|
|
7077
|
+
}>>;
|
|
7078
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7079
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7080
|
+
ids: z.ZodObject<{
|
|
7081
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7082
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7083
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7084
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7085
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7086
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7087
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7088
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7089
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7090
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7091
|
+
}, z.core.$strict>;
|
|
7092
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
7093
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
7094
|
+
retryReason: z.ZodEnum<{
|
|
7095
|
+
schema: "schema";
|
|
7096
|
+
validate: "validate";
|
|
7097
|
+
guardrail: "guardrail";
|
|
7098
|
+
}>;
|
|
7099
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7100
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
7101
|
+
stage: z.ZodEnum<{
|
|
7102
|
+
schema: "schema";
|
|
7103
|
+
validate: "validate";
|
|
7104
|
+
guardrail: "guardrail";
|
|
7105
|
+
}>;
|
|
7106
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7107
|
+
feedbackMessage: z.ZodString;
|
|
7108
|
+
}, z.core.$strict>>;
|
|
7109
|
+
}, z.core.$strict>>;
|
|
7110
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7111
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7112
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7113
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7114
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7115
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7116
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7117
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7118
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7119
|
+
}, z.core.$strict>>;
|
|
7120
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7121
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
7122
|
+
captured: z.ZodObject<{
|
|
7123
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
7124
|
+
redacted: z.ZodBoolean;
|
|
7125
|
+
truncated: z.ZodBoolean;
|
|
7126
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7127
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
7128
|
+
replayable: z.ZodBoolean;
|
|
7129
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7130
|
+
}, z.core.$strict>;
|
|
7131
|
+
kind: z.ZodLiteral<"external">;
|
|
7132
|
+
name: z.ZodString;
|
|
7133
|
+
costProvenance: z.ZodOptional<z.ZodLiteral<"caller_reported">>;
|
|
7134
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
7135
|
+
request: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7136
|
+
response: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7137
|
+
}, z.core.$strict>>;
|
|
7138
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
7139
|
+
status: z.ZodLiteral<"ok">;
|
|
7140
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7142
|
+
status: z.ZodLiteral<"error">;
|
|
7143
|
+
error: z.ZodObject<{
|
|
7144
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7145
|
+
message: z.ZodString;
|
|
7146
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7147
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7148
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7149
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7150
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7151
|
+
}, z.core.$strict>;
|
|
7152
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7153
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7155
|
+
status: z.ZodLiteral<"error">;
|
|
7156
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7157
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7159
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7160
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7161
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7162
|
+
}, z.core.$strict>]>;
|
|
7163
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7164
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7165
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7166
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
7167
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
7168
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
7169
|
+
audioSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7170
|
+
}, z.core.$strict>>;
|
|
7171
|
+
}, z.core.$strict>>;
|
|
7172
|
+
/** Validated v2 model call; historical v1 journals are read through foldJournal. */
|
|
7173
|
+
declare const modelCallRecordSchema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
7174
|
+
v: z.ZodLiteral<2>;
|
|
7175
|
+
id: z.ZodString;
|
|
7176
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7177
|
+
ask: "ask";
|
|
7178
|
+
summary: "summary";
|
|
7179
|
+
judge: "judge";
|
|
7180
|
+
direct: "direct";
|
|
7181
|
+
}>>;
|
|
7182
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7183
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7184
|
+
ids: z.ZodObject<{
|
|
7185
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7186
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7187
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7188
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7189
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7190
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7191
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7192
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7193
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7194
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7195
|
+
}, z.core.$strict>;
|
|
7196
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
7197
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
7198
|
+
retryReason: z.ZodEnum<{
|
|
7199
|
+
schema: "schema";
|
|
7200
|
+
validate: "validate";
|
|
7201
|
+
guardrail: "guardrail";
|
|
7202
|
+
}>;
|
|
7203
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7204
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
7205
|
+
stage: z.ZodEnum<{
|
|
7206
|
+
schema: "schema";
|
|
7207
|
+
validate: "validate";
|
|
7208
|
+
guardrail: "guardrail";
|
|
7209
|
+
}>;
|
|
7210
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7211
|
+
feedbackMessage: z.ZodString;
|
|
7212
|
+
}, z.core.$strict>>;
|
|
7213
|
+
}, z.core.$strict>>;
|
|
7214
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7215
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7216
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7217
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7218
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7219
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7220
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7221
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7222
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7223
|
+
}, z.core.$strict>>;
|
|
7224
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7225
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
7226
|
+
provider_reported: "provider_reported";
|
|
7227
|
+
price_table_estimate: "price_table_estimate";
|
|
7228
|
+
caller_reported: "caller_reported";
|
|
7229
|
+
adapter_reported: "adapter_reported";
|
|
7230
|
+
}>>;
|
|
7231
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
7232
|
+
captured: z.ZodObject<{
|
|
7233
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
7234
|
+
redacted: z.ZodBoolean;
|
|
7235
|
+
truncated: z.ZodBoolean;
|
|
7236
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7237
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
7238
|
+
replayable: z.ZodBoolean;
|
|
7239
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7240
|
+
}, z.core.$strict>;
|
|
7241
|
+
kind: z.ZodEnum<{
|
|
7242
|
+
chat: "chat";
|
|
7243
|
+
stream: "stream";
|
|
7244
|
+
}>;
|
|
7245
|
+
provider: z.ZodString;
|
|
7246
|
+
model: z.ZodString;
|
|
7247
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
7248
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
7249
|
+
role: z.ZodString;
|
|
7250
|
+
content: z.ZodNullable<z.ZodString>;
|
|
7251
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
7252
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7253
|
+
type: z.ZodLiteral<"text">;
|
|
7254
|
+
characters: z.ZodNumber;
|
|
7255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7256
|
+
type: z.ZodLiteral<"image">;
|
|
7257
|
+
source: z.ZodEnum<{
|
|
7258
|
+
bytes: "bytes";
|
|
7259
|
+
base64: "base64";
|
|
7260
|
+
"provider-file": "provider-file";
|
|
7261
|
+
url: "url";
|
|
7262
|
+
}>;
|
|
7263
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
7264
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
7265
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
7266
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7268
|
+
type: z.ZodLiteral<"audio">;
|
|
7269
|
+
source: z.ZodEnum<{
|
|
7270
|
+
bytes: "bytes";
|
|
7271
|
+
base64: "base64";
|
|
7272
|
+
"provider-file": "provider-file";
|
|
7273
|
+
}>;
|
|
7274
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
7275
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
7276
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
7277
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7278
|
+
}, z.core.$strict>], "type">>;
|
|
7279
|
+
}, z.core.$strict>>;
|
|
7280
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7281
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7282
|
+
origin: z.ZodOptional<z.ZodLiteral<"runtime">>;
|
|
7283
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7284
|
+
id: z.ZodString;
|
|
7285
|
+
type: z.ZodLiteral<"function">;
|
|
7286
|
+
function: z.ZodObject<{
|
|
7287
|
+
name: z.ZodString;
|
|
7288
|
+
arguments: z.ZodString;
|
|
7289
|
+
}, z.core.$strict>;
|
|
7290
|
+
}, z.core.$strict>>>;
|
|
7291
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
7292
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
7293
|
+
}, z.core.$strict>>;
|
|
7294
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7295
|
+
name: z.ZodString;
|
|
7296
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7297
|
+
parameters: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
7298
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
7299
|
+
}, z.core.$strict>>>;
|
|
7300
|
+
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7301
|
+
type: z.ZodLiteral<"text">;
|
|
7302
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7303
|
+
type: z.ZodLiteral<"json_object">;
|
|
7304
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7305
|
+
type: z.ZodLiteral<"json_schema">;
|
|
7306
|
+
json_schema: z.ZodObject<{
|
|
7307
|
+
name: z.ZodString;
|
|
7308
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
7309
|
+
schema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
7310
|
+
}, z.core.$strict>;
|
|
7311
|
+
}, z.core.$strict>], "type">>;
|
|
7312
|
+
options: z.ZodObject<{
|
|
7313
|
+
model: z.ZodString;
|
|
7314
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
7315
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
7316
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
7317
|
+
thinkingBudget: z.ZodOptional<z.ZodNumber>;
|
|
7318
|
+
includeThoughts: z.ZodOptional<z.ZodBoolean>;
|
|
7319
|
+
toolChoice: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7320
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7321
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
7322
|
+
}, z.core.$strict>;
|
|
7323
|
+
providerOptionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7324
|
+
}, z.core.$strict>>;
|
|
7325
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
7326
|
+
status: z.ZodLiteral<"ok">;
|
|
7327
|
+
response: z.ZodObject<{
|
|
7328
|
+
content: z.ZodString;
|
|
7329
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7330
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7331
|
+
id: z.ZodString;
|
|
7332
|
+
type: z.ZodLiteral<"function">;
|
|
7333
|
+
function: z.ZodObject<{
|
|
7334
|
+
name: z.ZodString;
|
|
7335
|
+
arguments: z.ZodString;
|
|
7336
|
+
}, z.core.$strict>;
|
|
7337
|
+
}, z.core.$strict>>>;
|
|
7338
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
7339
|
+
length: "length";
|
|
7340
|
+
stop: "stop";
|
|
7341
|
+
tool_calls: "tool_calls";
|
|
7342
|
+
content_filter: "content_filter";
|
|
7343
|
+
refusal: "refusal";
|
|
7344
|
+
other: "other";
|
|
7345
|
+
}>>;
|
|
7346
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
7347
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7348
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
7349
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
7350
|
+
}, z.core.$strict>;
|
|
7351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7352
|
+
status: z.ZodLiteral<"ok">;
|
|
7353
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7354
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
7355
|
+
length: "length";
|
|
7356
|
+
stop: "stop";
|
|
7357
|
+
tool_calls: "tool_calls";
|
|
7358
|
+
content_filter: "content_filter";
|
|
7359
|
+
refusal: "refusal";
|
|
7360
|
+
other: "other";
|
|
7361
|
+
}>>;
|
|
7362
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
7363
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7364
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
7365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7366
|
+
status: z.ZodLiteral<"error">;
|
|
7367
|
+
error: z.ZodObject<{
|
|
7368
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7369
|
+
message: z.ZodString;
|
|
7370
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7371
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7372
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7373
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7374
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7375
|
+
}, z.core.$strict>;
|
|
7376
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7377
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7378
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7379
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7380
|
+
id: z.ZodString;
|
|
7381
|
+
type: z.ZodLiteral<"function">;
|
|
7382
|
+
function: z.ZodObject<{
|
|
7383
|
+
name: z.ZodString;
|
|
7384
|
+
arguments: z.ZodString;
|
|
7385
|
+
}, z.core.$strict>;
|
|
7386
|
+
}, z.core.$strict>>>;
|
|
7387
|
+
}, z.core.$strict>>;
|
|
7388
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7389
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7391
|
+
status: z.ZodLiteral<"error">;
|
|
7392
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7393
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7394
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7395
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7396
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7397
|
+
id: z.ZodString;
|
|
7398
|
+
type: z.ZodLiteral<"function">;
|
|
7399
|
+
function: z.ZodObject<{
|
|
7400
|
+
name: z.ZodString;
|
|
7401
|
+
arguments: z.ZodString;
|
|
7402
|
+
}, z.core.$strict>;
|
|
7403
|
+
}, z.core.$strict>>>;
|
|
7404
|
+
}, z.core.$strict>>;
|
|
7405
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7407
|
+
status: z.ZodEnum<{
|
|
7408
|
+
aborted: "aborted";
|
|
7409
|
+
stalled: "stalled";
|
|
7410
|
+
consumer_closed: "consumer_closed";
|
|
7411
|
+
}>;
|
|
7412
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7413
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7414
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7415
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7416
|
+
id: z.ZodString;
|
|
7417
|
+
type: z.ZodLiteral<"function">;
|
|
7418
|
+
function: z.ZodObject<{
|
|
7419
|
+
name: z.ZodString;
|
|
7420
|
+
arguments: z.ZodString;
|
|
7421
|
+
}, z.core.$strict>;
|
|
7422
|
+
}, z.core.$strict>>>;
|
|
7423
|
+
}, z.core.$strict>>;
|
|
7424
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7425
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7427
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7428
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7429
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7430
|
+
}, z.core.$strict>]>;
|
|
7431
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7432
|
+
prompt_tokens: z.ZodNumber;
|
|
7433
|
+
completion_tokens: z.ZodNumber;
|
|
7434
|
+
total_tokens: z.ZodNumber;
|
|
7435
|
+
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7436
|
+
cached_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7437
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7438
|
+
audio_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7439
|
+
audio_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7440
|
+
}, z.core.$strict>>;
|
|
7441
|
+
}, z.core.$strict>>;
|
|
7442
|
+
declare const externalOperationRecordSchema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
7443
|
+
v: z.ZodLiteral<2>;
|
|
7444
|
+
id: z.ZodString;
|
|
7445
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7446
|
+
ask: "ask";
|
|
7447
|
+
summary: "summary";
|
|
7448
|
+
judge: "judge";
|
|
7449
|
+
direct: "direct";
|
|
7450
|
+
}>>;
|
|
7451
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7452
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7453
|
+
ids: z.ZodObject<{
|
|
7454
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7455
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7456
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7457
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7458
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7459
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7460
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7461
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7462
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7463
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7464
|
+
}, z.core.$strict>;
|
|
7465
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
7466
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
7467
|
+
retryReason: z.ZodEnum<{
|
|
7468
|
+
schema: "schema";
|
|
7469
|
+
validate: "validate";
|
|
7470
|
+
guardrail: "guardrail";
|
|
7471
|
+
}>;
|
|
7472
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7473
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
7474
|
+
stage: z.ZodEnum<{
|
|
7475
|
+
schema: "schema";
|
|
7476
|
+
validate: "validate";
|
|
7477
|
+
guardrail: "guardrail";
|
|
7478
|
+
}>;
|
|
7479
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7480
|
+
feedbackMessage: z.ZodString;
|
|
7481
|
+
}, z.core.$strict>>;
|
|
7482
|
+
}, z.core.$strict>>;
|
|
7483
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7484
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7485
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7486
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7487
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7488
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7489
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7490
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7491
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7492
|
+
}, z.core.$strict>>;
|
|
7493
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7494
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
7495
|
+
captured: z.ZodObject<{
|
|
7496
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
7497
|
+
redacted: z.ZodBoolean;
|
|
7498
|
+
truncated: z.ZodBoolean;
|
|
7499
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7500
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
7501
|
+
replayable: z.ZodBoolean;
|
|
7502
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7503
|
+
}, z.core.$strict>;
|
|
7504
|
+
kind: z.ZodLiteral<"external">;
|
|
7505
|
+
name: z.ZodString;
|
|
7506
|
+
costProvenance: z.ZodOptional<z.ZodLiteral<"caller_reported">>;
|
|
7507
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
7508
|
+
request: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7509
|
+
response: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7510
|
+
}, z.core.$strict>>;
|
|
7511
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
7512
|
+
status: z.ZodLiteral<"ok">;
|
|
7513
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7514
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7515
|
+
status: z.ZodLiteral<"error">;
|
|
7516
|
+
error: z.ZodObject<{
|
|
7517
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7518
|
+
message: z.ZodString;
|
|
7519
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7520
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7521
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7522
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7523
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7524
|
+
}, z.core.$strict>;
|
|
7525
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7526
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7527
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7528
|
+
status: z.ZodLiteral<"error">;
|
|
7529
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7530
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7531
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7532
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7533
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7534
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7535
|
+
}, z.core.$strict>]>;
|
|
7536
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7537
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7538
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7539
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
7540
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
7541
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
7542
|
+
audioSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7543
|
+
}, z.core.$strict>>;
|
|
7544
|
+
}, z.core.$strict>>;
|
|
7545
|
+
declare const foldedOperationRecordSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
7546
|
+
v: z.ZodLiteral<2>;
|
|
7547
|
+
id: z.ZodString;
|
|
7548
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7549
|
+
ask: "ask";
|
|
7550
|
+
summary: "summary";
|
|
7551
|
+
judge: "judge";
|
|
7552
|
+
direct: "direct";
|
|
7553
|
+
}>>;
|
|
7554
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7555
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7556
|
+
ids: z.ZodObject<{
|
|
7557
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7558
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7559
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7560
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7561
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7562
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7563
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7564
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7565
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7566
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7567
|
+
}, z.core.$strict>;
|
|
7568
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
7569
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
7570
|
+
retryReason: z.ZodEnum<{
|
|
7571
|
+
schema: "schema";
|
|
7572
|
+
validate: "validate";
|
|
7573
|
+
guardrail: "guardrail";
|
|
7574
|
+
}>;
|
|
7575
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7576
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
7577
|
+
stage: z.ZodEnum<{
|
|
7578
|
+
schema: "schema";
|
|
7579
|
+
validate: "validate";
|
|
7580
|
+
guardrail: "guardrail";
|
|
7581
|
+
}>;
|
|
7582
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7583
|
+
feedbackMessage: z.ZodString;
|
|
7584
|
+
}, z.core.$strict>>;
|
|
7585
|
+
}, z.core.$strict>>;
|
|
7586
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7587
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7588
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7589
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7590
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7591
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7592
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7593
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7594
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7595
|
+
}, z.core.$strict>>;
|
|
7596
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7597
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
7598
|
+
provider_reported: "provider_reported";
|
|
7599
|
+
price_table_estimate: "price_table_estimate";
|
|
7600
|
+
caller_reported: "caller_reported";
|
|
7601
|
+
adapter_reported: "adapter_reported";
|
|
7602
|
+
}>>;
|
|
7603
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
7604
|
+
captured: z.ZodObject<{
|
|
7605
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
7606
|
+
redacted: z.ZodBoolean;
|
|
7607
|
+
truncated: z.ZodBoolean;
|
|
7608
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7609
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
7610
|
+
replayable: z.ZodBoolean;
|
|
7611
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7612
|
+
}, z.core.$strict>;
|
|
7613
|
+
kind: z.ZodEnum<{
|
|
7614
|
+
chat: "chat";
|
|
7615
|
+
stream: "stream";
|
|
7616
|
+
}>;
|
|
7617
|
+
provider: z.ZodString;
|
|
7618
|
+
model: z.ZodString;
|
|
7619
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
7620
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
7621
|
+
role: z.ZodString;
|
|
7622
|
+
content: z.ZodNullable<z.ZodString>;
|
|
7623
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
7624
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7625
|
+
type: z.ZodLiteral<"text">;
|
|
7626
|
+
characters: z.ZodNumber;
|
|
7627
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7628
|
+
type: z.ZodLiteral<"image">;
|
|
7629
|
+
source: z.ZodEnum<{
|
|
7630
|
+
bytes: "bytes";
|
|
7631
|
+
base64: "base64";
|
|
7632
|
+
"provider-file": "provider-file";
|
|
7633
|
+
url: "url";
|
|
7634
|
+
}>;
|
|
7635
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
7636
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
7637
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
7638
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7639
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7640
|
+
type: z.ZodLiteral<"audio">;
|
|
7641
|
+
source: z.ZodEnum<{
|
|
7642
|
+
bytes: "bytes";
|
|
7643
|
+
base64: "base64";
|
|
7644
|
+
"provider-file": "provider-file";
|
|
7645
|
+
}>;
|
|
7646
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
7647
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
7648
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
7649
|
+
label: z.ZodOptional<z.ZodString>;
|
|
7650
|
+
}, z.core.$strict>], "type">>;
|
|
7651
|
+
}, z.core.$strict>>;
|
|
7652
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7653
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7654
|
+
origin: z.ZodOptional<z.ZodLiteral<"runtime">>;
|
|
7655
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7656
|
+
id: z.ZodString;
|
|
7657
|
+
type: z.ZodLiteral<"function">;
|
|
7658
|
+
function: z.ZodObject<{
|
|
7659
|
+
name: z.ZodString;
|
|
7660
|
+
arguments: z.ZodString;
|
|
7661
|
+
}, z.core.$strict>;
|
|
7662
|
+
}, z.core.$strict>>>;
|
|
7663
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
7664
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
7665
|
+
}, z.core.$strict>>;
|
|
7666
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7667
|
+
name: z.ZodString;
|
|
7668
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7669
|
+
parameters: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
7670
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
7671
|
+
}, z.core.$strict>>>;
|
|
7672
|
+
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7673
|
+
type: z.ZodLiteral<"text">;
|
|
7674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7675
|
+
type: z.ZodLiteral<"json_object">;
|
|
7676
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7677
|
+
type: z.ZodLiteral<"json_schema">;
|
|
7678
|
+
json_schema: z.ZodObject<{
|
|
7679
|
+
name: z.ZodString;
|
|
7680
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
7681
|
+
schema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
7682
|
+
}, z.core.$strict>;
|
|
7683
|
+
}, z.core.$strict>], "type">>;
|
|
7684
|
+
options: z.ZodObject<{
|
|
7685
|
+
model: z.ZodString;
|
|
7686
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
7687
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
7688
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
7689
|
+
thinkingBudget: z.ZodOptional<z.ZodNumber>;
|
|
7690
|
+
includeThoughts: z.ZodOptional<z.ZodBoolean>;
|
|
7691
|
+
toolChoice: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7692
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7693
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
7694
|
+
}, z.core.$strict>;
|
|
7695
|
+
providerOptionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7696
|
+
}, z.core.$strict>>;
|
|
7697
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
7698
|
+
status: z.ZodLiteral<"ok">;
|
|
7699
|
+
response: z.ZodObject<{
|
|
7700
|
+
content: z.ZodString;
|
|
7701
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7702
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7703
|
+
id: z.ZodString;
|
|
7704
|
+
type: z.ZodLiteral<"function">;
|
|
7705
|
+
function: z.ZodObject<{
|
|
7706
|
+
name: z.ZodString;
|
|
7707
|
+
arguments: z.ZodString;
|
|
7708
|
+
}, z.core.$strict>;
|
|
7709
|
+
}, z.core.$strict>>>;
|
|
7710
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
7711
|
+
length: "length";
|
|
7712
|
+
stop: "stop";
|
|
7713
|
+
tool_calls: "tool_calls";
|
|
7714
|
+
content_filter: "content_filter";
|
|
7715
|
+
refusal: "refusal";
|
|
7716
|
+
other: "other";
|
|
7717
|
+
}>>;
|
|
7718
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
7719
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7720
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
7721
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
7722
|
+
}, z.core.$strict>;
|
|
7723
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7724
|
+
status: z.ZodLiteral<"ok">;
|
|
7725
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7726
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
7727
|
+
length: "length";
|
|
7728
|
+
stop: "stop";
|
|
7729
|
+
tool_calls: "tool_calls";
|
|
7730
|
+
content_filter: "content_filter";
|
|
7731
|
+
refusal: "refusal";
|
|
7732
|
+
other: "other";
|
|
7733
|
+
}>>;
|
|
7734
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
7735
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7736
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
7737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7738
|
+
status: z.ZodLiteral<"error">;
|
|
7739
|
+
error: z.ZodObject<{
|
|
7740
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7741
|
+
message: z.ZodString;
|
|
7742
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7743
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7744
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7745
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7746
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7747
|
+
}, z.core.$strict>;
|
|
7748
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7749
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7750
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7751
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7752
|
+
id: z.ZodString;
|
|
7753
|
+
type: z.ZodLiteral<"function">;
|
|
7754
|
+
function: z.ZodObject<{
|
|
7755
|
+
name: z.ZodString;
|
|
7756
|
+
arguments: z.ZodString;
|
|
7757
|
+
}, z.core.$strict>;
|
|
7758
|
+
}, z.core.$strict>>>;
|
|
7759
|
+
}, z.core.$strict>>;
|
|
7760
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7761
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7762
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7763
|
+
status: z.ZodLiteral<"error">;
|
|
7764
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7765
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7766
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7767
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7768
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7769
|
+
id: z.ZodString;
|
|
7770
|
+
type: z.ZodLiteral<"function">;
|
|
7771
|
+
function: z.ZodObject<{
|
|
7772
|
+
name: z.ZodString;
|
|
7773
|
+
arguments: z.ZodString;
|
|
7774
|
+
}, z.core.$strict>;
|
|
7775
|
+
}, z.core.$strict>>>;
|
|
7776
|
+
}, z.core.$strict>>;
|
|
7777
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7778
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7779
|
+
status: z.ZodEnum<{
|
|
7780
|
+
aborted: "aborted";
|
|
7781
|
+
stalled: "stalled";
|
|
7782
|
+
consumer_closed: "consumer_closed";
|
|
7783
|
+
}>;
|
|
7784
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
7785
|
+
content: z.ZodOptional<z.ZodString>;
|
|
7786
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
7787
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7788
|
+
id: z.ZodString;
|
|
7789
|
+
type: z.ZodLiteral<"function">;
|
|
7790
|
+
function: z.ZodObject<{
|
|
7791
|
+
name: z.ZodString;
|
|
7792
|
+
arguments: z.ZodString;
|
|
7793
|
+
}, z.core.$strict>;
|
|
7794
|
+
}, z.core.$strict>>>;
|
|
7795
|
+
}, z.core.$strict>>;
|
|
7796
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7797
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7798
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7799
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7800
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7801
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7802
|
+
}, z.core.$strict>]>;
|
|
7803
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7804
|
+
prompt_tokens: z.ZodNumber;
|
|
7805
|
+
completion_tokens: z.ZodNumber;
|
|
7806
|
+
total_tokens: z.ZodNumber;
|
|
7807
|
+
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7808
|
+
cached_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7809
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7810
|
+
audio_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7811
|
+
audio_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
7812
|
+
}, z.core.$strict>>;
|
|
7813
|
+
}, z.core.$strict>>, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodObject<{
|
|
7814
|
+
v: z.ZodLiteral<2>;
|
|
7815
|
+
id: z.ZodString;
|
|
7816
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7817
|
+
ask: "ask";
|
|
7818
|
+
summary: "summary";
|
|
7819
|
+
judge: "judge";
|
|
7820
|
+
direct: "direct";
|
|
7821
|
+
}>>;
|
|
7822
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7823
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7824
|
+
ids: z.ZodObject<{
|
|
7825
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7826
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7827
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7828
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7829
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7830
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7831
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7832
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7833
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7834
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7835
|
+
}, z.core.$strict>;
|
|
7836
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
7837
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
7838
|
+
retryReason: z.ZodEnum<{
|
|
7839
|
+
schema: "schema";
|
|
7840
|
+
validate: "validate";
|
|
7841
|
+
guardrail: "guardrail";
|
|
7842
|
+
}>;
|
|
7843
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7844
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
7845
|
+
stage: z.ZodEnum<{
|
|
7846
|
+
schema: "schema";
|
|
7847
|
+
validate: "validate";
|
|
7848
|
+
guardrail: "guardrail";
|
|
7849
|
+
}>;
|
|
7850
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7851
|
+
feedbackMessage: z.ZodString;
|
|
7852
|
+
}, z.core.$strict>>;
|
|
7853
|
+
}, z.core.$strict>>;
|
|
7854
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7855
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7856
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7857
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7858
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7859
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7860
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7861
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7862
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7863
|
+
}, z.core.$strict>>;
|
|
7864
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7865
|
+
unpriced: z.ZodOptional<z.ZodBoolean>;
|
|
7866
|
+
captured: z.ZodObject<{
|
|
7867
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
7868
|
+
redacted: z.ZodBoolean;
|
|
7869
|
+
truncated: z.ZodBoolean;
|
|
7870
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7871
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
7872
|
+
replayable: z.ZodBoolean;
|
|
7873
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7874
|
+
}, z.core.$strict>;
|
|
7875
|
+
kind: z.ZodLiteral<"external">;
|
|
7876
|
+
name: z.ZodString;
|
|
7877
|
+
costProvenance: z.ZodOptional<z.ZodLiteral<"caller_reported">>;
|
|
7878
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
7879
|
+
request: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7880
|
+
response: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
7881
|
+
}, z.core.$strict>>;
|
|
7882
|
+
outcome: z.ZodUnion<readonly [z.ZodObject<{
|
|
7883
|
+
status: z.ZodLiteral<"ok">;
|
|
7884
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7885
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7886
|
+
status: z.ZodLiteral<"error">;
|
|
7887
|
+
error: z.ZodObject<{
|
|
7888
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7889
|
+
message: z.ZodString;
|
|
7890
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7891
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7892
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7893
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7894
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7895
|
+
}, z.core.$strict>;
|
|
7896
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7897
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7898
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7899
|
+
status: z.ZodLiteral<"error">;
|
|
7900
|
+
payloadOmitted: z.ZodLiteral<true>;
|
|
7901
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7902
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7903
|
+
status: z.ZodLiteral<"unfinished">;
|
|
7904
|
+
payloadOmitted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7905
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7906
|
+
}, z.core.$strict>]>;
|
|
7907
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
7908
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7909
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7910
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
7911
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
7912
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
7913
|
+
audioSeconds: z.ZodOptional<z.ZodNumber>;
|
|
7914
|
+
}, z.core.$strict>>;
|
|
7915
|
+
}, z.core.$strict>>]>;
|
|
7916
|
+
type ModelCallRecord = z.infer<typeof modelSchema>;
|
|
7917
|
+
type ExternalOperationRecord = z.infer<typeof externalSchema>;
|
|
7918
|
+
type FoldedOperationRecord = ModelCallRecord | ExternalOperationRecord;
|
|
7919
|
+
declare const capturedJournalLineSchema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodUnion<readonly [z.ZodObject<{
|
|
7920
|
+
v: z.ZodLiteral<1>;
|
|
7921
|
+
phase: z.ZodEnum<{
|
|
7922
|
+
start: "start";
|
|
7923
|
+
attempt: "attempt";
|
|
7924
|
+
end: "end";
|
|
7925
|
+
}>;
|
|
7926
|
+
operationId: z.ZodString;
|
|
7927
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
7928
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
7929
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
7930
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
7931
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
7932
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
7933
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7934
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
7935
|
+
ask: "ask";
|
|
7936
|
+
summary: "summary";
|
|
7937
|
+
judge: "judge";
|
|
7938
|
+
direct: "direct";
|
|
7939
|
+
}>>;
|
|
7940
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
7941
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
7942
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
7943
|
+
retryReason: z.ZodOptional<z.ZodEnum<{
|
|
7944
|
+
schema: "schema";
|
|
7945
|
+
validate: "validate";
|
|
7946
|
+
guardrail: "guardrail";
|
|
7947
|
+
}>>;
|
|
7948
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
7949
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
7950
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
7951
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7952
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
7953
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
7954
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
7955
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
7956
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
7957
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
7958
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
7959
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
7960
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7961
|
+
}, z.core.$strict>>;
|
|
7962
|
+
transportAttempts: z.ZodNumber;
|
|
7963
|
+
outcomeStatus: z.ZodOptional<z.ZodEnum<{
|
|
7964
|
+
ok: "ok";
|
|
7965
|
+
error: "error";
|
|
7966
|
+
aborted: "aborted";
|
|
7967
|
+
stalled: "stalled";
|
|
7968
|
+
consumer_closed: "consumer_closed";
|
|
7969
|
+
unfinished: "unfinished";
|
|
7970
|
+
}>>;
|
|
7971
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
7972
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
7973
|
+
provider_reported: "provider_reported";
|
|
7974
|
+
price_table_estimate: "price_table_estimate";
|
|
7975
|
+
caller_reported: "caller_reported";
|
|
7976
|
+
adapter_reported: "adapter_reported";
|
|
7977
|
+
}>>;
|
|
7978
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
7979
|
+
length: "length";
|
|
7980
|
+
stop: "stop";
|
|
7981
|
+
tool_calls: "tool_calls";
|
|
7982
|
+
content_filter: "content_filter";
|
|
7983
|
+
refusal: "refusal";
|
|
7984
|
+
other: "other";
|
|
7985
|
+
}>>;
|
|
7986
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
7987
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
7988
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
7989
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
7990
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7991
|
+
message: z.ZodString;
|
|
7992
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7993
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7994
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
7995
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7996
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
7997
|
+
}, z.core.$strict>>;
|
|
7998
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
7999
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
8000
|
+
stage: z.ZodEnum<{
|
|
8001
|
+
schema: "schema";
|
|
8002
|
+
validate: "validate";
|
|
8003
|
+
guardrail: "guardrail";
|
|
8004
|
+
}>;
|
|
8005
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8006
|
+
feedbackMessage: z.ZodString;
|
|
8007
|
+
}, z.core.$strict>>;
|
|
8008
|
+
captured: z.ZodObject<{
|
|
8009
|
+
truncated: z.ZodBoolean;
|
|
8010
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
8011
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8012
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
8013
|
+
redacted: z.ZodBoolean;
|
|
8014
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8015
|
+
}, z.core.$strict>;
|
|
8016
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
8017
|
+
kind: z.ZodEnum<{
|
|
8018
|
+
chat: "chat";
|
|
8019
|
+
stream: "stream";
|
|
8020
|
+
}>;
|
|
8021
|
+
provider: z.ZodString;
|
|
8022
|
+
model: z.ZodString;
|
|
8023
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
8024
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
8025
|
+
role: z.ZodString;
|
|
8026
|
+
content: z.ZodNullable<z.ZodString>;
|
|
8027
|
+
input: z.ZodOptional<z.ZodObject<{
|
|
8028
|
+
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8029
|
+
type: z.ZodLiteral<"text">;
|
|
8030
|
+
characters: z.ZodNumber;
|
|
8031
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8032
|
+
type: z.ZodLiteral<"image">;
|
|
8033
|
+
source: z.ZodEnum<{
|
|
8034
|
+
bytes: "bytes";
|
|
8035
|
+
base64: "base64";
|
|
8036
|
+
"provider-file": "provider-file";
|
|
8037
|
+
url: "url";
|
|
8038
|
+
}>;
|
|
8039
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
8040
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
8041
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
8042
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8043
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8044
|
+
type: z.ZodLiteral<"audio">;
|
|
8045
|
+
source: z.ZodEnum<{
|
|
8046
|
+
bytes: "bytes";
|
|
8047
|
+
base64: "base64";
|
|
8048
|
+
"provider-file": "provider-file";
|
|
8049
|
+
}>;
|
|
8050
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
8051
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
8052
|
+
locator: z.ZodOptional<z.ZodString>;
|
|
8053
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8054
|
+
}, z.core.$strict>], "type">>;
|
|
8055
|
+
}, z.core.$strict>>;
|
|
8056
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8057
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
8058
|
+
origin: z.ZodOptional<z.ZodLiteral<"runtime">>;
|
|
8059
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8060
|
+
id: z.ZodString;
|
|
8061
|
+
type: z.ZodLiteral<"function">;
|
|
8062
|
+
function: z.ZodObject<{
|
|
8063
|
+
name: z.ZodString;
|
|
8064
|
+
arguments: z.ZodString;
|
|
8065
|
+
}, z.core.$strict>;
|
|
8066
|
+
}, z.core.$strict>>>;
|
|
8067
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
8068
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
8069
|
+
}, z.core.$strict>>;
|
|
8070
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8071
|
+
name: z.ZodString;
|
|
8072
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8073
|
+
parameters: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
8074
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
8075
|
+
}, z.core.$strict>>>;
|
|
8076
|
+
responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8077
|
+
type: z.ZodLiteral<"text">;
|
|
8078
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8079
|
+
type: z.ZodLiteral<"json_object">;
|
|
8080
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8081
|
+
type: z.ZodLiteral<"json_schema">;
|
|
8082
|
+
json_schema: z.ZodObject<{
|
|
8083
|
+
name: z.ZodString;
|
|
8084
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
8085
|
+
schema: z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>;
|
|
8086
|
+
}, z.core.$strict>;
|
|
8087
|
+
}, z.core.$strict>], "type">>;
|
|
8088
|
+
options: z.ZodObject<{
|
|
8089
|
+
model: z.ZodString;
|
|
8090
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
8091
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
8092
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
8093
|
+
thinkingBudget: z.ZodOptional<z.ZodNumber>;
|
|
8094
|
+
includeThoughts: z.ZodOptional<z.ZodBoolean>;
|
|
8095
|
+
toolChoice: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
8096
|
+
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8097
|
+
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
8098
|
+
}, z.core.$strict>;
|
|
8099
|
+
providerOptionKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8100
|
+
}, z.core.$strict>>;
|
|
8101
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
8102
|
+
content: z.ZodString;
|
|
8103
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
8104
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8105
|
+
id: z.ZodString;
|
|
8106
|
+
type: z.ZodLiteral<"function">;
|
|
8107
|
+
function: z.ZodObject<{
|
|
8108
|
+
name: z.ZodString;
|
|
8109
|
+
arguments: z.ZodString;
|
|
8110
|
+
}, z.core.$strict>;
|
|
8111
|
+
}, z.core.$strict>>>;
|
|
8112
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
8113
|
+
length: "length";
|
|
8114
|
+
stop: "stop";
|
|
8115
|
+
tool_calls: "tool_calls";
|
|
8116
|
+
content_filter: "content_filter";
|
|
8117
|
+
refusal: "refusal";
|
|
8118
|
+
other: "other";
|
|
8119
|
+
}>>;
|
|
8120
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
8121
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
8122
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
8123
|
+
providerMetadata: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>>;
|
|
8124
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
8125
|
+
prompt_tokens: z.ZodNumber;
|
|
8126
|
+
completion_tokens: z.ZodNumber;
|
|
8127
|
+
total_tokens: z.ZodNumber;
|
|
8128
|
+
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8129
|
+
cached_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8130
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8131
|
+
audio_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8132
|
+
audio_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8133
|
+
}, z.core.$strict>>;
|
|
8134
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
8135
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
8136
|
+
provider_reported: "provider_reported";
|
|
8137
|
+
price_table_estimate: "price_table_estimate";
|
|
8138
|
+
adapter_reported: "adapter_reported";
|
|
8139
|
+
}>>;
|
|
8140
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
8141
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
8142
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
8143
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
8144
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
8145
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
8146
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
8147
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
8148
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8149
|
+
}, z.core.$strict>>;
|
|
8150
|
+
}, z.core.$strict>>;
|
|
8151
|
+
partial: z.ZodOptional<z.ZodObject<{
|
|
8152
|
+
content: z.ZodOptional<z.ZodString>;
|
|
8153
|
+
thinking: z.ZodOptional<z.ZodString>;
|
|
8154
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8155
|
+
id: z.ZodString;
|
|
8156
|
+
type: z.ZodLiteral<"function">;
|
|
8157
|
+
function: z.ZodObject<{
|
|
8158
|
+
name: z.ZodString;
|
|
8159
|
+
arguments: z.ZodString;
|
|
8160
|
+
}, z.core.$strict>;
|
|
8161
|
+
}, z.core.$strict>>>;
|
|
8162
|
+
}, z.core.$strict>>;
|
|
8163
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
8164
|
+
prompt_tokens: z.ZodNumber;
|
|
8165
|
+
completion_tokens: z.ZodNumber;
|
|
8166
|
+
total_tokens: z.ZodNumber;
|
|
8167
|
+
reasoning_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8168
|
+
cached_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8169
|
+
cache_write_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8170
|
+
audio_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8171
|
+
audio_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
8172
|
+
}, z.core.$strict>>;
|
|
8173
|
+
}, z.core.$catchall<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>, z.ZodObject<{
|
|
8174
|
+
v: z.ZodLiteral<1>;
|
|
8175
|
+
phase: z.ZodEnum<{
|
|
8176
|
+
start: "start";
|
|
8177
|
+
attempt: "attempt";
|
|
8178
|
+
end: "end";
|
|
8179
|
+
}>;
|
|
8180
|
+
operationId: z.ZodString;
|
|
8181
|
+
caseIndex: z.ZodOptional<z.ZodNumber>;
|
|
8182
|
+
scorer: z.ZodOptional<z.ZodString>;
|
|
8183
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
8184
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
8185
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
8186
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
8187
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8188
|
+
purpose: z.ZodOptional<z.ZodEnum<{
|
|
8189
|
+
ask: "ask";
|
|
8190
|
+
summary: "summary";
|
|
8191
|
+
judge: "judge";
|
|
8192
|
+
direct: "direct";
|
|
8193
|
+
}>>;
|
|
8194
|
+
askId: z.ZodOptional<z.ZodString>;
|
|
8195
|
+
parentAskId: z.ZodOptional<z.ZodString>;
|
|
8196
|
+
turn: z.ZodOptional<z.ZodNumber>;
|
|
8197
|
+
retryReason: z.ZodOptional<z.ZodEnum<{
|
|
8198
|
+
schema: "schema";
|
|
8199
|
+
validate: "validate";
|
|
8200
|
+
guardrail: "guardrail";
|
|
8201
|
+
}>>;
|
|
8202
|
+
rejectedCallId: z.ZodOptional<z.ZodString>;
|
|
8203
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
8204
|
+
endedAt: z.ZodOptional<z.ZodString>;
|
|
8205
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8206
|
+
timing: z.ZodOptional<z.ZodObject<{
|
|
8207
|
+
queuedMs: z.ZodOptional<z.ZodNumber>;
|
|
8208
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
8209
|
+
rateLimitRetries: z.ZodOptional<z.ZodNumber>;
|
|
8210
|
+
retryMs: z.ZodOptional<z.ZodNumber>;
|
|
8211
|
+
ttfbMs: z.ZodOptional<z.ZodNumber>;
|
|
8212
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
8213
|
+
wireMs: z.ZodOptional<z.ZodNumber>;
|
|
8214
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8215
|
+
}, z.core.$strict>>;
|
|
8216
|
+
transportAttempts: z.ZodNumber;
|
|
8217
|
+
outcomeStatus: z.ZodOptional<z.ZodEnum<{
|
|
8218
|
+
ok: "ok";
|
|
8219
|
+
error: "error";
|
|
8220
|
+
aborted: "aborted";
|
|
8221
|
+
stalled: "stalled";
|
|
8222
|
+
consumer_closed: "consumer_closed";
|
|
8223
|
+
unfinished: "unfinished";
|
|
8224
|
+
}>>;
|
|
8225
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
8226
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
8227
|
+
provider_reported: "provider_reported";
|
|
8228
|
+
price_table_estimate: "price_table_estimate";
|
|
8229
|
+
caller_reported: "caller_reported";
|
|
8230
|
+
adapter_reported: "adapter_reported";
|
|
8231
|
+
}>>;
|
|
8232
|
+
finishReason: z.ZodOptional<z.ZodEnum<{
|
|
8233
|
+
length: "length";
|
|
8234
|
+
stop: "stop";
|
|
8235
|
+
tool_calls: "tool_calls";
|
|
8236
|
+
content_filter: "content_filter";
|
|
8237
|
+
refusal: "refusal";
|
|
8238
|
+
other: "other";
|
|
8239
|
+
}>>;
|
|
8240
|
+
rawFinishReason: z.ZodOptional<z.ZodString>;
|
|
8241
|
+
responseId: z.ZodOptional<z.ZodString>;
|
|
8242
|
+
responseModel: z.ZodOptional<z.ZodString>;
|
|
8243
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
8244
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8245
|
+
message: z.ZodString;
|
|
8246
|
+
code: z.ZodOptional<z.ZodString>;
|
|
8247
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
8248
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
8249
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
8250
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
8251
|
+
}, z.core.$strict>>;
|
|
8252
|
+
termination: z.ZodOptional<z.ZodString>;
|
|
8253
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
8254
|
+
stage: z.ZodEnum<{
|
|
8255
|
+
schema: "schema";
|
|
8256
|
+
validate: "validate";
|
|
8257
|
+
guardrail: "guardrail";
|
|
8258
|
+
}>;
|
|
8259
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8260
|
+
feedbackMessage: z.ZodString;
|
|
8261
|
+
}, z.core.$strict>>;
|
|
8262
|
+
captured: z.ZodObject<{
|
|
8263
|
+
truncated: z.ZodBoolean;
|
|
8264
|
+
omitted: z.ZodArray<z.ZodString>;
|
|
8265
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8266
|
+
fidelity: z.ZodLiteral<"runtime_request">;
|
|
8267
|
+
redacted: z.ZodBoolean;
|
|
8268
|
+
continuityCaptured: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8269
|
+
}, z.core.$strict>;
|
|
8270
|
+
bytes: z.ZodOptional<z.ZodNumber>;
|
|
8271
|
+
kind: z.ZodLiteral<"external">;
|
|
8272
|
+
name: z.ZodString;
|
|
8273
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
8274
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
8275
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
8276
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
8277
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
8278
|
+
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
8279
|
+
audioSeconds: z.ZodOptional<z.ZodNumber>;
|
|
8280
|
+
}, z.core.$strict>>;
|
|
8281
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
8282
|
+
request: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
8283
|
+
response: z.ZodOptional<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>;
|
|
8284
|
+
}, z.core.$strict>>;
|
|
8285
|
+
}, z.core.$catchall<z.ZodPipe<z.ZodTransform<CapturedJsonValue, unknown>, z.ZodCustom<CapturedJsonValue, CapturedJsonValue>>>>]>>;
|
|
8286
|
+
/** Assemble interleaved v1 phase lines into one validated v2 operation per id. */
|
|
8287
|
+
declare function foldJournal(lines: Iterable<CapturedRequestRecord | unknown>): FoldedOperationRecord[];
|
|
8288
|
+
/** Return a redacted copy while retaining correlation, timing, usage and cost. */
|
|
8289
|
+
declare function redactModelCallRecord<T extends FoldedOperationRecord>(record: T): T;
|
|
8290
|
+
|
|
6680
8291
|
/**
|
|
6681
8292
|
* Module-export resolution helpers for dynamically-imported user modules.
|
|
6682
8293
|
*
|
|
@@ -7268,25 +8879,6 @@ declare const REDACTION_RULES: {
|
|
|
7268
8879
|
declare function redactEvent(event: AxlEvent): AxlEvent;
|
|
7269
8880
|
/** Redact either persisted schema without reinterpreting its lifecycle. */
|
|
7270
8881
|
declare function redactHistoricalEvent(event: HistoricalAxlEvent): HistoricalAxlEvent;
|
|
7271
|
-
/**
|
|
7272
|
-
* Scrub a captured request record before it reaches a diagnostics sink.
|
|
7273
|
-
*
|
|
7274
|
-
* The same policy `agent_call_start` / `agent_call_end` / the gate events
|
|
7275
|
-
* already apply, expressed over the capture record's shape: prompts, responses,
|
|
7276
|
-
* gate reasons and correction text are user/LLM content and become
|
|
7277
|
-
* `[redacted]`; roles, tool NAMES, JSON-Schema parameters, option scalars,
|
|
7278
|
-
* usage, cost, timing and the `providerOptions` key list are structural and
|
|
7279
|
-
* survive, because a compliance-mode reader still has to be able to tell a
|
|
7280
|
-
* tool-choice bug from a token-budget bug.
|
|
7281
|
-
*
|
|
7282
|
-
* Rich media never had bytes in the record to begin with (the projection in
|
|
7283
|
-
* `diagnostics/capture.ts` replaces them with descriptors), but a descriptor's
|
|
7284
|
-
* `locator` and `label` can name a file or a URL, so they are scrubbed here
|
|
7285
|
-
* exactly as `redactInputDescriptor` scrubs them on the trace rail.
|
|
7286
|
-
*
|
|
7287
|
-
* Pure, like every other rule in this file: the caller decides whether
|
|
7288
|
-
* redaction is on, and this function unconditionally scrubs when called.
|
|
7289
|
-
*/
|
|
7290
8882
|
declare function redactCapturedRequest(record: CapturedRequestRecord): CapturedRequestRecord;
|
|
7291
8883
|
|
|
7292
8884
|
/**
|
|
@@ -7378,8 +8970,8 @@ type DirectOpenAIPricingContext = {
|
|
|
7378
8970
|
};
|
|
7379
8971
|
};
|
|
7380
8972
|
/**
|
|
7381
|
-
* Estimate OpenAI call cost from token usage
|
|
7382
|
-
*
|
|
8973
|
+
* Estimate OpenAI call cost from token usage using exact catalog IDs only.
|
|
8974
|
+
* Explicitly listed snapshots (e.g. `gpt-4o-2024-05-13`) have their own rows.
|
|
7383
8975
|
*
|
|
7384
8976
|
* Returns `undefined` when the model is not in the table — callers must treat
|
|
7385
8977
|
* that as "unknown cost", never as free (a silent `0` would break
|
|
@@ -7409,8 +9001,8 @@ declare class OpenAIProvider extends OpenAICompatibleProvider {
|
|
|
7409
9001
|
dangerouslyAllowInsecureHttp?: boolean;
|
|
7410
9002
|
rateLimit?: RateLimitConfig;
|
|
7411
9003
|
});
|
|
7412
|
-
/** Report a clamped `effort` — Chat
|
|
7413
|
-
*
|
|
9004
|
+
/** Report a clamped `effort` — Chat caps `'max'` at `'xhigh'` on GPT-5.6 and
|
|
9005
|
+
* GPT-6.1 Sol, and maps `'none'` to the model's supported floor. */
|
|
7414
9006
|
effortResolution(options: Pick<ChatOptions, 'model' | 'effort' | 'thinkingBudget' | 'includeThoughts' | 'providerOptions'>): EffortResolution | undefined;
|
|
7415
9007
|
protected validateFinalRequestBody(body: Record<string, unknown>): void;
|
|
7416
9008
|
protected computeCost(model: string, usage: ProviderResponse['usage'], _reportedCost: number | undefined, context?: DirectOpenAIPricingContext): number | undefined;
|
|
@@ -8422,4 +10014,4 @@ declare class NoopSpanManager implements SpanManager {
|
|
|
8422
10014
|
*/
|
|
8423
10015
|
declare function createSpanManager(config?: TelemetryConfig): Promise<SpanManager>;
|
|
8424
10016
|
|
|
8425
|
-
export { AXL_EVENT_TYPES, AXL_EVENT_TYPES_V2, AXL_TOOL_LIFECYCLE_TYPES_V2, AZURE_PROFILE, type Accounting, type AccountingCompleteness, type AccountingReason, type AccountingUsage, AdmissionController, AdmissionDeniedError, type Agent, type AgentCallEndData, type AgentCallInfo, type AgentCallParams, type AgentCallStartData, type AgentConfig, AnthropicProvider, type AnyWorkflow, type ApiKeySource, type ArtifactManifest, type ArtifactOwner, type ArtifactStatus, type ArtifactWriteResult, type AskOptions, type AskScoped, type AuthHeader, type AwaitHumanData, type AwaitHumanOptions, type AwaitHumanResolvedData, type AxlConfig, AxlError, type AxlEvent, type AxlEventBase, AxlEventBus, type AxlEventOf, type AxlEventType, type AxlEventV2, type AxlEventV2Of, AxlRuntime, AxlStream, BEDROCK_PROFILE, BUILTIN_PROFILES, BudgetExceededError, type BudgetOptions, type BudgetResult, CONFIG_CANDIDATES, COST_BEARING_LEAF_TYPES, type CallTiming, type CapabilityFlags, type CaptureCorrelation, type CapturedCorrection, type CapturedError, type CapturedMessage, type CapturedOperationRef, type CapturedPhase, type CapturedRequest, type CapturedRequestRecord, type CapturedResponse, type ChatMessage, type ChatOptions, type CheckpointEventData, type CoalescedPartialObject, type CostProvenance, type CreateContextOptions, DEEPSEEK_PROFILE, DEFAULT_MAX_QUEUE_BYTES, DEFAULT_MAX_RECORD_BYTES, DEFAULT_MAX_RUN_BYTES, type DecisionCleanupFailedEvent, type DelegateData, type DelegateOptions, type DiagnosticArtifactStore, type DiagnosticArtifactsConfig, type DiagnosticsConfig, type DispatchAdmission, type Effort, type EffortResolution, type EmbedResult, type EmbedUsage, type Embedder, type EvalExecuteWorkflow, type EvalHistoryEntry, type EvalProgressEventShape, type EventStreamOptions, EventStreamOverflowError, type ExecuteOptions, type ExecutionInfo, type ExecutionInfoV1, type ExecutionInfoV2, type ExecutionState, type ExternalOperationDescriptor, type ExternalOperationReport, FileDiagnosticArtifactStore, GROQ_PROFILE, GeminiProvider, GeminiTranscriptionProvider, type GuardrailBlockHandler, type GuardrailData, GuardrailError, type GuardrailResult, type GuardrailsConfig, type HandoffDescriptor, type HandoffRecord, type HandoffReturnData, type HandoffStartData, type HistoricalAxlEvent, type HistoricalExecutionInfo, type HumanDecision, InMemoryVectorStore, type InputAudioPart, type InputContentPart, type InputGuardrail, type InputImagePart, type InputMediaSource, type InputModalitySupport, type InputTextPart, InvalidModelInputError, InvalidTranscriptionInputError, LLAMACPP_PROFILE, LMSTUDIO_PROFILE, type LegacyAxlEventV1, type LegacyExecutionInfoV1, MAX_INLINE_MODEL_INPUT_BYTES, MAX_INLINE_TRANSCRIPTION_BYTES, MISTRAL_PROFILE, type MapOptions, MaxTurnsError, McpManager, type McpServer, type McpServerConfig, type McpToolDefinition, type McpToolResult, type MemoryConfig, type MemoryEventData, MemoryManager, MemoryStore, type ModelInput, type ModelInputDescriptor, type ModelTimingRollup, NoConsensus, NoopSpanManager, OLLAMA_PROFILE, OPENAI_PRICING, OPENAI_PROFILE, OPENROUTER_PROFILE, type ObservationStatus, type OpenAICompatibleOptions, OpenAICompatibleProvider, OpenAIEmbedder, OpenAIProvider, OpenAIResponsesProvider, OpenAITranscriptionProvider, OpenRouterTranscriptionProvider, type OpenedArtifact, type OperationKind, type OperationPurpose, type OutputGuardrail, type OutputValidator, type PendingDecision, type PerModel, type PricingSource, type PricingTable, type ProfileInputModalities, type Provider, type ProviderAdapter, type ProviderDiagnosticData, ProviderError, type ProviderInputValidationRequest, type ProviderInputValidationResult, type ProviderProfile, ProviderRegistry, type ProviderResponse, QuorumNotMet, REDACTED, REDACTION_RULES, type RaceOptions, type RateLimitConfig, RateLimiter, type ReasoningCapture, type ReasoningContextReset, type ReasoningEmit, type ReasoningProfile, type ReasoningRoundTrip, type RecallOptions, type RecallResult, type RecordedAudioSource, RedisStore, type RememberOptions, type RememberResult, RequestCaptureChannel, type RequestCaptureOptions, type RequestCaptureSink, type RequestCaptureStatus, type ResolvedThinkingOptions, type Result, type RetryFeedbackHook, type RetryFeedbackInfo, type RetryFeedbackResult, type RetryPolicy, type RuntimeEvalConfigShape, SGLANG_PROFILE, SQLiteStore, type SchemaCheckData, type SchemaDiagnosticData, type SchemaPromptOption, Session, type SessionOptions, type SpanHandle, type SpanManager, type SpawnOptions, SqliteVectorStore, type StagedArtifact, StallTimeoutError, type StateStore, type StreamChunk, type StringDeltaData, type StringStreamEvent, type StringStreamFilter, type TelemetryConfig, ThinkTagScanner, type TimeoutBreakdown, TimeoutError, type Tool, type ToolApprovalData, type ToolArgumentIssue, type ToolCallCancellation, type ToolCallData, type ToolCallEndData, type ToolCallFailure, type ToolCallMessage, type ToolCallOutcome, type ToolCallRejectedData, type ToolCallRejectedEvent, type ToolCallStartData, type ToolCallStartDataV2, type ToolChoice, type ToolConfig, type ToolDeniedData, type ToolEventError, ToolFailure, type ToolFailureConstructor, type ToolFailureOptions, type ToolHooks, type ToolLifecycleEventV2, type ToolModelOutput, ToolModelOutputError, type TrackExecutionMetadata, type TrackExecutionResult, type TrackOutcomeOptions, type TrackedOutcome, type Transcript, type TranscriptionCapabilities, TranscriptionOperationError, type TranscriptionProvider, TranscriptionProviderRegistry, type TranscriptionProviderRequest, type TranscriptionProviderResult, type TranscriptionRequest, UnsupportedEventSchemaVersionError, UnsupportedModelInputError, UnsupportedModelOptionError, UnsupportedTranscriptionInputError, VLLM_PROFILE, type ValidateData, type ValidateResult, ValidationError, type VectorEntry, type VectorResult, type VectorStore, type VerifyData, VerifyError, type VerifyOptions, type VerifyRetry, type VoteOptions, type Workflow, type WorkflowConfig, WorkflowContext, type WorkflowContextInit, type WorkflowEndData, type WorkflowStartData, XAI_PROFILE, agent, createSpanManager, defineConfig, estimateOpenAICost, eventCostContribution, expandGlob, externalOperation, extractJson, extractThinkTags, findConfig, getEventSchemaVersion, getExecutionEventSchemaVersion, hasPositiveBillableWork, hasPositiveTokens, importModule, inputText, isAdmissionDeniedError, isCostBearingLeaf, isRetryableStatus, isRootLevel, isUnpricedLeaf, isUsableCost, needsTsxLoader, normalizeStoredExecution, openaiReasoningEmit, parsePartialJson, pickDefault, pickExport, priceFromTable, reasoningEffortEmit, reasoningObjectEmit, redactCapturedRequest, redactEvent, redactHistoricalEvent, registerConditions, resolveApiKey, resolvePerModel, resolveRuntime, resolveThinkingOptions, stringStreamFromEvents, summarizeModelInput, tool, workflow, zodToJsonSchema };
|
|
10017
|
+
export { AXL_EVENT_TYPES, AXL_EVENT_TYPES_V2, AXL_TOOL_LIFECYCLE_TYPES_V2, AZURE_PROFILE, type Accounting, type AccountingCompleteness, type AccountingReason, type AccountingUsage, AdmissionController, AdmissionDeniedError, type Agent, type AgentCallEndData, type AgentCallInfo, type AgentCallParams, type AgentCallStartData, type AgentConfig, AnthropicProvider, type AnyWorkflow, type ApiKeySource, type ArtifactManifest, type ArtifactOwner, type ArtifactStatus, type ArtifactWriteResult, type AskOptions, type AskScoped, type AuthHeader, type AwaitHumanData, type AwaitHumanOptions, type AwaitHumanResolvedData, type AxlConfig, AxlError, type AxlEvent, type AxlEventBase, AxlEventBus, type AxlEventOf, type AxlEventType, type AxlEventV2, type AxlEventV2Of, AxlRuntime, AxlStream, BEDROCK_PROFILE, BUILTIN_PROFILES, BudgetExceededError, type BudgetOptions, type BudgetResult, CONFIG_CANDIDATES, COST_BEARING_LEAF_TYPES, type CallTiming, type CapabilityFlags, type CaptureCorrelation, type CapturedCorrection, type CapturedError, type CapturedExternalRequestRecord, type CapturedJsonValue, type CapturedMessage, type CapturedModelRequestRecord, type CapturedOperationRef, type CapturedPhase, type CapturedRequest, type CapturedRequestRecord, type CapturedResponse, type ChatMessage, type ChatOptions, type CheckpointEventData, type CoalescedPartialObject, type CostProvenance, type CreateContextOptions, DEEPSEEK_PROFILE, DEFAULT_MAX_QUEUE_BYTES, DEFAULT_MAX_RECORD_BYTES, DEFAULT_MAX_RUN_BYTES, type DecisionCleanupFailedEvent, type DelegateData, type DelegateOptions, type DiagnosticArtifactStore, type DiagnosticArtifactsConfig, type DiagnosticsConfig, type DispatchAdmission, type Effort, type EffortResolution, type EmbedResult, type EmbedUsage, type Embedder, type EvalExecuteWorkflow, type EvalHistoryEntry, type EvalProgressEventShape, type EventStreamOptions, EventStreamOverflowError, type ExecuteOptions, type ExecutionInfo, type ExecutionInfoV1, type ExecutionInfoV2, type ExecutionState, type ExternalOperationDescriptor, type ExternalOperationRecord, type ExternalOperationReport, FileDiagnosticArtifactStore, type FinishReason, type FoldedOperationRecord, GROQ_PROFILE, GeminiProvider, GeminiTranscriptionProvider, type GuardrailBlockHandler, type GuardrailData, GuardrailError, type GuardrailResult, type GuardrailsConfig, type HandoffDescriptor, type HandoffRecord, type HandoffReturnData, type HandoffStartData, type HistoricalAxlEvent, type HistoricalExecutionInfo, type HumanDecision, InMemoryVectorStore, type InputAudioPart, type InputContentPart, type InputGuardrail, type InputImagePart, type InputMediaSource, type InputModalitySupport, type InputTextPart, InvalidModelInputError, InvalidTranscriptionInputError, LLAMACPP_PROFILE, LMSTUDIO_PROFILE, type LegacyAxlEventV1, type LegacyExecutionInfoV1, MAX_INLINE_MODEL_INPUT_BYTES, MAX_INLINE_TRANSCRIPTION_BYTES, MISTRAL_PROFILE, type MapOptions, MaxTurnsError, McpManager, type McpServer, type McpServerConfig, type McpToolDefinition, type McpToolResult, type MemoryConfig, type MemoryEventData, MemoryManager, MemoryStore, type ModelCallRecord, type ModelInput, type ModelInputDescriptor, type ModelTimingRollup, NoConsensus, NoopSpanManager, OLLAMA_PROFILE, OPENAI_PRICING, OPENAI_PROFILE, OPENROUTER_PROFILE, type ObservationStatus, type OpenAICompatibleOptions, OpenAICompatibleProvider, OpenAIEmbedder, OpenAIProvider, OpenAIResponsesProvider, OpenAITranscriptionProvider, OpenRouterTranscriptionProvider, type OpenedArtifact, type OperationKind, type OperationPurpose, type OutputGuardrail, type OutputValidator, type PendingDecision, type PerModel, type PricingSource, type PricingTable, type ProfileInputModalities, type Provider, type ProviderAdapter, type ProviderDiagnosticData, ProviderError, type ProviderInputValidationRequest, type ProviderInputValidationResult, type ProviderProfile, ProviderRegistry, type ProviderResponse, QuorumNotMet, REDACTED, REDACTION_RULES, type RaceOptions, type RateLimitConfig, RateLimiter, type ReasoningCapture, type ReasoningContextReset, type ReasoningEmit, type ReasoningProfile, type ReasoningRoundTrip, type RecallOptions, type RecallResult, type RecordedAudioSource, RedisStore, type RememberOptions, type RememberResult, RequestCaptureChannel, type RequestCaptureOptions, type RequestCaptureSink, type RequestCaptureStatus, type ResolvedThinkingOptions, type Result, type RetryFeedbackHook, type RetryFeedbackInfo, type RetryFeedbackResult, type RetryPolicy, type RuntimeEvalConfigShape, SGLANG_PROFILE, SQLiteStore, type SchemaCheckData, type SchemaDiagnosticData, type SchemaPromptOption, Session, type SessionOptions, type SpanAttributeValue, type SpanAttributes, type SpanHandle, type SpanManager, type SpawnOptions, SqliteVectorStore, type StagedArtifact, StallTimeoutError, type StateStore, type StreamChunk, type StringDeltaData, type StringStreamEvent, type StringStreamFilter, type TelemetryConfig, ThinkTagScanner, type TimeoutBreakdown, TimeoutError, type Tool, type ToolApprovalData, type ToolArgumentIssue, type ToolCallCancellation, type ToolCallData, type ToolCallEndData, type ToolCallFailure, type ToolCallMessage, type ToolCallOutcome, type ToolCallRejectedData, type ToolCallRejectedEvent, type ToolCallStartData, type ToolCallStartDataV2, type ToolChoice, type ToolConfig, type ToolDeniedData, type ToolEventError, ToolFailure, type ToolFailureConstructor, type ToolFailureOptions, type ToolHooks, type ToolLifecycleEventV2, type ToolModelOutput, ToolModelOutputError, type TrackExecutionMetadata, type TrackExecutionResult, type TrackOutcomeOptions, type TrackedOutcome, type Transcript, type TranscriptionCapabilities, TranscriptionOperationError, type TranscriptionProvider, TranscriptionProviderRegistry, type TranscriptionProviderRequest, type TranscriptionProviderResult, type TranscriptionRequest, UnsupportedEventSchemaVersionError, UnsupportedModelInputError, UnsupportedModelOptionError, UnsupportedTranscriptionInputError, VLLM_PROFILE, type ValidateData, type ValidateResult, ValidationError, type VectorEntry, type VectorResult, type VectorStore, type VerifyData, VerifyError, type VerifyOptions, type VerifyRetry, type VoteOptions, type Workflow, type WorkflowConfig, WorkflowContext, type WorkflowContextInit, type WorkflowEndData, type WorkflowStartData, XAI_PROFILE, agent, capturedJournalLineSchema, createSpanManager, defineConfig, estimateOpenAICost, eventCostContribution, expandGlob, externalOperation, externalOperationRecordSchema, extractJson, extractThinkTags, findConfig, foldJournal, foldedOperationRecordSchema, getEventSchemaVersion, getExecutionEventSchemaVersion, hasPositiveBillableWork, hasPositiveTokens, importModule, inputText, isAdmissionDeniedError, isCostBearingLeaf, isRetryableStatus, isRootLevel, isUnpricedLeaf, isUsableCost, modelCallRecordSchema, needsTsxLoader, normalizeStoredExecution, openaiReasoningEmit, parsePartialJson, pickDefault, pickExport, priceFromTable, reasoningEffortEmit, reasoningObjectEmit, redactCapturedRequest, redactEvent, redactHistoricalEvent, redactModelCallRecord, registerConditions, resolveApiKey, resolvePerModel, resolveRuntime, resolveThinkingOptions, stringStreamFromEvents, summarizeModelInput, tool, workflow, zodToJsonSchema };
|