bitfab 0.68.4 → 0.68.5
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/{autoTrace-D3-OZcmR.cjs → autoTrace-DUmR1KJ8.cjs} +417 -62
- package/dist/autoTrace-DUmR1KJ8.cjs.map +1 -0
- package/dist/{autoTrace-ghnojSj9.js → autoTrace-DVnpnuMb.js} +322 -57
- package/dist/autoTrace-DVnpnuMb.js.map +1 -0
- package/dist/autoTrace.cjs +3 -1
- package/dist/autoTrace.d.cts +29 -1
- package/dist/autoTrace.d.ts +29 -1
- package/dist/autoTrace.js +1 -1
- package/dist/{babelPlugin-0uOq-j1Q.cjs → babelPlugin-C0Im6AZ2.cjs} +37 -14
- package/dist/babelPlugin-C0Im6AZ2.cjs.map +1 -0
- package/dist/{babelPlugin-Muq0uuuu.js → babelPlugin-hS2Hb2vt.js} +37 -14
- package/dist/babelPlugin-hS2Hb2vt.js.map +1 -0
- package/dist/baml.cjs +1 -1
- package/dist/baml.js +1 -1
- package/dist/{bamlPeer-BUoZgNxZ.cjs → bamlPeer-5Ohpq8q9.cjs} +3 -17
- package/dist/bamlPeer-5Ohpq8q9.cjs.map +1 -0
- package/dist/{bamlPeer-CIVwS68E.js → bamlPeer-Dyeb3e5o.js} +3 -11
- package/dist/bamlPeer-Dyeb3e5o.js.map +1 -0
- package/dist/{http-BGY4ULH5.js → http-CDqaLdge.js} +3 -3
- package/dist/{http-BGY4ULH5.js.map → http-CDqaLdge.js.map} +1 -1
- package/dist/{http-C-HrwUb8.cjs → http-DFqFW_hG.cjs} +4 -4
- package/dist/{http-C-HrwUb8.cjs.map → http-DFqFW_hG.cjs.map} +1 -1
- package/dist/{index-BcGxu85i.d.cts → index-DMJ6qrtL.d.cts} +109 -2
- package/dist/{index-BcGxu85i.d.ts → index-DMJ6qrtL.d.ts} +109 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node.cjs +3 -3
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/optionalPeer-CUH756lt.cjs +17 -0
- package/dist/optionalPeer-CUH756lt.cjs.map +1 -0
- package/dist/optionalPeer-CczrzrXx.js +12 -0
- package/dist/optionalPeer-CczrzrXx.js.map +1 -0
- package/dist/{registryCommand-Dk4Y1ZgW.js → registryCommand-D7bfo0Au.js} +179 -8
- package/dist/registryCommand-D7bfo0Au.js.map +1 -0
- package/dist/replayCli.js +1 -1
- package/dist/seedCli.js +1 -1
- package/dist/{src-BG2_8Fpf.cjs → src-CxELko3f.cjs} +52 -80
- package/dist/src-CxELko3f.cjs.map +1 -0
- package/dist/{src-Cmfs_7Ib.js → src-DvVk1aLi.js} +41 -69
- package/dist/src-DvVk1aLi.js.map +1 -0
- package/dist/transform/babel.cjs +1 -1
- package/dist/transform/babel.js +1 -1
- package/dist/transform/loaderRuntime.cjs +2 -2
- package/dist/transform/loaderRuntime.js +2 -2
- package/dist/transform/nodeLoader.js +36 -13
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/swc.cjs +1 -1
- package/dist/transform/swc.js +1 -1
- package/dist/transform/unplugin.cjs +2 -2
- package/dist/transform/unplugin.js +2 -2
- package/dist/{transform-CAJyLLe2.js → transform-BL1fJW-C.js} +2 -2
- package/dist/{transform-CAJyLLe2.js.map → transform-BL1fJW-C.js.map} +1 -1
- package/dist/{transform-ClCOpCZ2.cjs → transform-C4H7TKW-.cjs} +2 -2
- package/dist/{transform-ClCOpCZ2.cjs.map → transform-C4H7TKW-.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/autoTrace-D3-OZcmR.cjs.map +0 -1
- package/dist/autoTrace-ghnojSj9.js.map +0 -1
- package/dist/babelPlugin-0uOq-j1Q.cjs.map +0 -1
- package/dist/babelPlugin-Muq0uuuu.js.map +0 -1
- package/dist/bamlPeer-BUoZgNxZ.cjs.map +0 -1
- package/dist/bamlPeer-CIVwS68E.js.map +0 -1
- package/dist/registryCommand-Dk4Y1ZgW.js.map +0 -1
- package/dist/src-BG2_8Fpf.cjs.map +0 -1
- package/dist/src-Cmfs_7Ib.js.map +0 -1
|
@@ -3607,6 +3607,14 @@ interface WrapOpenRouterOptions<TResponse> {
|
|
|
3607
3607
|
/** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
|
|
3608
3608
|
onResponse?: (response: TResponse) => void;
|
|
3609
3609
|
}
|
|
3610
|
+
interface WrapAnthropicOptions<TResponse> {
|
|
3611
|
+
/** Called after each call with the Anthropic message, for the caller's own usage or cost reporting. */
|
|
3612
|
+
onResponse?: (response: TResponse) => void;
|
|
3613
|
+
}
|
|
3614
|
+
interface WrapOpenAIResponsesOptions<TResponse> {
|
|
3615
|
+
/** Called after each call with the OpenAI response, for the caller's own usage or cost reporting. */
|
|
3616
|
+
onResponse?: (response: TResponse) => void;
|
|
3617
|
+
}
|
|
3610
3618
|
interface WrapBAMLOptions {
|
|
3611
3619
|
/** Called after each BAML invocation with the Collector instance. */
|
|
3612
3620
|
onCollector?: (collector: unknown) => void;
|
|
@@ -4350,6 +4358,79 @@ declare class Bitfab {
|
|
|
4350
4358
|
* @returns An async function with the same signature that records each call
|
|
4351
4359
|
*/
|
|
4352
4360
|
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4361
|
+
/**
|
|
4362
|
+
* Wrap a function that sends a request to the Anthropic Messages API to
|
|
4363
|
+
* record the call's prompt, model, token usage, and duration. Bitfab works
|
|
4364
|
+
* out the cost from the model and token counts.
|
|
4365
|
+
*
|
|
4366
|
+
* Like `wrapOpenRouter`, it opens no span of its own. It writes into the
|
|
4367
|
+
* span that is current when the call starts, so call it inside a traced
|
|
4368
|
+
* function. The wrapped function must return the message, as
|
|
4369
|
+
* `anthropic.messages.create` does. When its first argument is the request,
|
|
4370
|
+
* the request's `system` and `messages` become the span's prompt. One
|
|
4371
|
+
* context entry holds `provider` (`"anthropic"`), `model`, `inputTokens`
|
|
4372
|
+
* (every prompt token, cache reads and cache writes included),
|
|
4373
|
+
* `outputTokens`, `cachedInputTokens` (cache reads), and `durationMs`;
|
|
4374
|
+
* fields the response omits are left out.
|
|
4375
|
+
*
|
|
4376
|
+
* Beneath a `withTrace()` root, each `.messages.create(...)` call on an
|
|
4377
|
+
* `@anthropic-ai/sdk` client in code compiled by the build transform is
|
|
4378
|
+
* recorded without this wrapper as its own `llm` span, and a
|
|
4379
|
+
* `wrapAnthropic` around such a call records nothing more. Streaming calls
|
|
4380
|
+
* (`stream: true`) are not recorded.
|
|
4381
|
+
*
|
|
4382
|
+
* ```typescript
|
|
4383
|
+
* const anthropic = new Anthropic()
|
|
4384
|
+
* const send = client.wrapAnthropic(
|
|
4385
|
+
* anthropic.messages.create.bind(anthropic.messages),
|
|
4386
|
+
* )
|
|
4387
|
+
* const message = await send({
|
|
4388
|
+
* model: "claude-sonnet-4-5",
|
|
4389
|
+
* max_tokens: 1024,
|
|
4390
|
+
* messages: [{ role: "user", content: text }],
|
|
4391
|
+
* })
|
|
4392
|
+
* ```
|
|
4393
|
+
*
|
|
4394
|
+
* @param method - A named function that sends the request and returns the message
|
|
4395
|
+
* @param options - `onResponse` is called with each message after it is recorded
|
|
4396
|
+
* @returns An async function with the same signature that records each call
|
|
4397
|
+
*/
|
|
4398
|
+
wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Wrap a function that sends a request to the OpenAI Responses API to record
|
|
4401
|
+
* the call's prompt, model, token usage, and duration. Bitfab works out the
|
|
4402
|
+
* cost from the model and token counts.
|
|
4403
|
+
*
|
|
4404
|
+
* Like `wrapOpenRouter`, it opens no span of its own. It writes into the
|
|
4405
|
+
* span that is current when the call starts, so call it inside a traced
|
|
4406
|
+
* function. The wrapped function must return the response, as
|
|
4407
|
+
* `openai.responses.create` does. When its first argument is the request,
|
|
4408
|
+
* the request's `instructions` and `input` become the span's prompt. One
|
|
4409
|
+
* context entry holds `provider` (`"openai"`), `model`, `inputTokens`,
|
|
4410
|
+
* `outputTokens`, `cachedInputTokens`, `reasoningTokens`, `costUsd` (only
|
|
4411
|
+
* when the response reports `usage.cost`), and `durationMs`; fields the
|
|
4412
|
+
* response omits are left out.
|
|
4413
|
+
*
|
|
4414
|
+
* Beneath a `withTrace()` root, each `.responses.create(...)` call on an
|
|
4415
|
+
* `openai` client in code compiled by the build transform is recorded
|
|
4416
|
+
* without this wrapper as its own `llm` span, and a `wrapOpenAIResponses`
|
|
4417
|
+
* around such a call records nothing more. Streaming calls (`stream: true`)
|
|
4418
|
+
* are not recorded.
|
|
4419
|
+
*
|
|
4420
|
+
* ```typescript
|
|
4421
|
+
* const openai = new OpenAI()
|
|
4422
|
+
* const respond = client.wrapOpenAIResponses(
|
|
4423
|
+
* openai.responses.create.bind(openai.responses),
|
|
4424
|
+
* )
|
|
4425
|
+
* const response = await respond({ model: "gpt-5-mini", input: text })
|
|
4426
|
+
* ```
|
|
4427
|
+
*
|
|
4428
|
+
* @param method - A named function that sends the request and returns the response
|
|
4429
|
+
* @param options - `onResponse` is called with each response after it is recorded
|
|
4430
|
+
* @returns An async function with the same signature that records each call
|
|
4431
|
+
*/
|
|
4432
|
+
wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4433
|
+
private wrapClientCall;
|
|
4353
4434
|
/**
|
|
4354
4435
|
* Wrap a function to automatically create a span for its inputs and outputs.
|
|
4355
4436
|
*
|
|
@@ -4764,6 +4845,32 @@ declare class BitfabFunction {
|
|
|
4764
4845
|
* @returns An async function with the same signature that records each call
|
|
4765
4846
|
*/
|
|
4766
4847
|
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4848
|
+
/**
|
|
4849
|
+
* Wrap a function that sends a request to the Anthropic Messages API to
|
|
4850
|
+
* record the call's prompt, model, token usage, and duration. Delegates to
|
|
4851
|
+
* the parent client's wrapAnthropic method.
|
|
4852
|
+
*
|
|
4853
|
+
* Like `wrapJev`, it does not use the bound key and opens no span of its
|
|
4854
|
+
* own: it writes into the span that is current when the call starts.
|
|
4855
|
+
*
|
|
4856
|
+
* @param method - A named function that sends the request and returns the message
|
|
4857
|
+
* @param options - `onResponse` is called with each message after it is recorded
|
|
4858
|
+
* @returns An async function with the same signature that records each call
|
|
4859
|
+
*/
|
|
4860
|
+
wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4861
|
+
/**
|
|
4862
|
+
* Wrap a function that sends a request to the OpenAI Responses API to record
|
|
4863
|
+
* the call's prompt, model, token usage, and duration. Delegates to the
|
|
4864
|
+
* parent client's wrapOpenAIResponses method.
|
|
4865
|
+
*
|
|
4866
|
+
* Like `wrapJev`, it does not use the bound key and opens no span of its
|
|
4867
|
+
* own: it writes into the span that is current when the call starts.
|
|
4868
|
+
*
|
|
4869
|
+
* @param method - A named function that sends the request and returns the response
|
|
4870
|
+
* @param options - `onResponse` is called with each response after it is recorded
|
|
4871
|
+
* @returns An async function with the same signature that records each call
|
|
4872
|
+
*/
|
|
4873
|
+
wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4767
4874
|
}
|
|
4768
4875
|
//#endregion
|
|
4769
4876
|
//#region src/commitRef.d.ts
|
|
@@ -4784,7 +4891,7 @@ interface CommitRef {
|
|
|
4784
4891
|
/**
|
|
4785
4892
|
* SDK version from package.json (injected at build time)
|
|
4786
4893
|
*/
|
|
4787
|
-
declare const __version__ = "0.68.
|
|
4894
|
+
declare const __version__ = "0.68.5";
|
|
4788
4895
|
//#endregion
|
|
4789
4896
|
//#region src/constants.d.ts
|
|
4790
4897
|
/**
|
|
@@ -4926,4 +5033,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4926
5033
|
run?: boolean;
|
|
4927
5034
|
}): Promise<SeedResult>;
|
|
4928
5035
|
//#endregion
|
|
4929
|
-
export {
|
|
5036
|
+
export { RivetEffectType as $, ExperimentCategoryTally as $n, DbBranchTimings as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, UpdateDatasetParams as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioSource as Bn, CategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, Approver as Ci, AssertionVerdictEvidence as Cn, ListDatasetsParams as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, SaveAssertionsParams as Dn, RerunGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, JustificationSpan as Ei, SaveAssertionsAllParams as En, RerunGradersOptions as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, VercelStreamResult as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertionsUpdate as Gn, CapturedSpan as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, TraceAssertion as Hn, CategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, BitfabClaudeAgentHandler as Ir, GraderVerdict as It, SpanListParams as J, TraceSearchResult as Jn, SpanLookup as Jr, LabelAction as Jt, ListedSpan as K, TraceSearchFilters as Kn, CodeChangeFile as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, AssertionCategoriesClient as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, BitfabVercelAiHandler as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, VercelCallParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, SaveScenarioActualOutcome as On, SaveDatasetParams as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, VercelGenerateResult as Pr, GraderLabelSource as Pt, RivetContextLike as Q, Experiment as Qn, flushTraces as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, AssertionCategory as Rr, GraderVerdictSource as Rt, DetachedTrace as S, ApprovalState as Si, AssertionRewriteStatus as Sn, GraderRerunTimeoutError as Sr, OrganizationMember as St, ReseedOptions as T, Justification as Ti, SaveAssertion as Tn, RemoveDatasetTracesResult as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, TraceAssertionSource as Un, SaveAssertionCategoryParams as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioTrigger as Vn, Category as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, TraceAssertionsResult as Wn, SaveCategoryParams as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceTargetOccurrence as Xn, SpanType as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceTarget as Yn, SpanOccurrence as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TracesClient as Zn, TokenUsage as Zr, LabelSource as Zt, BitfabConfig as _, SelectiveReplayReport as _i, AssertionGenerationError as _n, GraderRerun as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, NO_MOCK_OVERRIDE as ai, Verdict as an, ExperimentRunBy as ar, DbBranchOptions as at, CurrentSpan as b, ProviderDefinition as bi, AssertionLabelEvidence as bn, GraderRerunResult as br, ReplayInterrupt as bt, SeedResult as c, BitfabError as ci, VerdictOutcome as cn, ExperimentTotals as cr, ReplayError as ct, seedFromRegistry as d, DbSnapshotProvider as di, VerdictTarget as dn, AddDatasetGradersResult as dr, ReplayItemFinishProgress as dt, MockOverride as ei, LabelUpdate as en, ExperimentCodeChangeTotals as er, RivetIntegrationOptions as et, finalizers as f, DbSnapshotRef as fi, VerdictUpdate as fn, AddDatasetTracesResult as fr, ReplayItemStartProgress as ft, Bitfab as g, SelectiveReplayOptions as gi, AssertionGeneration as gn, DatasetsClient as gr, ReplayResult as gt, CommitRef as h, SelectiveReplayDecision as hi, AssertionEvidenceParameter as hn, DatasetTraceIds as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockValue as ii, TraceVerdicts as in, ExperimentRollupResult as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, BitfabLanguageModelMiddleware as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, SaveScenarioData as kn, SaveDatasetResult as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, MixedTracingError as li, VerdictSource as ln, ExperimentsClient as lr, ReplayExperiment as lt, __version__ as m, ReplayNodeIdentity as mi, ArchiveAssertionsParams as mn, DatasetGraderRef as mr, ReplayProgress as mt, ReplayRegistration as n, MockOverrideInput as ni, PassFailVerdict as nn, ExperimentPage as nr, AdaptContext as nt, ReseedRegistryResult as o, NodeMatcher as oi, VerdictAction as on, ExperimentStatus as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SUPPORTED_PROVIDERS as pi, VerdictsClient as pn, Dataset as pr, ReplayOptions as pt, SpanListField as q, TraceSearchParams as qn, HttpClient as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverrideResolver as ri, TraceLabels as rn, ExperimentRollup as rr, AdaptInputsFn as rt, SeedCase as s, SpanNodeMeta as si, VerdictConfidence as sn, ExperimentTally as sr, MockStrategy as st, ReplayOptionsFactory as t, MockOverrideCtx as ti, LabelsClient as tn, ExperimentJitter as tr, ReplayBranch as tt, reseedFromRegistry as u, DbSnapshotConfig as ui, VerdictStatus as un, ListExperimentsParams as ur, ReplayItem as ut, BitfabFunction as v, AllowedEnvVars as vi, AssertionGenerationStatus as vn, GraderRerunError as vr, reportReplayProgress as vt, NodeOptions as w, Assignee as wi, GenerateAssertionsOptions as wn, RemoveDatasetGradersResult as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, ApprovalFields as xi, AssertionRewrite as xn, GraderRerunStatus as xr, ReplayInterruptSignal as xt, CaptureWhen as y, BamlExecutionResult as yi, AssertionGenerationTimeoutError as yn, GraderRerunProgress as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioHistoryEntry as zn, AssertionCategorySummary as zr, GraderVerdictUpdate as zt };
|
|
@@ -3607,6 +3607,14 @@ interface WrapOpenRouterOptions<TResponse> {
|
|
|
3607
3607
|
/** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
|
|
3608
3608
|
onResponse?: (response: TResponse) => void;
|
|
3609
3609
|
}
|
|
3610
|
+
interface WrapAnthropicOptions<TResponse> {
|
|
3611
|
+
/** Called after each call with the Anthropic message, for the caller's own usage or cost reporting. */
|
|
3612
|
+
onResponse?: (response: TResponse) => void;
|
|
3613
|
+
}
|
|
3614
|
+
interface WrapOpenAIResponsesOptions<TResponse> {
|
|
3615
|
+
/** Called after each call with the OpenAI response, for the caller's own usage or cost reporting. */
|
|
3616
|
+
onResponse?: (response: TResponse) => void;
|
|
3617
|
+
}
|
|
3610
3618
|
interface WrapBAMLOptions {
|
|
3611
3619
|
/** Called after each BAML invocation with the Collector instance. */
|
|
3612
3620
|
onCollector?: (collector: unknown) => void;
|
|
@@ -4350,6 +4358,79 @@ declare class Bitfab {
|
|
|
4350
4358
|
* @returns An async function with the same signature that records each call
|
|
4351
4359
|
*/
|
|
4352
4360
|
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4361
|
+
/**
|
|
4362
|
+
* Wrap a function that sends a request to the Anthropic Messages API to
|
|
4363
|
+
* record the call's prompt, model, token usage, and duration. Bitfab works
|
|
4364
|
+
* out the cost from the model and token counts.
|
|
4365
|
+
*
|
|
4366
|
+
* Like `wrapOpenRouter`, it opens no span of its own. It writes into the
|
|
4367
|
+
* span that is current when the call starts, so call it inside a traced
|
|
4368
|
+
* function. The wrapped function must return the message, as
|
|
4369
|
+
* `anthropic.messages.create` does. When its first argument is the request,
|
|
4370
|
+
* the request's `system` and `messages` become the span's prompt. One
|
|
4371
|
+
* context entry holds `provider` (`"anthropic"`), `model`, `inputTokens`
|
|
4372
|
+
* (every prompt token, cache reads and cache writes included),
|
|
4373
|
+
* `outputTokens`, `cachedInputTokens` (cache reads), and `durationMs`;
|
|
4374
|
+
* fields the response omits are left out.
|
|
4375
|
+
*
|
|
4376
|
+
* Beneath a `withTrace()` root, each `.messages.create(...)` call on an
|
|
4377
|
+
* `@anthropic-ai/sdk` client in code compiled by the build transform is
|
|
4378
|
+
* recorded without this wrapper as its own `llm` span, and a
|
|
4379
|
+
* `wrapAnthropic` around such a call records nothing more. Streaming calls
|
|
4380
|
+
* (`stream: true`) are not recorded.
|
|
4381
|
+
*
|
|
4382
|
+
* ```typescript
|
|
4383
|
+
* const anthropic = new Anthropic()
|
|
4384
|
+
* const send = client.wrapAnthropic(
|
|
4385
|
+
* anthropic.messages.create.bind(anthropic.messages),
|
|
4386
|
+
* )
|
|
4387
|
+
* const message = await send({
|
|
4388
|
+
* model: "claude-sonnet-4-5",
|
|
4389
|
+
* max_tokens: 1024,
|
|
4390
|
+
* messages: [{ role: "user", content: text }],
|
|
4391
|
+
* })
|
|
4392
|
+
* ```
|
|
4393
|
+
*
|
|
4394
|
+
* @param method - A named function that sends the request and returns the message
|
|
4395
|
+
* @param options - `onResponse` is called with each message after it is recorded
|
|
4396
|
+
* @returns An async function with the same signature that records each call
|
|
4397
|
+
*/
|
|
4398
|
+
wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Wrap a function that sends a request to the OpenAI Responses API to record
|
|
4401
|
+
* the call's prompt, model, token usage, and duration. Bitfab works out the
|
|
4402
|
+
* cost from the model and token counts.
|
|
4403
|
+
*
|
|
4404
|
+
* Like `wrapOpenRouter`, it opens no span of its own. It writes into the
|
|
4405
|
+
* span that is current when the call starts, so call it inside a traced
|
|
4406
|
+
* function. The wrapped function must return the response, as
|
|
4407
|
+
* `openai.responses.create` does. When its first argument is the request,
|
|
4408
|
+
* the request's `instructions` and `input` become the span's prompt. One
|
|
4409
|
+
* context entry holds `provider` (`"openai"`), `model`, `inputTokens`,
|
|
4410
|
+
* `outputTokens`, `cachedInputTokens`, `reasoningTokens`, `costUsd` (only
|
|
4411
|
+
* when the response reports `usage.cost`), and `durationMs`; fields the
|
|
4412
|
+
* response omits are left out.
|
|
4413
|
+
*
|
|
4414
|
+
* Beneath a `withTrace()` root, each `.responses.create(...)` call on an
|
|
4415
|
+
* `openai` client in code compiled by the build transform is recorded
|
|
4416
|
+
* without this wrapper as its own `llm` span, and a `wrapOpenAIResponses`
|
|
4417
|
+
* around such a call records nothing more. Streaming calls (`stream: true`)
|
|
4418
|
+
* are not recorded.
|
|
4419
|
+
*
|
|
4420
|
+
* ```typescript
|
|
4421
|
+
* const openai = new OpenAI()
|
|
4422
|
+
* const respond = client.wrapOpenAIResponses(
|
|
4423
|
+
* openai.responses.create.bind(openai.responses),
|
|
4424
|
+
* )
|
|
4425
|
+
* const response = await respond({ model: "gpt-5-mini", input: text })
|
|
4426
|
+
* ```
|
|
4427
|
+
*
|
|
4428
|
+
* @param method - A named function that sends the request and returns the response
|
|
4429
|
+
* @param options - `onResponse` is called with each response after it is recorded
|
|
4430
|
+
* @returns An async function with the same signature that records each call
|
|
4431
|
+
*/
|
|
4432
|
+
wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4433
|
+
private wrapClientCall;
|
|
4353
4434
|
/**
|
|
4354
4435
|
* Wrap a function to automatically create a span for its inputs and outputs.
|
|
4355
4436
|
*
|
|
@@ -4764,6 +4845,32 @@ declare class BitfabFunction {
|
|
|
4764
4845
|
* @returns An async function with the same signature that records each call
|
|
4765
4846
|
*/
|
|
4766
4847
|
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4848
|
+
/**
|
|
4849
|
+
* Wrap a function that sends a request to the Anthropic Messages API to
|
|
4850
|
+
* record the call's prompt, model, token usage, and duration. Delegates to
|
|
4851
|
+
* the parent client's wrapAnthropic method.
|
|
4852
|
+
*
|
|
4853
|
+
* Like `wrapJev`, it does not use the bound key and opens no span of its
|
|
4854
|
+
* own: it writes into the span that is current when the call starts.
|
|
4855
|
+
*
|
|
4856
|
+
* @param method - A named function that sends the request and returns the message
|
|
4857
|
+
* @param options - `onResponse` is called with each message after it is recorded
|
|
4858
|
+
* @returns An async function with the same signature that records each call
|
|
4859
|
+
*/
|
|
4860
|
+
wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4861
|
+
/**
|
|
4862
|
+
* Wrap a function that sends a request to the OpenAI Responses API to record
|
|
4863
|
+
* the call's prompt, model, token usage, and duration. Delegates to the
|
|
4864
|
+
* parent client's wrapOpenAIResponses method.
|
|
4865
|
+
*
|
|
4866
|
+
* Like `wrapJev`, it does not use the bound key and opens no span of its
|
|
4867
|
+
* own: it writes into the span that is current when the call starts.
|
|
4868
|
+
*
|
|
4869
|
+
* @param method - A named function that sends the request and returns the response
|
|
4870
|
+
* @param options - `onResponse` is called with each response after it is recorded
|
|
4871
|
+
* @returns An async function with the same signature that records each call
|
|
4872
|
+
*/
|
|
4873
|
+
wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4767
4874
|
}
|
|
4768
4875
|
//#endregion
|
|
4769
4876
|
//#region src/commitRef.d.ts
|
|
@@ -4784,7 +4891,7 @@ interface CommitRef {
|
|
|
4784
4891
|
/**
|
|
4785
4892
|
* SDK version from package.json (injected at build time)
|
|
4786
4893
|
*/
|
|
4787
|
-
declare const __version__ = "0.68.
|
|
4894
|
+
declare const __version__ = "0.68.5";
|
|
4788
4895
|
//#endregion
|
|
4789
4896
|
//#region src/constants.d.ts
|
|
4790
4897
|
/**
|
|
@@ -4926,4 +5033,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4926
5033
|
run?: boolean;
|
|
4927
5034
|
}): Promise<SeedResult>;
|
|
4928
5035
|
//#endregion
|
|
4929
|
-
export {
|
|
5036
|
+
export { RivetEffectType as $, ExperimentCategoryTally as $n, DbBranchTimings as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, UpdateDatasetParams as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioSource as Bn, CategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, Approver as Ci, AssertionVerdictEvidence as Cn, ListDatasetsParams as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, SaveAssertionsParams as Dn, RerunGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, JustificationSpan as Ei, SaveAssertionsAllParams as En, RerunGradersOptions as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, VercelStreamResult as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertionsUpdate as Gn, CapturedSpan as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, TraceAssertion as Hn, CategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, BitfabClaudeAgentHandler as Ir, GraderVerdict as It, SpanListParams as J, TraceSearchResult as Jn, SpanLookup as Jr, LabelAction as Jt, ListedSpan as K, TraceSearchFilters as Kn, CodeChangeFile as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, AssertionCategoriesClient as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, BitfabVercelAiHandler as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, VercelCallParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, SaveScenarioActualOutcome as On, SaveDatasetParams as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, VercelGenerateResult as Pr, GraderLabelSource as Pt, RivetContextLike as Q, Experiment as Qn, flushTraces as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, AssertionCategory as Rr, GraderVerdictSource as Rt, DetachedTrace as S, ApprovalState as Si, AssertionRewriteStatus as Sn, GraderRerunTimeoutError as Sr, OrganizationMember as St, ReseedOptions as T, Justification as Ti, SaveAssertion as Tn, RemoveDatasetTracesResult as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, TraceAssertionSource as Un, SaveAssertionCategoryParams as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioTrigger as Vn, Category as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, TraceAssertionsResult as Wn, SaveCategoryParams as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceTargetOccurrence as Xn, SpanType as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceTarget as Yn, SpanOccurrence as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TracesClient as Zn, TokenUsage as Zr, LabelSource as Zt, BitfabConfig as _, SelectiveReplayReport as _i, AssertionGenerationError as _n, GraderRerun as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, NO_MOCK_OVERRIDE as ai, Verdict as an, ExperimentRunBy as ar, DbBranchOptions as at, CurrentSpan as b, ProviderDefinition as bi, AssertionLabelEvidence as bn, GraderRerunResult as br, ReplayInterrupt as bt, SeedResult as c, BitfabError as ci, VerdictOutcome as cn, ExperimentTotals as cr, ReplayError as ct, seedFromRegistry as d, DbSnapshotProvider as di, VerdictTarget as dn, AddDatasetGradersResult as dr, ReplayItemFinishProgress as dt, MockOverride as ei, LabelUpdate as en, ExperimentCodeChangeTotals as er, RivetIntegrationOptions as et, finalizers as f, DbSnapshotRef as fi, VerdictUpdate as fn, AddDatasetTracesResult as fr, ReplayItemStartProgress as ft, Bitfab as g, SelectiveReplayOptions as gi, AssertionGeneration as gn, DatasetsClient as gr, ReplayResult as gt, CommitRef as h, SelectiveReplayDecision as hi, AssertionEvidenceParameter as hn, DatasetTraceIds as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockValue as ii, TraceVerdicts as in, ExperimentRollupResult as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, BitfabLanguageModelMiddleware as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, SaveScenarioData as kn, SaveDatasetResult as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, MixedTracingError as li, VerdictSource as ln, ExperimentsClient as lr, ReplayExperiment as lt, __version__ as m, ReplayNodeIdentity as mi, ArchiveAssertionsParams as mn, DatasetGraderRef as mr, ReplayProgress as mt, ReplayRegistration as n, MockOverrideInput as ni, PassFailVerdict as nn, ExperimentPage as nr, AdaptContext as nt, ReseedRegistryResult as o, NodeMatcher as oi, VerdictAction as on, ExperimentStatus as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SUPPORTED_PROVIDERS as pi, VerdictsClient as pn, Dataset as pr, ReplayOptions as pt, SpanListField as q, TraceSearchParams as qn, HttpClient as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverrideResolver as ri, TraceLabels as rn, ExperimentRollup as rr, AdaptInputsFn as rt, SeedCase as s, SpanNodeMeta as si, VerdictConfidence as sn, ExperimentTally as sr, MockStrategy as st, ReplayOptionsFactory as t, MockOverrideCtx as ti, LabelsClient as tn, ExperimentJitter as tr, ReplayBranch as tt, reseedFromRegistry as u, DbSnapshotConfig as ui, VerdictStatus as un, ListExperimentsParams as ur, ReplayItem as ut, BitfabFunction as v, AllowedEnvVars as vi, AssertionGenerationStatus as vn, GraderRerunError as vr, reportReplayProgress as vt, NodeOptions as w, Assignee as wi, GenerateAssertionsOptions as wn, RemoveDatasetGradersResult as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, ApprovalFields as xi, AssertionRewrite as xn, GraderRerunStatus as xr, ReplayInterruptSignal as xt, CaptureWhen as y, BamlExecutionResult as yi, AssertionGenerationTimeoutError as yn, GraderRerunProgress as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioHistoryEntry as zn, AssertionCategorySummary as zr, GraderVerdictUpdate as zt };
|
package/dist/index.cjs
CHANGED
|
@@ -11,8 +11,8 @@ Object.defineProperties(exports, {
|
|
|
11
11
|
__esModule: { value: true },
|
|
12
12
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
13
|
});
|
|
14
|
-
const require_src = require("./src-
|
|
15
|
-
const require_http = require("./http-
|
|
14
|
+
const require_src = require("./src-CxELko3f.cjs");
|
|
15
|
+
const require_http = require("./http-DFqFW_hG.cjs");
|
|
16
16
|
exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
|
|
17
17
|
exports.AssertionGenerationError = require_src.AssertionGenerationError;
|
|
18
18
|
exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
1
|
+
import { $ as RivetEffectType, $n as ExperimentCategoryTally, $r as DbBranchTimings, $t as LabelTarget, A as SpanMethodDecoratorContext, An as SaveScenarioHistoryEntry, Ar as UpdateDatasetParams, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioSource, Br as CategoriesClient, Bt as GradersClient, C as NodeMethodDecorator, Ci as Approver, Cn as AssertionVerdictEvidence, Cr as ListDatasetsParams, Ct as OrganizationMembersClient, D as SeedCaseOptions, Dn as SaveAssertionsParams, Dr as RerunGradersResult, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as JustificationSpan, En as SaveAssertionsAllParams, Er as RerunGradersOptions, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as VercelStreamResult, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as TraceAssertionsUpdate, Gr as CapturedSpan, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as TraceAssertion, Hr as CategorySummary, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as BitfabClaudeAgentHandler, It as GraderVerdict, J as SpanListParams, Jn as TraceSearchResult, Jr as SpanLookup, Jt as LabelAction, K as ListedSpan, Kn as TraceSearchFilters, Kr as CodeChangeFile, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as AssertionCategoriesClient, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as BitfabVercelAiHandler, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as VercelCallParams, Nt as GraderLabelOutcome, O as SeedRunOptions, On as SaveScenarioActualOutcome, Or as SaveDatasetParams, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as VercelGenerateResult, Pt as GraderLabelSource, Q as RivetContextLike, Qn as Experiment, Qr as flushTraces, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as AssertionCategory, Rt as GraderVerdictSource, S as DetachedTrace, Si as ApprovalState, Sn as AssertionRewriteStatus, Sr as GraderRerunTimeoutError, St as OrganizationMember, T as ReseedOptions, Ti as Justification, Tn as SaveAssertion, Tr as RemoveDatasetTracesResult, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as TraceAssertionSource, Ur as SaveAssertionCategoryParams, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioTrigger, Vr as Category, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as TraceAssertionsResult, Wr as SaveCategoryParams, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceTargetOccurrence, Xr as SpanType, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceTarget, Yr as SpanOccurrence, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TracesClient, Zr as TokenUsage, Zt as LabelSource, _ as BitfabConfig, _i as SelectiveReplayReport, _n as AssertionGenerationError, _r as GraderRerun, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as NO_MOCK_OVERRIDE, an as Verdict, ar as ExperimentRunBy, at as DbBranchOptions, b as CurrentSpan, bi as ProviderDefinition, bn as AssertionLabelEvidence, br as GraderRerunResult, bt as ReplayInterrupt, c as SeedResult, ci as BitfabError, cn as VerdictOutcome, cr as ExperimentTotals, ct as ReplayError, d as seedFromRegistry, di as DbSnapshotProvider, dn as VerdictTarget, dr as AddDatasetGradersResult, dt as ReplayItemFinishProgress, ei as MockOverride, en as LabelUpdate, er as ExperimentCodeChangeTotals, et as RivetIntegrationOptions, f as finalizers, fi as DbSnapshotRef, fn as VerdictUpdate, fr as AddDatasetTracesResult, ft as ReplayItemStartProgress, g as Bitfab, gi as SelectiveReplayOptions, gn as AssertionGeneration, gr as DatasetsClient, gt as ReplayResult, h as CommitRef, hi as SelectiveReplayDecision, hn as AssertionEvidenceParameter, hr as DatasetTraceIds, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockValue, in as TraceVerdicts, ir as ExperimentRollupResult, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as BitfabLanguageModelMiddleware, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, kn as SaveScenarioData, kr as SaveDatasetResult, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as MixedTracingError, ln as VerdictSource, lr as ExperimentsClient, lt as ReplayExperiment, m as __version__, mi as ReplayNodeIdentity, mn as ArchiveAssertionsParams, mr as DatasetGraderRef, mt as ReplayProgress, n as ReplayRegistration, ni as MockOverrideInput, nn as PassFailVerdict, nr as ExperimentPage, nt as AdaptContext, o as ReseedRegistryResult, oi as NodeMatcher, on as VerdictAction, or as ExperimentStatus, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SUPPORTED_PROVIDERS, pn as VerdictsClient, pr as Dataset, pt as ReplayOptions, q as SpanListField, qn as TraceSearchParams, qr as HttpClient, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as MockOverrideResolver, rn as TraceLabels, rr as ExperimentRollup, rt as AdaptInputsFn, s as SeedCase, si as SpanNodeMeta, sn as VerdictConfidence, sr as ExperimentTally, st as MockStrategy, t as ReplayOptionsFactory, ti as MockOverrideCtx, tn as LabelsClient, tr as ExperimentJitter, tt as ReplayBranch, u as reseedFromRegistry, ui as DbSnapshotConfig, un as VerdictStatus, ur as ListExperimentsParams, ut as ReplayItem, v as BitfabFunction, vi as AllowedEnvVars, vn as AssertionGenerationStatus, vr as GraderRerunError, vt as reportReplayProgress, w as NodeOptions, wi as Assignee, wn as GenerateAssertionsOptions, wr as RemoveDatasetGradersResult, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as ApprovalFields, xn as AssertionRewrite, xr as GraderRerunStatus, xt as ReplayInterruptSignal, y as CaptureWhen, yi as BamlExecutionResult, yn as AssertionGenerationTimeoutError, yr as GraderRerunProgress, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioHistoryEntry, zr as AssertionCategorySummary, zt as GraderVerdictUpdate } from "./index-DMJ6qrtL.cjs";
|
|
2
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
1
|
+
import { $ as RivetEffectType, $n as ExperimentCategoryTally, $r as DbBranchTimings, $t as LabelTarget, A as SpanMethodDecoratorContext, An as SaveScenarioHistoryEntry, Ar as UpdateDatasetParams, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioSource, Br as CategoriesClient, Bt as GradersClient, C as NodeMethodDecorator, Ci as Approver, Cn as AssertionVerdictEvidence, Cr as ListDatasetsParams, Ct as OrganizationMembersClient, D as SeedCaseOptions, Dn as SaveAssertionsParams, Dr as RerunGradersResult, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as JustificationSpan, En as SaveAssertionsAllParams, Er as RerunGradersOptions, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as VercelStreamResult, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as TraceAssertionsUpdate, Gr as CapturedSpan, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as TraceAssertion, Hr as CategorySummary, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as BitfabClaudeAgentHandler, It as GraderVerdict, J as SpanListParams, Jn as TraceSearchResult, Jr as SpanLookup, Jt as LabelAction, K as ListedSpan, Kn as TraceSearchFilters, Kr as CodeChangeFile, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as AssertionCategoriesClient, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as BitfabVercelAiHandler, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as VercelCallParams, Nt as GraderLabelOutcome, O as SeedRunOptions, On as SaveScenarioActualOutcome, Or as SaveDatasetParams, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as VercelGenerateResult, Pt as GraderLabelSource, Q as RivetContextLike, Qn as Experiment, Qr as flushTraces, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as AssertionCategory, Rt as GraderVerdictSource, S as DetachedTrace, Si as ApprovalState, Sn as AssertionRewriteStatus, Sr as GraderRerunTimeoutError, St as OrganizationMember, T as ReseedOptions, Ti as Justification, Tn as SaveAssertion, Tr as RemoveDatasetTracesResult, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as TraceAssertionSource, Ur as SaveAssertionCategoryParams, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioTrigger, Vr as Category, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as TraceAssertionsResult, Wr as SaveCategoryParams, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceTargetOccurrence, Xr as SpanType, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceTarget, Yr as SpanOccurrence, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TracesClient, Zr as TokenUsage, Zt as LabelSource, _ as BitfabConfig, _i as SelectiveReplayReport, _n as AssertionGenerationError, _r as GraderRerun, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as NO_MOCK_OVERRIDE, an as Verdict, ar as ExperimentRunBy, at as DbBranchOptions, b as CurrentSpan, bi as ProviderDefinition, bn as AssertionLabelEvidence, br as GraderRerunResult, bt as ReplayInterrupt, c as SeedResult, ci as BitfabError, cn as VerdictOutcome, cr as ExperimentTotals, ct as ReplayError, d as seedFromRegistry, di as DbSnapshotProvider, dn as VerdictTarget, dr as AddDatasetGradersResult, dt as ReplayItemFinishProgress, ei as MockOverride, en as LabelUpdate, er as ExperimentCodeChangeTotals, et as RivetIntegrationOptions, f as finalizers, fi as DbSnapshotRef, fn as VerdictUpdate, fr as AddDatasetTracesResult, ft as ReplayItemStartProgress, g as Bitfab, gi as SelectiveReplayOptions, gn as AssertionGeneration, gr as DatasetsClient, gt as ReplayResult, h as CommitRef, hi as SelectiveReplayDecision, hn as AssertionEvidenceParameter, hr as DatasetTraceIds, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockValue, in as TraceVerdicts, ir as ExperimentRollupResult, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as BitfabLanguageModelMiddleware, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, kn as SaveScenarioData, kr as SaveDatasetResult, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as MixedTracingError, ln as VerdictSource, lr as ExperimentsClient, lt as ReplayExperiment, m as __version__, mi as ReplayNodeIdentity, mn as ArchiveAssertionsParams, mr as DatasetGraderRef, mt as ReplayProgress, n as ReplayRegistration, ni as MockOverrideInput, nn as PassFailVerdict, nr as ExperimentPage, nt as AdaptContext, o as ReseedRegistryResult, oi as NodeMatcher, on as VerdictAction, or as ExperimentStatus, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SUPPORTED_PROVIDERS, pn as VerdictsClient, pr as Dataset, pt as ReplayOptions, q as SpanListField, qn as TraceSearchParams, qr as HttpClient, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as MockOverrideResolver, rn as TraceLabels, rr as ExperimentRollup, rt as AdaptInputsFn, s as SeedCase, si as SpanNodeMeta, sn as VerdictConfidence, sr as ExperimentTally, st as MockStrategy, t as ReplayOptionsFactory, ti as MockOverrideCtx, tn as LabelsClient, tr as ExperimentJitter, tt as ReplayBranch, u as reseedFromRegistry, ui as DbSnapshotConfig, un as VerdictStatus, ur as ListExperimentsParams, ut as ReplayItem, v as BitfabFunction, vi as AllowedEnvVars, vn as AssertionGenerationStatus, vr as GraderRerunError, vt as reportReplayProgress, w as NodeOptions, wi as Assignee, wn as GenerateAssertionsOptions, wr as RemoveDatasetGradersResult, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as ApprovalFields, xn as AssertionRewrite, xr as GraderRerunStatus, xt as ReplayInterruptSignal, y as CaptureWhen, yi as BamlExecutionResult, yn as AssertionGenerationTimeoutError, yr as GraderRerunProgress, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioHistoryEntry, zr as AssertionCategorySummary, zt as GraderVerdictUpdate } from "./index-DMJ6qrtL.js";
|
|
2
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,6 @@ if (typeof globalThis.__bitfab_deprecation_warned === "undefined") {
|
|
|
7
7
|
"The bitfab package will stop receiving updates in a future release."
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
-
import { A as ExperimentsClient, C as BitfabOpenAIAgentHandler, D as GradersClient, E as BitfabLangGraphCallbackHandler, F as BitfabClaudeAgentHandler, I as DEFAULT_SERVICE_URL, L as AssertionCategoriesClient, M as DatasetsClient, N as GraderRerunError, O as LabelsClient, P as GraderRerunTimeoutError, R as CategoriesClient, S as OrganizationMembersClient, T as BitfabLangGraphIntegration, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as SUPPORTED_PROVIDERS, k as VerdictsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as NO_MOCK_OVERRIDE, x as serializeReplayResult, y as ReplayError } from "./src-
|
|
11
|
-
import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-
|
|
10
|
+
import { A as ExperimentsClient, C as BitfabOpenAIAgentHandler, D as GradersClient, E as BitfabLangGraphCallbackHandler, F as BitfabClaudeAgentHandler, I as DEFAULT_SERVICE_URL, L as AssertionCategoriesClient, M as DatasetsClient, N as GraderRerunError, O as LabelsClient, P as GraderRerunTimeoutError, R as CategoriesClient, S as OrganizationMembersClient, T as BitfabLangGraphIntegration, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as SUPPORTED_PROVIDERS, k as VerdictsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as NO_MOCK_OVERRIDE, x as serializeReplayResult, y as ReplayError } from "./src-DvVk1aLi.js";
|
|
11
|
+
import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-CDqaLdge.js";
|
|
12
12
|
export { AssertionCategoriesClient, AssertionGenerationError, AssertionGenerationTimeoutError, BITFAB_PROGRESS_PREFIX, Bitfab, BitfabClaudeAgentHandler, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, CategoriesClient, DEFAULT_SERVICE_URL, DatasetsClient, DbBranchReplayError, ExperimentsClient, GraderRerunError, GraderRerunTimeoutError, GradersClient, HttpClient, LabelsClient, MixedTracingError, NO_MOCK_OVERRIDE, OrganizationMembersClient, ReplayError, SUPPORTED_PROVIDERS, SpansClient, TracesClient, VerdictsClient, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/node.cjs
CHANGED
|
@@ -11,9 +11,9 @@ Object.defineProperties(exports, {
|
|
|
11
11
|
__esModule: { value: true },
|
|
12
12
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
13
|
});
|
|
14
|
-
const require_src = require("./src-
|
|
15
|
-
const require_http = require("./http-
|
|
16
|
-
const require_autoTrace = require("./autoTrace-
|
|
14
|
+
const require_src = require("./src-CxELko3f.cjs");
|
|
15
|
+
const require_http = require("./http-DFqFW_hG.cjs");
|
|
16
|
+
const require_autoTrace = require("./autoTrace-DUmR1KJ8.cjs");
|
|
17
17
|
let async_hooks = require("async_hooks");
|
|
18
18
|
//#region src/asyncStorageNode.ts
|
|
19
19
|
require_autoTrace.registerAsyncLocalStorageClass(async_hooks.AsyncLocalStorage);
|
package/dist/node.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
1
|
+
import { $ as RivetEffectType, $n as ExperimentCategoryTally, $r as DbBranchTimings, $t as LabelTarget, A as SpanMethodDecoratorContext, An as SaveScenarioHistoryEntry, Ar as UpdateDatasetParams, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioSource, Br as CategoriesClient, Bt as GradersClient, C as NodeMethodDecorator, Ci as Approver, Cn as AssertionVerdictEvidence, Cr as ListDatasetsParams, Ct as OrganizationMembersClient, D as SeedCaseOptions, Dn as SaveAssertionsParams, Dr as RerunGradersResult, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as JustificationSpan, En as SaveAssertionsAllParams, Er as RerunGradersOptions, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as VercelStreamResult, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as TraceAssertionsUpdate, Gr as CapturedSpan, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as TraceAssertion, Hr as CategorySummary, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as BitfabClaudeAgentHandler, It as GraderVerdict, J as SpanListParams, Jn as TraceSearchResult, Jr as SpanLookup, Jt as LabelAction, K as ListedSpan, Kn as TraceSearchFilters, Kr as CodeChangeFile, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as AssertionCategoriesClient, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as BitfabVercelAiHandler, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as VercelCallParams, Nt as GraderLabelOutcome, O as SeedRunOptions, On as SaveScenarioActualOutcome, Or as SaveDatasetParams, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as VercelGenerateResult, Pt as GraderLabelSource, Q as RivetContextLike, Qn as Experiment, Qr as flushTraces, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as AssertionCategory, Rt as GraderVerdictSource, S as DetachedTrace, Si as ApprovalState, Sn as AssertionRewriteStatus, Sr as GraderRerunTimeoutError, St as OrganizationMember, T as ReseedOptions, Ti as Justification, Tn as SaveAssertion, Tr as RemoveDatasetTracesResult, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as TraceAssertionSource, Ur as SaveAssertionCategoryParams, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioTrigger, Vr as Category, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as TraceAssertionsResult, Wr as SaveCategoryParams, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceTargetOccurrence, Xr as SpanType, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceTarget, Yr as SpanOccurrence, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TracesClient, Zr as TokenUsage, Zt as LabelSource, _ as BitfabConfig, _i as SelectiveReplayReport, _n as AssertionGenerationError, _r as GraderRerun, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as NO_MOCK_OVERRIDE, an as Verdict, ar as ExperimentRunBy, at as DbBranchOptions, b as CurrentSpan, bi as ProviderDefinition, bn as AssertionLabelEvidence, br as GraderRerunResult, bt as ReplayInterrupt, c as SeedResult, ci as BitfabError, cn as VerdictOutcome, cr as ExperimentTotals, ct as ReplayError, d as seedFromRegistry, di as DbSnapshotProvider, dn as VerdictTarget, dr as AddDatasetGradersResult, dt as ReplayItemFinishProgress, ei as MockOverride, en as LabelUpdate, er as ExperimentCodeChangeTotals, et as RivetIntegrationOptions, f as finalizers, fi as DbSnapshotRef, fn as VerdictUpdate, fr as AddDatasetTracesResult, ft as ReplayItemStartProgress, g as Bitfab, gi as SelectiveReplayOptions, gn as AssertionGeneration, gr as DatasetsClient, gt as ReplayResult, h as CommitRef, hi as SelectiveReplayDecision, hn as AssertionEvidenceParameter, hr as DatasetTraceIds, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockValue, in as TraceVerdicts, ir as ExperimentRollupResult, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as BitfabLanguageModelMiddleware, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, kn as SaveScenarioData, kr as SaveDatasetResult, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as MixedTracingError, ln as VerdictSource, lr as ExperimentsClient, lt as ReplayExperiment, m as __version__, mi as ReplayNodeIdentity, mn as ArchiveAssertionsParams, mr as DatasetGraderRef, mt as ReplayProgress, n as ReplayRegistration, ni as MockOverrideInput, nn as PassFailVerdict, nr as ExperimentPage, nt as AdaptContext, o as ReseedRegistryResult, oi as NodeMatcher, on as VerdictAction, or as ExperimentStatus, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SUPPORTED_PROVIDERS, pn as VerdictsClient, pr as Dataset, pt as ReplayOptions, q as SpanListField, qn as TraceSearchParams, qr as HttpClient, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as MockOverrideResolver, rn as TraceLabels, rr as ExperimentRollup, rt as AdaptInputsFn, s as SeedCase, si as SpanNodeMeta, sn as VerdictConfidence, sr as ExperimentTally, st as MockStrategy, t as ReplayOptionsFactory, ti as MockOverrideCtx, tn as LabelsClient, tr as ExperimentJitter, tt as ReplayBranch, u as reseedFromRegistry, ui as DbSnapshotConfig, un as VerdictStatus, ur as ListExperimentsParams, ut as ReplayItem, v as BitfabFunction, vi as AllowedEnvVars, vn as AssertionGenerationStatus, vr as GraderRerunError, vt as reportReplayProgress, w as NodeOptions, wi as Assignee, wn as GenerateAssertionsOptions, wr as RemoveDatasetGradersResult, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as ApprovalFields, xn as AssertionRewrite, xr as GraderRerunStatus, xt as ReplayInterruptSignal, y as CaptureWhen, yi as BamlExecutionResult, yn as AssertionGenerationTimeoutError, yr as GraderRerunProgress, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioHistoryEntry, zr as AssertionCategorySummary, zt as GraderVerdictUpdate } from "./index-DMJ6qrtL.cjs";
|
|
2
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|