@axlsdk/axl 0.22.3 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +430 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +202 -8
- package/dist/index.d.ts +202 -8
- package/dist/index.js +430 -68
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -128,6 +128,12 @@ type ChatOptions = {
|
|
|
128
128
|
* 'none' disables thinking/reasoning (Gemini 3.x: maps to minimal).
|
|
129
129
|
* Omit to use provider defaults. */
|
|
130
130
|
effort?: Effort;
|
|
131
|
+
/** Opt in to provider prompt caching of the stable request prefix (system
|
|
132
|
+
* prompt + tool definitions). Anthropic requires an explicit `cache_control`
|
|
133
|
+
* breakpoint; OpenAI and Gemini cache automatically, so this is a no-op
|
|
134
|
+
* there. Off by default: a prefix that changes every call (a system prompt
|
|
135
|
+
* built from `ctx.metadata`) pays the cache-write premium with no reads. */
|
|
136
|
+
promptCache?: boolean;
|
|
131
137
|
/** Precise thinking token budget (advanced). When set alongside `effort`, overrides the
|
|
132
138
|
* thinking/reasoning allocation. On Anthropic 4.6, `effort` still controls output quality
|
|
133
139
|
* independently. On all other providers, `thinkingBudget` fully overrides `effort` for
|
|
@@ -187,6 +193,12 @@ type StreamChunk = {
|
|
|
187
193
|
cost?: number;
|
|
188
194
|
/** Provider-specific opaque metadata (e.g. raw Gemini parts with thought signatures). */
|
|
189
195
|
providerMetadata?: Record<string, unknown>;
|
|
196
|
+
/**
|
|
197
|
+
* Per-call latency breakdown. The `done` chunk is the only channel a
|
|
198
|
+
* stream has back to the runtime, so every terminal `done` must carry it
|
|
199
|
+
* — including the usage-less fallbacks, or a $0 stream loses its timing.
|
|
200
|
+
*/
|
|
201
|
+
timing?: CallTiming;
|
|
190
202
|
};
|
|
191
203
|
/**
|
|
192
204
|
* Core provider interface. Every LLM adapter must implement this.
|
|
@@ -228,6 +240,16 @@ interface Provider {
|
|
|
228
240
|
* JSON instruction instead (e.g. Anthropic).
|
|
229
241
|
*/
|
|
230
242
|
nativeStructuredOutputSupport?(model: string): 'schema' | 'downgraded' | 'lossy' | 'unsupported';
|
|
243
|
+
/**
|
|
244
|
+
* Whether this adapter realizes `ChatOptions.promptCache` for this model --
|
|
245
|
+
* i.e. actually places a cache breakpoint on the request. The runtime only
|
|
246
|
+
* emits the promptCache diagnostics (cold writes with no reads; no cache
|
|
247
|
+
* activity at all) for adapters that declare this, because on providers
|
|
248
|
+
* that cache automatically the absence of cache fields is not a signal.
|
|
249
|
+
* Adapters that omit this method opt out; the built-in Anthropic adapter is
|
|
250
|
+
* the only one that declares it today.
|
|
251
|
+
*/
|
|
252
|
+
realizesPromptCache?(model: string): boolean;
|
|
231
253
|
/**
|
|
232
254
|
* How this provider resolved the unified `effort` knob for this request.
|
|
233
255
|
*
|
|
@@ -429,6 +451,8 @@ type AskOptions<T = unknown> = {
|
|
|
429
451
|
thinkingBudget?: number;
|
|
430
452
|
/** Show reasoning summaries in responses. */
|
|
431
453
|
includeThoughts?: boolean;
|
|
454
|
+
/** Override prompt caching of the stable prefix for this call. */
|
|
455
|
+
promptCache?: boolean;
|
|
432
456
|
/** Tool choice strategy for this call. */
|
|
433
457
|
toolChoice?: ToolChoice;
|
|
434
458
|
/** Stop sequences for this call. */
|
|
@@ -1119,6 +1143,12 @@ type LegacyAxlEventPayloadV1 = (AxlEventBase & {
|
|
|
1119
1143
|
cached?: number;
|
|
1120
1144
|
cacheWrite?: number;
|
|
1121
1145
|
};
|
|
1146
|
+
/** Per-call latency breakdown when the provider reported one. Additive
|
|
1147
|
+
* beside `duration`, which keeps its turn-wall-clock meaning (queue,
|
|
1148
|
+
* retries, gates and all). Present on the error path too when the
|
|
1149
|
+
* provider returned a response (any non-2xx); absent when the call
|
|
1150
|
+
* never reached one (network failure, abort, non-provider throw). */
|
|
1151
|
+
timing?: CallTiming;
|
|
1122
1152
|
/** Response-side payload — response text, thinking. */
|
|
1123
1153
|
data: AgentCallEndData;
|
|
1124
1154
|
}) | (AxlEventBase & AskScoped & {
|
|
@@ -1548,6 +1578,13 @@ type ChatMessage = {
|
|
|
1548
1578
|
* (the option name and shape are not yet stable); today it is purely
|
|
1549
1579
|
* informational. */
|
|
1550
1580
|
agent?: string;
|
|
1581
|
+
/** Provenance of a message the Axl runtime synthesized rather than the caller
|
|
1582
|
+
* authored: the rolling conversation summary and the handoff header. Like
|
|
1583
|
+
* `agent`, never sent on the wire. Adapters use it to avoid treating
|
|
1584
|
+
* runtime-injected text as the caller's stable prompt -- the Anthropic
|
|
1585
|
+
* adapter will not place its prompt-cache breakpoint on a system message
|
|
1586
|
+
* with `origin: 'runtime'`. */
|
|
1587
|
+
origin?: 'runtime';
|
|
1551
1588
|
};
|
|
1552
1589
|
type ToolCallMessage = {
|
|
1553
1590
|
id: string;
|
|
@@ -1557,6 +1594,51 @@ type ToolCallMessage = {
|
|
|
1557
1594
|
arguments: string;
|
|
1558
1595
|
};
|
|
1559
1596
|
};
|
|
1597
|
+
/**
|
|
1598
|
+
* Per-call latency breakdown, reported by adapters that route through
|
|
1599
|
+
* `fetchWithRetry`. Every figure is a non-negative integer count of
|
|
1600
|
+
* milliseconds derived from `Date.now()` deltas — the same clock
|
|
1601
|
+
* `agent_call_end.duration` uses.
|
|
1602
|
+
*
|
|
1603
|
+
* Entirely optional and additive: a custom `Provider` that omits `timing` stays
|
|
1604
|
+
* valid, and consumers must treat every field as possibly absent.
|
|
1605
|
+
*
|
|
1606
|
+
* The buckets separate the three things that `duration` conflates — the SDK's
|
|
1607
|
+
* own pacing, the provider's throttling, and the model's actual latency:
|
|
1608
|
+
*/
|
|
1609
|
+
type CallTiming = {
|
|
1610
|
+
/**
|
|
1611
|
+
* Time parked in Axl's own opt-in `RateLimiter` (concurrency cap plus
|
|
1612
|
+
* `minIntervalMs` spacing) before the request was allowed out. `0` when the
|
|
1613
|
+
* provider has no `rateLimit` configured. This is self-imposed wait, not
|
|
1614
|
+
* provider latency.
|
|
1615
|
+
*/
|
|
1616
|
+
queuedMs: number;
|
|
1617
|
+
/** `fetch` attempts made for this call, including the final one (≥ 1). */
|
|
1618
|
+
attempts: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* First attempt's dispatch → final attempt's dispatch, i.e. everything spent
|
|
1621
|
+
* on failed attempts and their backoff sleeps. `0` for a single attempt.
|
|
1622
|
+
*/
|
|
1623
|
+
retryMs: number;
|
|
1624
|
+
/** Final dispatch → response headers. Time to first byte. */
|
|
1625
|
+
ttfbMs: number;
|
|
1626
|
+
/**
|
|
1627
|
+
* Final dispatch → first `text_delta`/`thinking_delta`. Streaming only, and
|
|
1628
|
+
* absent on a stream that ends without any content delta. This is the
|
|
1629
|
+
* model-discriminating figure: headers arrive at roughly one round trip
|
|
1630
|
+
* regardless of model, first token does not.
|
|
1631
|
+
*/
|
|
1632
|
+
firstTokenMs?: number;
|
|
1633
|
+
/**
|
|
1634
|
+
* Time attributable to the provider. For `chat()`, final dispatch → response
|
|
1635
|
+
* body parsed. For `stream()`, `ttfbMs` plus the cumulative time spent
|
|
1636
|
+
* *awaiting* body reads — time the runtime spends between reads (event
|
|
1637
|
+
* fan-out, tool-call buffering, a slow `ctx.events` consumer) is excluded by
|
|
1638
|
+
* construction, so two models stay comparable under different listener loads.
|
|
1639
|
+
*/
|
|
1640
|
+
wireMs: number;
|
|
1641
|
+
};
|
|
1560
1642
|
/** Provider response */
|
|
1561
1643
|
type ProviderResponse = {
|
|
1562
1644
|
content: string;
|
|
@@ -1574,6 +1656,8 @@ type ProviderResponse = {
|
|
|
1574
1656
|
cost?: number;
|
|
1575
1657
|
/** Provider-specific opaque metadata that needs to round-trip through conversation history. */
|
|
1576
1658
|
providerMetadata?: Record<string, unknown>;
|
|
1659
|
+
/** Per-call latency breakdown. Absent on providers that don't instrument it. */
|
|
1660
|
+
timing?: CallTiming;
|
|
1577
1661
|
};
|
|
1578
1662
|
|
|
1579
1663
|
/** Base error class for all Axl errors */
|
|
@@ -1694,9 +1778,29 @@ declare class QuorumNotMet extends AxlError {
|
|
|
1694
1778
|
declare class NoConsensus extends AxlError {
|
|
1695
1779
|
constructor(reason: string);
|
|
1696
1780
|
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Where a timed-out ask's elapsed budget went, summed over the turns that
|
|
1783
|
+
* completed before the timeout fired. Present only when at least one of those
|
|
1784
|
+
* turns reported provider `timing` — an all-zero breakdown on an uninstrumented
|
|
1785
|
+
* provider would falsely blame tools and gates.
|
|
1786
|
+
*/
|
|
1787
|
+
type TimeoutBreakdown = {
|
|
1788
|
+
/** Wall clock consumed by the operation when it timed out. */
|
|
1789
|
+
elapsedMs: number;
|
|
1790
|
+
/** Sum of `CallTiming.queuedMs` — self-imposed rate-limiter wait. */
|
|
1791
|
+
queuedMs: number;
|
|
1792
|
+
/** Sum of `CallTiming.retryMs` — failed provider attempts and their backoff. */
|
|
1793
|
+
retryMs: number;
|
|
1794
|
+
/** Sum of `CallTiming.wireMs` — provider time. */
|
|
1795
|
+
wireMs: number;
|
|
1796
|
+
/** `elapsedMs` minus the three sums: tools, gates, and runtime work. */
|
|
1797
|
+
otherMs: number;
|
|
1798
|
+
};
|
|
1697
1799
|
/** Thrown when an operation exceeds its timeout */
|
|
1698
1800
|
declare class TimeoutError extends AxlError {
|
|
1699
|
-
|
|
1801
|
+
/** Latency attribution for the timed-out operation, when measurable. */
|
|
1802
|
+
readonly breakdown?: TimeoutBreakdown;
|
|
1803
|
+
constructor(operation: string, timeoutMs: number, breakdown?: TimeoutBreakdown);
|
|
1700
1804
|
}
|
|
1701
1805
|
/** Thrown when a budget limit is exceeded */
|
|
1702
1806
|
declare class BudgetExceededError extends AxlError {
|
|
@@ -1753,6 +1857,9 @@ type AgentConfig = {
|
|
|
1753
1857
|
includeThoughts?: boolean;
|
|
1754
1858
|
toolChoice?: ToolChoice;
|
|
1755
1859
|
stop?: string[];
|
|
1860
|
+
/** Opt in to prompt caching of this agent's stable prefix (system prompt +
|
|
1861
|
+
* tools). Only Anthropic needs it; off by default. See `docs/providers.md`. */
|
|
1862
|
+
promptCache?: boolean;
|
|
1756
1863
|
/** Provider-specific options merged into API requests. Not portable across providers. */
|
|
1757
1864
|
providerOptions?: Record<string, unknown>;
|
|
1758
1865
|
/** Default rendering of a `ctx.ask` output schema into this agent's prompt.
|
|
@@ -2183,11 +2290,14 @@ declare class AxlEventBus implements AsyncIterable<AxlEvent> {
|
|
|
2183
2290
|
* shared API key can storm a provider's rate limit; a governor smooths that.
|
|
2184
2291
|
*
|
|
2185
2292
|
* ## Scope & caveats (v1)
|
|
2186
|
-
* - **Caps request concurrency, not token throughput (TPM).**
|
|
2187
|
-
*
|
|
2188
|
-
*
|
|
2189
|
-
*
|
|
2190
|
-
*
|
|
2293
|
+
* - **Caps request concurrency, not token throughput (TPM).** The permit is
|
|
2294
|
+
* released at response *headers* on BOTH transports: `fetchWithRetry`
|
|
2295
|
+
* releases in its `finally` as it returns the `Response`, and every adapter
|
|
2296
|
+
* reads the body only afterwards — so `res.json()` and stream iteration alike
|
|
2297
|
+
* run outside the permit. A slow stream therefore does not hold a permit for
|
|
2298
|
+
* its whole lifetime. Non-streaming calls still hold it across generation in
|
|
2299
|
+
* practice, because a provider sends no headers until the completion is
|
|
2300
|
+
* finished. Neither bounds tokens/min.
|
|
2191
2301
|
* - **Per provider instance.** Providers are singletons per (runtime, provider
|
|
2192
2302
|
* type), so one governor governs all calls through that adapter — but NOT
|
|
2193
2303
|
* embedder calls (the embedder is constructed outside the registry) and NOT
|
|
@@ -2517,7 +2627,21 @@ declare class OpenAICompatibleProvider implements Provider {
|
|
|
2517
2627
|
}): number | undefined;
|
|
2518
2628
|
protected parseResponse(json: OpenAIChatResponse, model: string, request?: Record<string, unknown>): ProviderResponse;
|
|
2519
2629
|
private roundTripMetadata;
|
|
2520
|
-
|
|
2630
|
+
/**
|
|
2631
|
+
* PRIVATE, and deliberately not an extension point. It was `protected`, but
|
|
2632
|
+
* nothing in or out of this repo overrides it, and `protected` could not
|
|
2633
|
+
* carry the guarantee it appeared to: TypeScript checks an override for
|
|
2634
|
+
* assignability, and a function type with fewer parameters is assignable to
|
|
2635
|
+
* one with more — so an override that simply dropped the recorder still
|
|
2636
|
+
* compiled and then reported `wireMs === ttfbMs` for the whole subclass. Its
|
|
2637
|
+
* type is not exported from the barrel either, so a subclass author could not
|
|
2638
|
+
* name what they were required to accept.
|
|
2639
|
+
*
|
|
2640
|
+
* A provider with a different wire format implements `Provider` (see
|
|
2641
|
+
* docs/providers.md); an OpenAI-compatible one adds a `ProviderProfile`.
|
|
2642
|
+
* Neither needs to reach in here.
|
|
2643
|
+
*/
|
|
2644
|
+
private parseSSEStream;
|
|
2521
2645
|
}
|
|
2522
2646
|
type OpenAIUsage = {
|
|
2523
2647
|
prompt_tokens: number;
|
|
@@ -3522,6 +3646,13 @@ declare class WorkflowContext<TInput = unknown> {
|
|
|
3522
3646
|
private readonly workflowLifecycleState;
|
|
3523
3647
|
private signal?;
|
|
3524
3648
|
private summaryCache?;
|
|
3649
|
+
/** Consecutive provider calls with promptCache on that wrote to the cache
|
|
3650
|
+
* without reading from it (prefix changes per call), and consecutive calls
|
|
3651
|
+
* with no cache activity at all (prefix below the model's minimum, which
|
|
3652
|
+
* Anthropic silently ignores). Either reports once per context. */
|
|
3653
|
+
private promptCacheColdWrites;
|
|
3654
|
+
private promptCacheInactive;
|
|
3655
|
+
private promptCacheWarned;
|
|
3525
3656
|
private workflowName?;
|
|
3526
3657
|
private mcpManager?;
|
|
3527
3658
|
private spanManager?;
|
|
@@ -4646,12 +4777,62 @@ declare class AxlRuntime extends EventEmitter {
|
|
|
4646
4777
|
*/
|
|
4647
4778
|
trackExecution<T>(fn: () => Promise<T>, options?: {
|
|
4648
4779
|
captureTraces?: boolean;
|
|
4780
|
+
captureTimingSamples?: boolean;
|
|
4649
4781
|
}): Promise<{
|
|
4650
4782
|
result: T;
|
|
4651
4783
|
cost: number;
|
|
4652
4784
|
/** True when any tracked call was unpriced — `cost` is then a LOWER BOUND.
|
|
4653
4785
|
* Aggregate counterpart of `ExecutionInfo.unpriced`, via `isUnpricedLeaf`. */
|
|
4654
4786
|
unpriced: boolean;
|
|
4787
|
+
/**
|
|
4788
|
+
* Per-model sums of `agent_call_end.timing`, keyed by the same effective
|
|
4789
|
+
* model URI as `metadata.modelCallCounts`. Present only when at least one
|
|
4790
|
+
* tracked call reported timing, so absence means "nothing was instrumented"
|
|
4791
|
+
* rather than "everything took zero ms".
|
|
4792
|
+
*
|
|
4793
|
+
* `calls` counts the SUCCESSFUL timed calls only — it can be lower than the
|
|
4794
|
+
* same model's `modelCallCounts` entry when a provider omits `timing` or a
|
|
4795
|
+
* call failed. Divide a sum by `calls`, never by `modelCallCounts`.
|
|
4796
|
+
*
|
|
4797
|
+
* Failed calls are excluded even though they now report timing: a non-2xx
|
|
4798
|
+
* response is a measured round trip, but a rollup blending answers with
|
|
4799
|
+
* failures describes neither, and a fast 429 would improve a model's
|
|
4800
|
+
* apparent latency. The failures stay on the events themselves.
|
|
4801
|
+
*
|
|
4802
|
+
* `firstTokenMs` is streaming-only and is summed across the calls that
|
|
4803
|
+
* reported it; it is omitted entirely when no call did, so a non-streaming
|
|
4804
|
+
* model never reports a misleading `0`. Its denominator is `firstTokenCalls`,
|
|
4805
|
+
* NOT `calls` — the two travel together and are present or absent together,
|
|
4806
|
+
* so a mixed streaming/non-streaming model still yields an exact mean.
|
|
4807
|
+
*
|
|
4808
|
+
* Sums are per-call totals, so `wireMs` across concurrent calls can exceed
|
|
4809
|
+
* the wall clock of `fn` — that is expected under fan-out and is why
|
|
4810
|
+
* nothing in the core sums timing at the ask level.
|
|
4811
|
+
*
|
|
4812
|
+
* `samples` carries the raw per-call `CallTiming` blocks behind the sums, in
|
|
4813
|
+
* `agent_call_end` order, so a caller that needs a DISTRIBUTION (percentiles,
|
|
4814
|
+
* min/max) rather than a mean can compute one over real per-call values. It
|
|
4815
|
+
* is the same data the sums were built from — `samples.length === calls` —
|
|
4816
|
+
* and is deliberately not something callers should persist per item: the
|
|
4817
|
+
* sums are the compact form, `samples` is the working form.
|
|
4818
|
+
*
|
|
4819
|
+
* It is **opt-in** via `captureTimingSamples` and the key is absent
|
|
4820
|
+
* otherwise. Retaining it is O(calls) in memory for the lifetime of `fn`,
|
|
4821
|
+
* which no caller should pay for a figure it never reads — the sums alone
|
|
4822
|
+
* are O(models).
|
|
4823
|
+
*/
|
|
4824
|
+
modelTiming?: Record<string, {
|
|
4825
|
+
calls: number;
|
|
4826
|
+
queuedMs: number;
|
|
4827
|
+
retryMs: number;
|
|
4828
|
+
wireMs: number;
|
|
4829
|
+
firstTokenMs?: number;
|
|
4830
|
+
/** Timed calls that reported a `firstTokenMs` — the denominator for it. */
|
|
4831
|
+
firstTokenCalls?: number;
|
|
4832
|
+
/** The per-call blocks the sums were built from, in event order.
|
|
4833
|
+
* `length === calls`. Present only under `captureTimingSamples`. */
|
|
4834
|
+
samples?: CallTiming[];
|
|
4835
|
+
}>;
|
|
4655
4836
|
traces?: AxlEvent[];
|
|
4656
4837
|
metadata: {
|
|
4657
4838
|
models: string[];
|
|
@@ -5354,6 +5535,16 @@ declare class ProviderError extends AxlError {
|
|
|
5354
5535
|
* and is redaction-eligible). See `docs/security.md`.
|
|
5355
5536
|
*/
|
|
5356
5537
|
readonly body?: string;
|
|
5538
|
+
/**
|
|
5539
|
+
* Per-call latency breakdown for the failed call, when the transport reached
|
|
5540
|
+
* the provider and a `Response` came back (any non-2xx, streamed or not).
|
|
5541
|
+
* Absent — the KEY itself, not `undefined` — when there is nothing to
|
|
5542
|
+
* report: a network-level failure (`status: 0`) never got a response, and a
|
|
5543
|
+
* custom transport may not instrument timing at all. `declare` keeps the
|
|
5544
|
+
* property from being defined as `undefined` under `useDefineForClassFields`,
|
|
5545
|
+
* so `'timing' in err` distinguishes "not measured" from "measured as zero".
|
|
5546
|
+
*/
|
|
5547
|
+
readonly timing?: CallTiming;
|
|
5357
5548
|
constructor(args: {
|
|
5358
5549
|
provider: string;
|
|
5359
5550
|
status: number;
|
|
@@ -5362,6 +5553,7 @@ declare class ProviderError extends AxlError {
|
|
|
5362
5553
|
retryAfterMs?: number;
|
|
5363
5554
|
requestId?: string;
|
|
5364
5555
|
body?: string;
|
|
5556
|
+
timing?: CallTiming;
|
|
5365
5557
|
});
|
|
5366
5558
|
}
|
|
5367
5559
|
/**
|
|
@@ -5506,6 +5698,8 @@ declare class AnthropicProvider implements Provider {
|
|
|
5506
5698
|
validateInput(request: ProviderInputValidationRequest): ProviderInputValidationResult;
|
|
5507
5699
|
/** Anthropic ignores native `json_schema` structurally — Axl uses a system
|
|
5508
5700
|
* prompt JSON instruction + client-side Zod validation (see buildRequest). */
|
|
5701
|
+
/** The only built-in adapter that honors `promptCache` (see buildBody). */
|
|
5702
|
+
realizesPromptCache(): boolean;
|
|
5509
5703
|
nativeStructuredOutputSupport(): 'unsupported';
|
|
5510
5704
|
private baseUrl;
|
|
5511
5705
|
private apiKeySource;
|
|
@@ -6270,4 +6464,4 @@ declare class NoopSpanManager implements SpanManager {
|
|
|
6270
6464
|
*/
|
|
6271
6465
|
declare function createSpanManager(config?: TelemetryConfig): Promise<SpanManager>;
|
|
6272
6466
|
|
|
6273
|
-
export { AXL_EVENT_TYPES, AXL_EVENT_TYPES_V2, AXL_TOOL_LIFECYCLE_TYPES_V2, AZURE_PROFILE, type Agent, type AgentCallEndData, type AgentCallInfo, type AgentCallParams, type AgentCallStartData, type AgentConfig, AnthropicProvider, type AnyWorkflow, type ApiKeySource, 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 CapabilityFlags, type ChatMessage, type ChatOptions, type CheckpointEventData, type CoalescedPartialObject, type CreateContextOptions, DEEPSEEK_PROFILE, type DecisionCleanupFailedEvent, type DelegateData, type DelegateOptions, type Effort, type EffortResolution, type EmbedResult, type EmbedUsage, type Embedder, type EvalExecuteWorkflow, type EvalHistoryEntry, type EventStreamOptions, EventStreamOverflowError, type ExecuteOptions, type ExecutionInfo, type ExecutionInfoV1, type ExecutionInfoV2, type ExecutionState, 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 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, NoConsensus, NoopSpanManager, OLLAMA_PROFILE, OPENAI_PRICING, OPENAI_PROFILE, OPENROUTER_PROFILE, type ObservationStatus, type OpenAICompatibleOptions, OpenAICompatibleProvider, OpenAIEmbedder, OpenAIProvider, OpenAIResponsesProvider, OpenAITranscriptionProvider, OpenRouterTranscriptionProvider, type OutputGuardrail, type OutputValidator, type PendingDecision, type PerModel, type PricingSource, type PricingTable, 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 ReasoningEmit, type ReasoningProfile, type ReasoningRoundTrip, type RecallOptions, type RecallResult, type RecordedAudioSource, RedisStore, type RememberOptions, type RememberResult, type ResolvedThinkingOptions, type Result, type RetryFeedbackHook, type RetryFeedbackInfo, type RetryFeedbackResult, type RetryPolicy, SGLANG_PROFILE, SQLiteStore, type SchemaCheckData, type SchemaDiagnosticData, type SchemaPromptOption, Session, type SessionOptions, type SpanHandle, type SpanManager, type SpawnOptions, SqliteVectorStore, type StateStore, type StreamChunk, type StringDeltaData, type StringStreamEvent, type StringStreamFilter, type TelemetryConfig, ThinkTagScanner, 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 Transcript, type TranscriptionCapabilities, TranscriptionOperationError, type TranscriptionProvider, TranscriptionProviderRegistry, type TranscriptionProviderRequest, type TranscriptionProviderResult, type TranscriptionRequest, UnsupportedEventSchemaVersionError, UnsupportedModelInputError, 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, extractJson, extractThinkTags, findConfig, getEventSchemaVersion, getExecutionEventSchemaVersion, hasPositiveBillableWork, hasPositiveTokens, importModule, inputText, isCostBearingLeaf, isRetryableStatus, isRootLevel, isUnpricedLeaf, isUsableCost, needsTsxLoader, normalizeStoredExecution, openaiReasoningEmit, parsePartialJson, pickDefault, pickExport, priceFromTable, reasoningEffortEmit, reasoningObjectEmit, redactEvent, redactHistoricalEvent, registerConditions, resolveApiKey, resolvePerModel, resolveRuntime, resolveThinkingOptions, stringStreamFromEvents, tool, workflow, zodToJsonSchema };
|
|
6467
|
+
export { AXL_EVENT_TYPES, AXL_EVENT_TYPES_V2, AXL_TOOL_LIFECYCLE_TYPES_V2, AZURE_PROFILE, type Agent, type AgentCallEndData, type AgentCallInfo, type AgentCallParams, type AgentCallStartData, type AgentConfig, AnthropicProvider, type AnyWorkflow, type ApiKeySource, 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 ChatMessage, type ChatOptions, type CheckpointEventData, type CoalescedPartialObject, type CreateContextOptions, DEEPSEEK_PROFILE, type DecisionCleanupFailedEvent, type DelegateData, type DelegateOptions, type Effort, type EffortResolution, type EmbedResult, type EmbedUsage, type Embedder, type EvalExecuteWorkflow, type EvalHistoryEntry, type EventStreamOptions, EventStreamOverflowError, type ExecuteOptions, type ExecutionInfo, type ExecutionInfoV1, type ExecutionInfoV2, type ExecutionState, 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 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, NoConsensus, NoopSpanManager, OLLAMA_PROFILE, OPENAI_PRICING, OPENAI_PROFILE, OPENROUTER_PROFILE, type ObservationStatus, type OpenAICompatibleOptions, OpenAICompatibleProvider, OpenAIEmbedder, OpenAIProvider, OpenAIResponsesProvider, OpenAITranscriptionProvider, OpenRouterTranscriptionProvider, type OutputGuardrail, type OutputValidator, type PendingDecision, type PerModel, type PricingSource, type PricingTable, 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 ReasoningEmit, type ReasoningProfile, type ReasoningRoundTrip, type RecallOptions, type RecallResult, type RecordedAudioSource, RedisStore, type RememberOptions, type RememberResult, type ResolvedThinkingOptions, type Result, type RetryFeedbackHook, type RetryFeedbackInfo, type RetryFeedbackResult, type RetryPolicy, SGLANG_PROFILE, SQLiteStore, type SchemaCheckData, type SchemaDiagnosticData, type SchemaPromptOption, Session, type SessionOptions, type SpanHandle, type SpanManager, type SpawnOptions, SqliteVectorStore, 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 Transcript, type TranscriptionCapabilities, TranscriptionOperationError, type TranscriptionProvider, TranscriptionProviderRegistry, type TranscriptionProviderRequest, type TranscriptionProviderResult, type TranscriptionRequest, UnsupportedEventSchemaVersionError, UnsupportedModelInputError, 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, extractJson, extractThinkTags, findConfig, getEventSchemaVersion, getExecutionEventSchemaVersion, hasPositiveBillableWork, hasPositiveTokens, importModule, inputText, isCostBearingLeaf, isRetryableStatus, isRootLevel, isUnpricedLeaf, isUsableCost, needsTsxLoader, normalizeStoredExecution, openaiReasoningEmit, parsePartialJson, pickDefault, pickExport, priceFromTable, reasoningEffortEmit, reasoningObjectEmit, redactEvent, redactHistoricalEvent, registerConditions, resolveApiKey, resolvePerModel, resolveRuntime, resolveThinkingOptions, stringStreamFromEvents, tool, workflow, zodToJsonSchema };
|