Files
discord-decomp/sources/by-id/module-00988.jsx
T
2026-07-27 16:20:00 +03:00

1685 lines
79 KiB
React

/* Metro module 988; source: unknown; dependencies: [5, 77, 874, 848, 989, 966, 849, 877, 990, 986, 969] */
function _fun10398(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:6, offset: 0x00d8c95f, size: 124 bytes, params: 8, frame: 19
let env0_0 = require;
const closure = function(a0, a1) {
var env0_0 = a1;
var Proxy = global.Proxy;
var value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
var value2 = new Proxy(a0, {apply: _fun10400});
return value2 instanceof Object ? value2 : value;
};
const env0_2 = require(5) /* metro dependency 5 */;
const env0_3 = require(77) /* metro dependency 77 */;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.instrumentLangGraph = instrumentLangGraph;
exports.instrumentStateGraphCompile = closure;
}
function instrumentStateGraphCompile(a0, a1) { // fn#10399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:54, offset: 0x00d8c9db, size: 56 bytes, params: 3, frame: 13
const env0_0 = a1;
const Proxy = global.Proxy;
const object2 = {apply: apply_10400};
const value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
const proxy = new Proxy(a0, object2);
return proxy instanceof Object ? proxy : value;
}
function instrumentLangGraph(a0, a1) { // fn#10408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:2558, offset: 0x00d8d112, size: 50 bytes, params: 3, frame: 14
a0.compile = instrumentStateGraphCompile(a0.compile.bind(a0), a1 || ({}));
return a0;
}
function instrumentStateGraphCompileApply(a0, a1, a2) { // fn#10400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:122, owner: instrumentStateGraphCompile.apply, offset: 0x00d8ca13, size: 194 bytes, params: 4, frame: 24
var environment;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
let value = environment.__proto__;
const moduleValue = require(874) /* metro dependency 874 */;
const startSpan = moduleValue.startSpan;
const object2 = {'op': 'gen_ai.create_agent', 'name': 'create_agent'};
const binding = env1_3;
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
const LANGGRAPH_ORIGIN = (require(989) /* metro dependency 989 */).LANGGRAPH_ORIGIN;
value = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, LANGGRAPH_ORIGIN);
const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_OP;
value = binding(value, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'gen_ai.create_agent');
const GEN_AI_OPERATION_NAME_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_OPERATION_NAME_ATTRIBUTE;
object2.attributes = binding(value, GEN_AI_OPERATION_NAME_ATTRIBUTE, 'create_agent');
return Reflect.apply(startSpan, moduleValue, [object2, _fun10401]);
}
function _fun10401(a0) { // fn#10401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:420, offset: 0x00d8cad5, size: 403 bytes, params: 2, frame: 23
var environment;
var r9;
var r7;
var r6;
var r4;
var Reflect;
var apply;
var value;
var binding;
var value2;
var length;
var value3;
var property;
var name;
var setAttribute;
var GEN_AI_AGENT_NAME_ATTRIBUTE;
var updateName;
var invoke;
var value4;
var closure;
var error;
var setStatus;
var SPAN_STATUS_ERROR;
try {
Reflect = global.Reflect;
apply = Reflect.apply;
value = environment;
binding = env0_0;
value2 = Reflect.apply(apply, Reflect, [binding, require, importDefault]);
length = importDefault.length;
value3 = length > 0;
if (value3) {
property = importDefault[0];
r9 = property;
} else {
r9 = {};
}
value = r9 != null;
if (value) {
name = r9.name;
r7 = name;
} else {
r7 = value;
}
if (r7) {
name = r9.name;
value = typeof name === 'string';
r6 = value;
} else {
r6 = r7;
}
if (r6) {
setAttribute = a0.setAttribute;
value = environment.__proto__.__proto__;
property = dependencyMap[5];
value = require(property);
GEN_AI_AGENT_NAME_ATTRIBUTE = value.GEN_AI_AGENT_NAME_ATTRIBUTE;
name = r9.name;
Reflect.apply(setAttribute, a0, [GEN_AI_AGENT_NAME_ATTRIBUTE, name]);
updateName = a0.updateName;
name = r9.name;
value = 'create_agent ' + name;
Reflect.apply(updateName, a0, [value]);
}
invoke = value2.invoke;
if (invoke) {
value = typeof invoke === 'function';
r4 = value;
} else {
r4 = invoke;
}
if (r4) {
value = invoke.bind(value2);
value4 = environment.__proto__;
closure = function(a0, a1, a2, a3) {
var env0_0 = a1;
var env0_1 = a2;
var env0_2 = a3;
var Proxy = global.Proxy;
var value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
var value2 = new Proxy(a0, {apply: _fun10403});
return value2 instanceof Object ? value2 : value;
};
value = closure(value, value2, r9, require);
value2.invoke = value;
}
} catch (error) {
setStatus = a0.setStatus;
value = environment.__proto__.__proto__;
SPAN_STATUS_ERROR = require(dependencyMap[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = require(dependencyMap[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
return value2;
}
function instrumentCompiledGraphInvoke(a0, a1, a2, a3) { // fn#10402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:683, offset: 0x00d8cc68, size: 70 bytes, params: 5, frame: 13
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const Proxy = global.Proxy;
const object2 = {apply: apply_10403};
const value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
const proxy = new Proxy(a0, object2);
return proxy instanceof Object ? proxy : value;
}
function instrumentCompiledGraphInvokeApply(a0, a1, a2) { // fn#10403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:757, owner: instrumentCompiledGraphInvoke.apply, offset: 0x00d8ccae, size: 207 bytes, params: 4, frame: 23
var environment;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
let value = environment.__proto__.__proto__.__proto__.__proto__;
const moduleValue = require(874) /* metro dependency 874 */;
const startSpan = moduleValue.startSpan;
const object2 = {'op': 'gen_ai.invoke_agent', 'name': 'invoke_agent'};
const binding = env4_3;
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
const LANGGRAPH_ORIGIN = (require(989) /* metro dependency 989 */).LANGGRAPH_ORIGIN;
value = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, LANGGRAPH_ORIGIN);
const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_OP;
const GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE;
value = binding(value, SEMANTIC_ATTRIBUTE_SENTRY_OP, GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE);
const GEN_AI_OPERATION_NAME_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_OPERATION_NAME_ATTRIBUTE;
object2.attributes = binding(value, GEN_AI_OPERATION_NAME_ATTRIBUTE, 'invoke_agent');
return Reflect.apply(startSpan, moduleValue, [object2, _fun10404()]);
}
function _fun10404() { // fn#10404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:1080, offset: 0x00d8cd7d, size: 32 bytes, params: 1, frame: 12
const env0_0 = env5_2(_fun10406);
return _fun10407;
}
function* _fun10406(a0) { // fn#10406, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1115:1100, offset: 0x00d8cda6, size: 876 bytes, params: 2, frame: 31
var name;
var r14;
var configurable;
var thread_id;
var r11;
var binding;
var value5;
var setAttribute;
var value7;
var binding2;
var property;
var value8;
var GEN_AI_PIPELINE_NAME_ATTRIBUTE;
var value9;
var GEN_AI_AGENT_NAME_ATTRIBUTE;
var updateName;
var concat;
var value10;
var length;
var value12;
var value13;
var value14;
var value16;
var binding3;
var value17;
var GEN_AI_CONVERSATION_ID_ATTRIBUTE;
var binding4;
var value19;
var extractToolsFromCompiledGraph;
var value20;
var binding5;
var value21;
var GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE;
var JSON;
var stringify;
var value22;
var recordInputs;
var recordOutputs;
var value23;
var messages;
var value24;
var object;
var binding6;
var value25;
var normalizeLangChainMessages;
var value26;
var value27;
var truncateGenAiMessages;
var value28;
var setAttributes;
var binding7;
var value29;
var GEN_AI_REQUEST_MESSAGES_ATTRIBUTE;
var value30;
var value31;
var value32;
var GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE;
var value33;
var Reflect;
var apply;
var value34;
var value35;
var value36;
var binding8;
var value37;
var setResponseAttributes;
var value38;
var error;
var setStatus;
var value39;
var binding9;
var SPAN_STATUS_ERROR;
if (false) {
return undefined;
}
value = undefined;
try {
binding = env3_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
const value4 = null;
try {
value5 = value4 == binding;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value5) {
name = value;
} else {
try {
binding = env3_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
name = binding.name;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
if (name && typeof name === 'string') {
try {
setAttribute = a0.setAttribute;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
value7 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding2 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding2[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value8 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_PIPELINE_NAME_ATTRIBUTE = value8.GEN_AI_PIPELINE_NAME_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setAttribute, a0, [GEN_AI_PIPELINE_NAME_ATTRIBUTE, name]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
setAttribute = a0.setAttribute;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding2[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value9 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_AGENT_NAME_ATTRIBUTE = value9.GEN_AI_AGENT_NAME_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setAttribute, a0, [GEN_AI_AGENT_NAME_ATTRIBUTE, name]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
updateName = a0.updateName;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value10 = Reflect.apply(concat, 'invoke_agent ', [name]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(updateName, a0, [value10]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
length = importAll.length;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value12 = length > 1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value12) {
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = importAll[1];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
r14 = property;
} else {
r14 = value;
}
try {
value13 = value4 == r14;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value13) {
configurable = value;
} else {
try {
configurable = r14.configurable;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
try {
value14 = value4 == configurable;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value14) {
thread_id = value;
} else {
try {
thread_id = configurable.thread_id;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
if (thread_id && typeof thread_id === 'string') {
try {
setAttribute = a0.setAttribute;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
value16 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding3 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding3[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value17 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_CONVERSATION_ID_ATTRIBUTE = value17.GEN_AI_CONVERSATION_ID_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setAttribute, a0, [GEN_AI_CONVERSATION_ID_ATTRIBUTE, thread_id]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding4 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding4[8];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value19 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
extractToolsFromCompiledGraph = value19.extractToolsFromCompiledGraph;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding = env3_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value20 = Reflect.apply(extractToolsFromCompiledGraph, value19, [binding]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value20) {
try {
setAttribute = a0.setAttribute;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding5 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding5[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value21 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE = value21.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
JSON = global.JSON;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
stringify = JSON.stringify;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value22 = Reflect.apply(stringify, JSON, [value20]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setAttribute, a0, [GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE, value22]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
try {
binding = env3_2;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
recordInputs = binding.recordInputs;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
recordOutputs = binding.recordOutputs;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
length = importAll.length;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value23 = length > 0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value23) {
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = importAll[0];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
messages = property.messages;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value24 = value4 != messages;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (value24) {
r11 = messages;
} else {
try {
object = [];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
r11 = object;
}
} else {
try {
object = [];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
r11 = object;
}
if (r11) {
if (recordInputs) {
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding6 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding6[9];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value25 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
normalizeLangChainMessages = value25.normalizeLangChainMessages;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value26 = Reflect.apply(normalizeLangChainMessages, value25, [r11]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding6[10];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value27 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
truncateGenAiMessages = value27.truncateGenAiMessages;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value28 = Reflect.apply(truncateGenAiMessages, value27, [value26]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
setAttributes = a0.setAttributes;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding7 = env7_3;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding6[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value29 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_REQUEST_MESSAGES_ATTRIBUTE = value29.GEN_AI_REQUEST_MESSAGES_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
JSON = global.JSON;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
stringify = JSON.stringify;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value30 = Reflect.apply(stringify, JSON, [value28]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
object = {};
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value31 = binding7(object, GEN_AI_REQUEST_MESSAGES_ATTRIBUTE, value30);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding6[5];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value32 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE = value32.GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
length = value26.length;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value33 = binding7(value31, GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE, length);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setAttributes, a0, [value33]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
}
try {
Reflect = global.Reflect;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
apply = Reflect.apply;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value34 = Reflect.apply(apply, Reflect, [require, importDefault, importAll]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
yield value34;
try {
value35 = undefined;
value36 = false;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
if (!value36) {
if (recordOutputs) {
try {
binding = env7_0;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
binding8 = env7_1;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
property = binding8[8];
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value37 = binding(property);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
setResponseAttributes = value37.setResponseAttributes;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
value38 = value4 != r11;
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
try {
Reflect.apply(setResponseAttributes, value37, [a0, value38 ? r11 : value4, value35]);
} catch (error) {
setStatus = a0.setStatus;
value39 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env7_0;
binding9 = env7_1;
SPAN_STATUS_ERROR = binding(binding9[6]).SPAN_STATUS_ERROR;
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
value = binding(binding9[7]);
value.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.langgraph.error'}});
throw error;
}
}
}
return value35;
}