braintrust 3.26.0 → 3.28.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/dev/dist/index.d.mts +519 -186
- package/dev/dist/index.d.ts +519 -186
- package/dev/dist/index.js +3727 -1526
- package/dev/dist/index.mjs +2815 -614
- package/dist/apply-auto-instrumentation.js +372 -261
- package/dist/apply-auto-instrumentation.mjs +171 -60
- package/dist/auto-instrumentations/bundler/esbuild.cjs +458 -61
- package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -4
- package/dist/auto-instrumentations/bundler/next.cjs +460 -63
- package/dist/auto-instrumentations/bundler/next.mjs +6 -5
- package/dist/auto-instrumentations/bundler/rollup.cjs +458 -61
- package/dist/auto-instrumentations/bundler/rollup.mjs +5 -4
- package/dist/auto-instrumentations/bundler/vite.cjs +487 -62
- package/dist/auto-instrumentations/bundler/vite.mjs +34 -5
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +444 -61
- package/dist/auto-instrumentations/bundler/webpack.cjs +458 -61
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -5
- package/dist/auto-instrumentations/{chunk-6E22MYSW.mjs → chunk-26PKVUKB.mjs} +109 -5
- package/dist/auto-instrumentations/{chunk-AKKPLXTP.mjs → chunk-2AMDGD65.mjs} +160 -57
- package/dist/auto-instrumentations/{chunk-V5LEODRX.mjs → chunk-HD35AM3M.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-XYN63IG5.mjs → chunk-I55G56ZL.mjs} +21 -58
- package/dist/auto-instrumentations/{chunk-NRE4QUQR.mjs → chunk-JPUFNW7X.mjs} +140 -0
- package/dist/auto-instrumentations/{chunk-XZHHE4Y3.mjs → chunk-NP7V4XB2.mjs} +157 -3
- package/dist/auto-instrumentations/hook.mjs +396 -32
- package/dist/auto-instrumentations/index.cjs +298 -2
- package/dist/auto-instrumentations/index.d.mts +5 -1
- package/dist/auto-instrumentations/index.d.ts +5 -1
- package/dist/auto-instrumentations/index.mjs +6 -2
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +105 -57
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +2 -2
- package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
- package/dist/browser.d.mts +683 -56
- package/dist/browser.d.ts +683 -56
- package/dist/browser.js +4242 -655
- package/dist/browser.mjs +4242 -655
- package/dist/{chunk-VYNNEKSA.js → chunk-BBE7SNRV.js} +248 -10
- package/dist/{chunk-VRZZQPAA.js → chunk-OBBWQW6K.js} +3351 -1392
- package/dist/{chunk-XIZOM2HO.mjs → chunk-UPFNQCGB.mjs} +2419 -460
- package/dist/{chunk-PN7EWK66.mjs → chunk-ZHUHZWFY.mjs} +241 -3
- package/dist/cli.js +2867 -668
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +4242 -655
- package/dist/edge-light.mjs +4242 -655
- package/dist/index.d.mts +1267 -640
- package/dist/index.d.ts +1267 -640
- package/dist/index.js +2107 -630
- package/dist/index.mjs +1649 -172
- package/dist/instrumentation/index.d.mts +198 -6
- package/dist/instrumentation/index.d.ts +198 -6
- package/dist/instrumentation/index.js +2661 -581
- package/dist/instrumentation/index.mjs +2661 -581
- package/dist/vitest-evals-reporter.js +45 -43
- package/dist/vitest-evals-reporter.mjs +5 -3
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +4242 -655
- package/dist/workerd.mjs +4242 -655
- package/package.json +2 -3
- package/util/dist/index.d.mts +1545 -100
- package/util/dist/index.d.ts +1545 -100
|
@@ -6857,6 +6857,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6857
6857
|
huggingface?: boolean;
|
|
6858
6858
|
claudeAgentSDK?: boolean;
|
|
6859
6859
|
cloudflareAIChat?: boolean;
|
|
6860
|
+
cloudflareThink?: boolean;
|
|
6860
6861
|
cursor?: boolean;
|
|
6861
6862
|
cursorSDK?: boolean;
|
|
6862
6863
|
flue?: boolean;
|
|
@@ -6865,6 +6866,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6865
6866
|
openrouter?: boolean;
|
|
6866
6867
|
openrouterAgent?: boolean;
|
|
6867
6868
|
mistral?: boolean;
|
|
6869
|
+
ollama?: boolean;
|
|
6868
6870
|
cohere?: boolean;
|
|
6869
6871
|
groq?: boolean;
|
|
6870
6872
|
bedrock?: boolean;
|
|
@@ -6879,6 +6881,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6879
6881
|
langchain?: boolean;
|
|
6880
6882
|
langgraph?: boolean;
|
|
6881
6883
|
langsmith?: boolean;
|
|
6884
|
+
voyageai?: boolean;
|
|
6882
6885
|
}
|
|
6883
6886
|
interface InstrumentationConfig {
|
|
6884
6887
|
/**
|
|
@@ -6903,7 +6906,9 @@ interface BraintrustPluginConfig {
|
|
|
6903
6906
|
* - HuggingFace Inference SDK
|
|
6904
6907
|
* - LangChain.js and LangGraph
|
|
6905
6908
|
* - Mistral SDK
|
|
6909
|
+
* - Ollama SDK
|
|
6906
6910
|
* - Cohere SDK
|
|
6911
|
+
* - Voyage AI SDK
|
|
6907
6912
|
*
|
|
6908
6913
|
* The plugin is automatically enabled when the Braintrust library is loaded.
|
|
6909
6914
|
* Individual integrations can be disabled via configuration.
|
|
@@ -6915,6 +6920,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6915
6920
|
private anthropicPlugin;
|
|
6916
6921
|
private aiSDKPlugin;
|
|
6917
6922
|
private claudeAgentSDKPlugin;
|
|
6923
|
+
private cloudflareThinkPlugin;
|
|
6918
6924
|
private cursorSDKPlugin;
|
|
6919
6925
|
private openAIAgentsPlugin;
|
|
6920
6926
|
private googleGenAIPlugin;
|
|
@@ -6923,6 +6929,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6923
6929
|
private openRouterPlugin;
|
|
6924
6930
|
private openRouterAgentPlugin;
|
|
6925
6931
|
private mistralPlugin;
|
|
6932
|
+
private ollamaPlugin;
|
|
6926
6933
|
private googleADKPlugin;
|
|
6927
6934
|
private coherePlugin;
|
|
6928
6935
|
private groqPlugin;
|
|
@@ -6934,6 +6941,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6934
6941
|
private langSmithPlugin;
|
|
6935
6942
|
private piCodingAgentPlugin;
|
|
6936
6943
|
private strandsAgentSDKPlugin;
|
|
6944
|
+
private voyageAIPlugin;
|
|
6937
6945
|
private cloudflareAIChatPlugin;
|
|
6938
6946
|
private cloudflareAgentsPlugin;
|
|
6939
6947
|
constructor(config?: BraintrustPluginConfig);
|
|
@@ -7014,16 +7022,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7014
7022
|
token: z.ZodString;
|
|
7015
7023
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
7016
7024
|
skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
7025
|
+
triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7026
|
+
triggered_xact_id: z.ZodString;
|
|
7027
|
+
completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
7028
|
+
idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
7029
|
+
attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7030
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
7031
|
+
type: z.ZodLiteral<"span">;
|
|
7032
|
+
}, "strip", z.ZodTypeAny, {
|
|
7033
|
+
type: "span";
|
|
7034
|
+
}, {
|
|
7035
|
+
type: "span";
|
|
7036
|
+
}>, z.ZodObject<{
|
|
7037
|
+
type: z.ZodLiteral<"trace">;
|
|
7038
|
+
}, "strip", z.ZodTypeAny, {
|
|
7039
|
+
type: "trace";
|
|
7040
|
+
}, {
|
|
7041
|
+
type: "trace";
|
|
7042
|
+
}>, z.ZodObject<{
|
|
7043
|
+
type: z.ZodLiteral<"group">;
|
|
7044
|
+
key: z.ZodString;
|
|
7045
|
+
value: z.ZodString;
|
|
7046
|
+
}, "strip", z.ZodTypeAny, {
|
|
7047
|
+
value: string;
|
|
7048
|
+
type: "group";
|
|
7049
|
+
key: string;
|
|
7050
|
+
}, {
|
|
7051
|
+
value: string;
|
|
7052
|
+
type: "group";
|
|
7053
|
+
key: string;
|
|
7054
|
+
}>]>;
|
|
7055
|
+
}, "strip", z.ZodTypeAny, {
|
|
7056
|
+
triggered_xact_id: string;
|
|
7057
|
+
attempts: number;
|
|
7058
|
+
scope: {
|
|
7059
|
+
type: "span";
|
|
7060
|
+
} | {
|
|
7061
|
+
type: "trace";
|
|
7062
|
+
} | {
|
|
7063
|
+
value: string;
|
|
7064
|
+
type: "group";
|
|
7065
|
+
key: string;
|
|
7066
|
+
};
|
|
7067
|
+
completed_xact_id?: string | null | undefined;
|
|
7068
|
+
idempotency_key?: string | null | undefined;
|
|
7069
|
+
}, {
|
|
7070
|
+
triggered_xact_id: string;
|
|
7071
|
+
scope: {
|
|
7072
|
+
type: "span";
|
|
7073
|
+
} | {
|
|
7074
|
+
type: "trace";
|
|
7075
|
+
} | {
|
|
7076
|
+
value: string;
|
|
7077
|
+
type: "group";
|
|
7078
|
+
key: string;
|
|
7079
|
+
};
|
|
7080
|
+
completed_xact_id?: string | null | undefined;
|
|
7081
|
+
idempotency_key?: string | null | undefined;
|
|
7082
|
+
attempts?: number | undefined;
|
|
7083
|
+
}>>, z.ZodNull]>>;
|
|
7084
|
+
last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
7017
7085
|
}, "strip", z.ZodTypeAny, {
|
|
7018
7086
|
status: "enabled";
|
|
7019
7087
|
token: string;
|
|
7020
7088
|
function_ids: unknown[];
|
|
7021
7089
|
skip_logging?: boolean | null | undefined;
|
|
7090
|
+
triggered_functions?: Record<string, {
|
|
7091
|
+
triggered_xact_id: string;
|
|
7092
|
+
attempts: number;
|
|
7093
|
+
scope: {
|
|
7094
|
+
type: "span";
|
|
7095
|
+
} | {
|
|
7096
|
+
type: "trace";
|
|
7097
|
+
} | {
|
|
7098
|
+
value: string;
|
|
7099
|
+
type: "group";
|
|
7100
|
+
key: string;
|
|
7101
|
+
};
|
|
7102
|
+
completed_xact_id?: string | null | undefined;
|
|
7103
|
+
idempotency_key?: string | null | undefined;
|
|
7104
|
+
}> | null | undefined;
|
|
7105
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7022
7106
|
}, {
|
|
7023
7107
|
status: "enabled";
|
|
7024
7108
|
token: string;
|
|
7025
7109
|
function_ids: unknown[];
|
|
7026
7110
|
skip_logging?: boolean | null | undefined;
|
|
7111
|
+
triggered_functions?: Record<string, {
|
|
7112
|
+
triggered_xact_id: string;
|
|
7113
|
+
scope: {
|
|
7114
|
+
type: "span";
|
|
7115
|
+
} | {
|
|
7116
|
+
type: "trace";
|
|
7117
|
+
} | {
|
|
7118
|
+
value: string;
|
|
7119
|
+
type: "group";
|
|
7120
|
+
key: string;
|
|
7121
|
+
};
|
|
7122
|
+
completed_xact_id?: string | null | undefined;
|
|
7123
|
+
idempotency_key?: string | null | undefined;
|
|
7124
|
+
attempts?: number | undefined;
|
|
7125
|
+
}> | null | undefined;
|
|
7126
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7027
7127
|
}>, z.ZodObject<{
|
|
7028
7128
|
status: z.ZodLiteral<"disabled">;
|
|
7029
7129
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7038,6 +7138,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7038
7138
|
token: string;
|
|
7039
7139
|
function_ids: unknown[];
|
|
7040
7140
|
skip_logging?: boolean | null | undefined;
|
|
7141
|
+
triggered_functions?: Record<string, {
|
|
7142
|
+
triggered_xact_id: string;
|
|
7143
|
+
attempts: number;
|
|
7144
|
+
scope: {
|
|
7145
|
+
type: "span";
|
|
7146
|
+
} | {
|
|
7147
|
+
type: "trace";
|
|
7148
|
+
} | {
|
|
7149
|
+
value: string;
|
|
7150
|
+
type: "group";
|
|
7151
|
+
key: string;
|
|
7152
|
+
};
|
|
7153
|
+
completed_xact_id?: string | null | undefined;
|
|
7154
|
+
idempotency_key?: string | null | undefined;
|
|
7155
|
+
}> | null | undefined;
|
|
7156
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7041
7157
|
} | {
|
|
7042
7158
|
status: "disabled";
|
|
7043
7159
|
} | null;
|
|
@@ -7048,6 +7164,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7048
7164
|
token: string;
|
|
7049
7165
|
function_ids: unknown[];
|
|
7050
7166
|
skip_logging?: boolean | null | undefined;
|
|
7167
|
+
triggered_functions?: Record<string, {
|
|
7168
|
+
triggered_xact_id: string;
|
|
7169
|
+
scope: {
|
|
7170
|
+
type: "span";
|
|
7171
|
+
} | {
|
|
7172
|
+
type: "trace";
|
|
7173
|
+
} | {
|
|
7174
|
+
value: string;
|
|
7175
|
+
type: "group";
|
|
7176
|
+
key: string;
|
|
7177
|
+
};
|
|
7178
|
+
completed_xact_id?: string | null | undefined;
|
|
7179
|
+
idempotency_key?: string | null | undefined;
|
|
7180
|
+
attempts?: number | undefined;
|
|
7181
|
+
}> | null | undefined;
|
|
7182
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7051
7183
|
} | {
|
|
7052
7184
|
status: "disabled";
|
|
7053
7185
|
} | null;
|
|
@@ -7064,14 +7196,62 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7064
7196
|
}, {
|
|
7065
7197
|
kind: "state_enabled_force_rescore";
|
|
7066
7198
|
}>, z.ZodObject<{
|
|
7067
|
-
kind: z.ZodLiteral<"
|
|
7068
|
-
|
|
7199
|
+
kind: z.ZodLiteral<"trigger_functions">;
|
|
7200
|
+
triggered_functions: z.ZodArray<z.ZodObject<{
|
|
7201
|
+
function_id: z.ZodOptional<z.ZodUnknown>;
|
|
7202
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
7203
|
+
type: z.ZodLiteral<"span">;
|
|
7204
|
+
}, "strip", z.ZodTypeAny, {
|
|
7205
|
+
type: "span";
|
|
7206
|
+
}, {
|
|
7207
|
+
type: "span";
|
|
7208
|
+
}>, z.ZodObject<{
|
|
7209
|
+
type: z.ZodLiteral<"trace">;
|
|
7210
|
+
}, "strip", z.ZodTypeAny, {
|
|
7211
|
+
type: "trace";
|
|
7212
|
+
}, {
|
|
7213
|
+
type: "trace";
|
|
7214
|
+
}>]>;
|
|
7215
|
+
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
7216
|
+
}, "strip", z.ZodTypeAny, {
|
|
7217
|
+
scope: {
|
|
7218
|
+
type: "span";
|
|
7219
|
+
} | {
|
|
7220
|
+
type: "trace";
|
|
7221
|
+
};
|
|
7222
|
+
idempotency_key?: string | undefined;
|
|
7223
|
+
function_id?: unknown;
|
|
7224
|
+
}, {
|
|
7225
|
+
scope: {
|
|
7226
|
+
type: "span";
|
|
7227
|
+
} | {
|
|
7228
|
+
type: "trace";
|
|
7229
|
+
};
|
|
7230
|
+
idempotency_key?: string | undefined;
|
|
7231
|
+
function_id?: unknown;
|
|
7232
|
+
}>, "many">;
|
|
7069
7233
|
}, "strip", z.ZodTypeAny, {
|
|
7070
|
-
kind: "
|
|
7071
|
-
|
|
7234
|
+
kind: "trigger_functions";
|
|
7235
|
+
triggered_functions: {
|
|
7236
|
+
scope: {
|
|
7237
|
+
type: "span";
|
|
7238
|
+
} | {
|
|
7239
|
+
type: "trace";
|
|
7240
|
+
};
|
|
7241
|
+
idempotency_key?: string | undefined;
|
|
7242
|
+
function_id?: unknown;
|
|
7243
|
+
}[];
|
|
7072
7244
|
}, {
|
|
7073
|
-
kind: "
|
|
7074
|
-
|
|
7245
|
+
kind: "trigger_functions";
|
|
7246
|
+
triggered_functions: {
|
|
7247
|
+
scope: {
|
|
7248
|
+
type: "span";
|
|
7249
|
+
} | {
|
|
7250
|
+
type: "trace";
|
|
7251
|
+
};
|
|
7252
|
+
idempotency_key?: string | undefined;
|
|
7253
|
+
function_id?: unknown;
|
|
7254
|
+
}[];
|
|
7075
7255
|
}>, z.ZodObject<{
|
|
7076
7256
|
kind: z.ZodLiteral<"complete_triggered_functions">;
|
|
7077
7257
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
@@ -7084,6 +7264,15 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7084
7264
|
kind: "complete_triggered_functions";
|
|
7085
7265
|
triggered_xact_id: string;
|
|
7086
7266
|
function_ids: unknown[];
|
|
7267
|
+
}>, z.ZodObject<{
|
|
7268
|
+
kind: z.ZodLiteral<"mark_attempt_failed">;
|
|
7269
|
+
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
7270
|
+
}, "strip", z.ZodTypeAny, {
|
|
7271
|
+
kind: "mark_attempt_failed";
|
|
7272
|
+
function_ids: unknown[];
|
|
7273
|
+
}, {
|
|
7274
|
+
kind: "mark_attempt_failed";
|
|
7275
|
+
function_ids: unknown[];
|
|
7087
7276
|
}>]>;
|
|
7088
7277
|
type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
|
|
7089
7278
|
declare const ObjectReference: z.ZodObject<{
|
|
@@ -9042,6 +9231,9 @@ type FlueExecutionOperation = {
|
|
|
9042
9231
|
} | {
|
|
9043
9232
|
type: "task";
|
|
9044
9233
|
taskId: string;
|
|
9234
|
+
} | {
|
|
9235
|
+
type: "coordinator";
|
|
9236
|
+
phase: "reconcile";
|
|
9045
9237
|
};
|
|
9046
9238
|
interface FlueTraceCarrier {
|
|
9047
9239
|
traceparent: string;
|
|
@@ -6857,6 +6857,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6857
6857
|
huggingface?: boolean;
|
|
6858
6858
|
claudeAgentSDK?: boolean;
|
|
6859
6859
|
cloudflareAIChat?: boolean;
|
|
6860
|
+
cloudflareThink?: boolean;
|
|
6860
6861
|
cursor?: boolean;
|
|
6861
6862
|
cursorSDK?: boolean;
|
|
6862
6863
|
flue?: boolean;
|
|
@@ -6865,6 +6866,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6865
6866
|
openrouter?: boolean;
|
|
6866
6867
|
openrouterAgent?: boolean;
|
|
6867
6868
|
mistral?: boolean;
|
|
6869
|
+
ollama?: boolean;
|
|
6868
6870
|
cohere?: boolean;
|
|
6869
6871
|
groq?: boolean;
|
|
6870
6872
|
bedrock?: boolean;
|
|
@@ -6879,6 +6881,7 @@ interface InstrumentationIntegrationsConfig {
|
|
|
6879
6881
|
langchain?: boolean;
|
|
6880
6882
|
langgraph?: boolean;
|
|
6881
6883
|
langsmith?: boolean;
|
|
6884
|
+
voyageai?: boolean;
|
|
6882
6885
|
}
|
|
6883
6886
|
interface InstrumentationConfig {
|
|
6884
6887
|
/**
|
|
@@ -6903,7 +6906,9 @@ interface BraintrustPluginConfig {
|
|
|
6903
6906
|
* - HuggingFace Inference SDK
|
|
6904
6907
|
* - LangChain.js and LangGraph
|
|
6905
6908
|
* - Mistral SDK
|
|
6909
|
+
* - Ollama SDK
|
|
6906
6910
|
* - Cohere SDK
|
|
6911
|
+
* - Voyage AI SDK
|
|
6907
6912
|
*
|
|
6908
6913
|
* The plugin is automatically enabled when the Braintrust library is loaded.
|
|
6909
6914
|
* Individual integrations can be disabled via configuration.
|
|
@@ -6915,6 +6920,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6915
6920
|
private anthropicPlugin;
|
|
6916
6921
|
private aiSDKPlugin;
|
|
6917
6922
|
private claudeAgentSDKPlugin;
|
|
6923
|
+
private cloudflareThinkPlugin;
|
|
6918
6924
|
private cursorSDKPlugin;
|
|
6919
6925
|
private openAIAgentsPlugin;
|
|
6920
6926
|
private googleGenAIPlugin;
|
|
@@ -6923,6 +6929,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6923
6929
|
private openRouterPlugin;
|
|
6924
6930
|
private openRouterAgentPlugin;
|
|
6925
6931
|
private mistralPlugin;
|
|
6932
|
+
private ollamaPlugin;
|
|
6926
6933
|
private googleADKPlugin;
|
|
6927
6934
|
private coherePlugin;
|
|
6928
6935
|
private groqPlugin;
|
|
@@ -6934,6 +6941,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
6934
6941
|
private langSmithPlugin;
|
|
6935
6942
|
private piCodingAgentPlugin;
|
|
6936
6943
|
private strandsAgentSDKPlugin;
|
|
6944
|
+
private voyageAIPlugin;
|
|
6937
6945
|
private cloudflareAIChatPlugin;
|
|
6938
6946
|
private cloudflareAgentsPlugin;
|
|
6939
6947
|
constructor(config?: BraintrustPluginConfig);
|
|
@@ -7014,16 +7022,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7014
7022
|
token: z.ZodString;
|
|
7015
7023
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
7016
7024
|
skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
7025
|
+
triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7026
|
+
triggered_xact_id: z.ZodString;
|
|
7027
|
+
completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
7028
|
+
idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
7029
|
+
attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7030
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
7031
|
+
type: z.ZodLiteral<"span">;
|
|
7032
|
+
}, "strip", z.ZodTypeAny, {
|
|
7033
|
+
type: "span";
|
|
7034
|
+
}, {
|
|
7035
|
+
type: "span";
|
|
7036
|
+
}>, z.ZodObject<{
|
|
7037
|
+
type: z.ZodLiteral<"trace">;
|
|
7038
|
+
}, "strip", z.ZodTypeAny, {
|
|
7039
|
+
type: "trace";
|
|
7040
|
+
}, {
|
|
7041
|
+
type: "trace";
|
|
7042
|
+
}>, z.ZodObject<{
|
|
7043
|
+
type: z.ZodLiteral<"group">;
|
|
7044
|
+
key: z.ZodString;
|
|
7045
|
+
value: z.ZodString;
|
|
7046
|
+
}, "strip", z.ZodTypeAny, {
|
|
7047
|
+
value: string;
|
|
7048
|
+
type: "group";
|
|
7049
|
+
key: string;
|
|
7050
|
+
}, {
|
|
7051
|
+
value: string;
|
|
7052
|
+
type: "group";
|
|
7053
|
+
key: string;
|
|
7054
|
+
}>]>;
|
|
7055
|
+
}, "strip", z.ZodTypeAny, {
|
|
7056
|
+
triggered_xact_id: string;
|
|
7057
|
+
attempts: number;
|
|
7058
|
+
scope: {
|
|
7059
|
+
type: "span";
|
|
7060
|
+
} | {
|
|
7061
|
+
type: "trace";
|
|
7062
|
+
} | {
|
|
7063
|
+
value: string;
|
|
7064
|
+
type: "group";
|
|
7065
|
+
key: string;
|
|
7066
|
+
};
|
|
7067
|
+
completed_xact_id?: string | null | undefined;
|
|
7068
|
+
idempotency_key?: string | null | undefined;
|
|
7069
|
+
}, {
|
|
7070
|
+
triggered_xact_id: string;
|
|
7071
|
+
scope: {
|
|
7072
|
+
type: "span";
|
|
7073
|
+
} | {
|
|
7074
|
+
type: "trace";
|
|
7075
|
+
} | {
|
|
7076
|
+
value: string;
|
|
7077
|
+
type: "group";
|
|
7078
|
+
key: string;
|
|
7079
|
+
};
|
|
7080
|
+
completed_xact_id?: string | null | undefined;
|
|
7081
|
+
idempotency_key?: string | null | undefined;
|
|
7082
|
+
attempts?: number | undefined;
|
|
7083
|
+
}>>, z.ZodNull]>>;
|
|
7084
|
+
last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
7017
7085
|
}, "strip", z.ZodTypeAny, {
|
|
7018
7086
|
status: "enabled";
|
|
7019
7087
|
token: string;
|
|
7020
7088
|
function_ids: unknown[];
|
|
7021
7089
|
skip_logging?: boolean | null | undefined;
|
|
7090
|
+
triggered_functions?: Record<string, {
|
|
7091
|
+
triggered_xact_id: string;
|
|
7092
|
+
attempts: number;
|
|
7093
|
+
scope: {
|
|
7094
|
+
type: "span";
|
|
7095
|
+
} | {
|
|
7096
|
+
type: "trace";
|
|
7097
|
+
} | {
|
|
7098
|
+
value: string;
|
|
7099
|
+
type: "group";
|
|
7100
|
+
key: string;
|
|
7101
|
+
};
|
|
7102
|
+
completed_xact_id?: string | null | undefined;
|
|
7103
|
+
idempotency_key?: string | null | undefined;
|
|
7104
|
+
}> | null | undefined;
|
|
7105
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7022
7106
|
}, {
|
|
7023
7107
|
status: "enabled";
|
|
7024
7108
|
token: string;
|
|
7025
7109
|
function_ids: unknown[];
|
|
7026
7110
|
skip_logging?: boolean | null | undefined;
|
|
7111
|
+
triggered_functions?: Record<string, {
|
|
7112
|
+
triggered_xact_id: string;
|
|
7113
|
+
scope: {
|
|
7114
|
+
type: "span";
|
|
7115
|
+
} | {
|
|
7116
|
+
type: "trace";
|
|
7117
|
+
} | {
|
|
7118
|
+
value: string;
|
|
7119
|
+
type: "group";
|
|
7120
|
+
key: string;
|
|
7121
|
+
};
|
|
7122
|
+
completed_xact_id?: string | null | undefined;
|
|
7123
|
+
idempotency_key?: string | null | undefined;
|
|
7124
|
+
attempts?: number | undefined;
|
|
7125
|
+
}> | null | undefined;
|
|
7126
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7027
7127
|
}>, z.ZodObject<{
|
|
7028
7128
|
status: z.ZodLiteral<"disabled">;
|
|
7029
7129
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7038,6 +7138,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7038
7138
|
token: string;
|
|
7039
7139
|
function_ids: unknown[];
|
|
7040
7140
|
skip_logging?: boolean | null | undefined;
|
|
7141
|
+
triggered_functions?: Record<string, {
|
|
7142
|
+
triggered_xact_id: string;
|
|
7143
|
+
attempts: number;
|
|
7144
|
+
scope: {
|
|
7145
|
+
type: "span";
|
|
7146
|
+
} | {
|
|
7147
|
+
type: "trace";
|
|
7148
|
+
} | {
|
|
7149
|
+
value: string;
|
|
7150
|
+
type: "group";
|
|
7151
|
+
key: string;
|
|
7152
|
+
};
|
|
7153
|
+
completed_xact_id?: string | null | undefined;
|
|
7154
|
+
idempotency_key?: string | null | undefined;
|
|
7155
|
+
}> | null | undefined;
|
|
7156
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7041
7157
|
} | {
|
|
7042
7158
|
status: "disabled";
|
|
7043
7159
|
} | null;
|
|
@@ -7048,6 +7164,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7048
7164
|
token: string;
|
|
7049
7165
|
function_ids: unknown[];
|
|
7050
7166
|
skip_logging?: boolean | null | undefined;
|
|
7167
|
+
triggered_functions?: Record<string, {
|
|
7168
|
+
triggered_xact_id: string;
|
|
7169
|
+
scope: {
|
|
7170
|
+
type: "span";
|
|
7171
|
+
} | {
|
|
7172
|
+
type: "trace";
|
|
7173
|
+
} | {
|
|
7174
|
+
value: string;
|
|
7175
|
+
type: "group";
|
|
7176
|
+
key: string;
|
|
7177
|
+
};
|
|
7178
|
+
completed_xact_id?: string | null | undefined;
|
|
7179
|
+
idempotency_key?: string | null | undefined;
|
|
7180
|
+
attempts?: number | undefined;
|
|
7181
|
+
}> | null | undefined;
|
|
7182
|
+
last_triggered_xact_id?: string | number | null | undefined;
|
|
7051
7183
|
} | {
|
|
7052
7184
|
status: "disabled";
|
|
7053
7185
|
} | null;
|
|
@@ -7064,14 +7196,62 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7064
7196
|
}, {
|
|
7065
7197
|
kind: "state_enabled_force_rescore";
|
|
7066
7198
|
}>, z.ZodObject<{
|
|
7067
|
-
kind: z.ZodLiteral<"
|
|
7068
|
-
|
|
7199
|
+
kind: z.ZodLiteral<"trigger_functions">;
|
|
7200
|
+
triggered_functions: z.ZodArray<z.ZodObject<{
|
|
7201
|
+
function_id: z.ZodOptional<z.ZodUnknown>;
|
|
7202
|
+
scope: z.ZodUnion<[z.ZodObject<{
|
|
7203
|
+
type: z.ZodLiteral<"span">;
|
|
7204
|
+
}, "strip", z.ZodTypeAny, {
|
|
7205
|
+
type: "span";
|
|
7206
|
+
}, {
|
|
7207
|
+
type: "span";
|
|
7208
|
+
}>, z.ZodObject<{
|
|
7209
|
+
type: z.ZodLiteral<"trace">;
|
|
7210
|
+
}, "strip", z.ZodTypeAny, {
|
|
7211
|
+
type: "trace";
|
|
7212
|
+
}, {
|
|
7213
|
+
type: "trace";
|
|
7214
|
+
}>]>;
|
|
7215
|
+
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
7216
|
+
}, "strip", z.ZodTypeAny, {
|
|
7217
|
+
scope: {
|
|
7218
|
+
type: "span";
|
|
7219
|
+
} | {
|
|
7220
|
+
type: "trace";
|
|
7221
|
+
};
|
|
7222
|
+
idempotency_key?: string | undefined;
|
|
7223
|
+
function_id?: unknown;
|
|
7224
|
+
}, {
|
|
7225
|
+
scope: {
|
|
7226
|
+
type: "span";
|
|
7227
|
+
} | {
|
|
7228
|
+
type: "trace";
|
|
7229
|
+
};
|
|
7230
|
+
idempotency_key?: string | undefined;
|
|
7231
|
+
function_id?: unknown;
|
|
7232
|
+
}>, "many">;
|
|
7069
7233
|
}, "strip", z.ZodTypeAny, {
|
|
7070
|
-
kind: "
|
|
7071
|
-
|
|
7234
|
+
kind: "trigger_functions";
|
|
7235
|
+
triggered_functions: {
|
|
7236
|
+
scope: {
|
|
7237
|
+
type: "span";
|
|
7238
|
+
} | {
|
|
7239
|
+
type: "trace";
|
|
7240
|
+
};
|
|
7241
|
+
idempotency_key?: string | undefined;
|
|
7242
|
+
function_id?: unknown;
|
|
7243
|
+
}[];
|
|
7072
7244
|
}, {
|
|
7073
|
-
kind: "
|
|
7074
|
-
|
|
7245
|
+
kind: "trigger_functions";
|
|
7246
|
+
triggered_functions: {
|
|
7247
|
+
scope: {
|
|
7248
|
+
type: "span";
|
|
7249
|
+
} | {
|
|
7250
|
+
type: "trace";
|
|
7251
|
+
};
|
|
7252
|
+
idempotency_key?: string | undefined;
|
|
7253
|
+
function_id?: unknown;
|
|
7254
|
+
}[];
|
|
7075
7255
|
}>, z.ZodObject<{
|
|
7076
7256
|
kind: z.ZodLiteral<"complete_triggered_functions">;
|
|
7077
7257
|
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
@@ -7084,6 +7264,15 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
|
|
|
7084
7264
|
kind: "complete_triggered_functions";
|
|
7085
7265
|
triggered_xact_id: string;
|
|
7086
7266
|
function_ids: unknown[];
|
|
7267
|
+
}>, z.ZodObject<{
|
|
7268
|
+
kind: z.ZodLiteral<"mark_attempt_failed">;
|
|
7269
|
+
function_ids: z.ZodArray<z.ZodUnknown, "many">;
|
|
7270
|
+
}, "strip", z.ZodTypeAny, {
|
|
7271
|
+
kind: "mark_attempt_failed";
|
|
7272
|
+
function_ids: unknown[];
|
|
7273
|
+
}, {
|
|
7274
|
+
kind: "mark_attempt_failed";
|
|
7275
|
+
function_ids: unknown[];
|
|
7087
7276
|
}>]>;
|
|
7088
7277
|
type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
|
|
7089
7278
|
declare const ObjectReference: z.ZodObject<{
|
|
@@ -9042,6 +9231,9 @@ type FlueExecutionOperation = {
|
|
|
9042
9231
|
} | {
|
|
9043
9232
|
type: "task";
|
|
9044
9233
|
taskId: string;
|
|
9234
|
+
} | {
|
|
9235
|
+
type: "coordinator";
|
|
9236
|
+
phase: "reconcile";
|
|
9045
9237
|
};
|
|
9046
9238
|
interface FlueTraceCarrier {
|
|
9047
9239
|
traceparent: string;
|