@codebit-programando-solucoes/codebit-llm-coderag 1.1.39 → 1.1.41

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.
Files changed (72) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/license/index.js +1 -1
  3. package/dist/llm/bedrock/embedding/base-embedding.d.ts +26 -53
  4. package/dist/llm/bedrock/embedding/base-embedding.js +1 -1
  5. package/dist/llm/bedrock/embedding/bedrock-embedding-model.d.ts +5 -5
  6. package/dist/llm/bedrock/embedding/bedrock-embedding-model.js +1 -1
  7. package/dist/llm/bedrock/embedding/bedrock-embedding.d.ts +7 -12
  8. package/dist/llm/bedrock/embedding/bedrock-embedding.js +1 -1
  9. package/dist/llm/bedrock/embedding/index.js +1 -1
  10. package/dist/llm/bedrock/embedding/titan-embedding.d.ts +12 -14
  11. package/dist/llm/bedrock/embedding/titan-embedding.js +1 -1
  12. package/dist/llm/bedrock/embedding/titan-embedding.spec.js +1 -1
  13. package/dist/llm/bedrock/index.js +1 -1
  14. package/dist/llm/bedrock/llm/bedrock-llm-model.d.ts +2 -2
  15. package/dist/llm/bedrock/llm/bedrock-llm-model.js +1 -1
  16. package/dist/llm/bedrock/llm/bedrock-llm.d.ts +73 -178
  17. package/dist/llm/bedrock/llm/bedrock-llm.js +1 -1
  18. package/dist/llm/bedrock/llm/claude-llm.d.ts +5 -11
  19. package/dist/llm/bedrock/llm/claude-llm.js +1 -1
  20. package/dist/llm/bedrock/llm/claude-llm.spec.js +1 -1
  21. package/dist/llm/bedrock/llm/deep-seek-llm.d.ts +4 -10
  22. package/dist/llm/bedrock/llm/deep-seek-llm.js +1 -1
  23. package/dist/llm/bedrock/llm/deepseek-llm.spec.js +1 -1
  24. package/dist/llm/bedrock/llm/index.js +1 -1
  25. package/dist/llm/bedrock/llm/nova-llm.d.ts +4 -11
  26. package/dist/llm/bedrock/llm/nova-llm.js +1 -1
  27. package/dist/llm/bedrock/llm/nova-llm.spec.js +1 -1
  28. package/dist/llm/index.js +1 -1
  29. package/dist/llm/llm.interface.d.ts +26 -83
  30. package/dist/llm/llm.interface.js +1 -1
  31. package/dist/llm/tool.type.d.ts +8 -23
  32. package/dist/llm/tool.type.js +1 -1
  33. package/dist/ocr/aws-textract-to-markdown.js +1 -1
  34. package/dist/ocr/aws-textract.d.ts +32 -38
  35. package/dist/ocr/aws-textract.js +1 -1
  36. package/dist/ocr/aws-textract.spec.js +1 -1
  37. package/dist/ocr/index.js +1 -1
  38. package/dist/ocr/ocr.interface.d.ts +27 -34
  39. package/dist/ocr/ocr.interface.js +1 -1
  40. package/dist/util/common.d.ts +5 -4
  41. package/dist/util/common.js +1 -1
  42. package/dist/util/common.spec.js +1 -1
  43. package/dist/util/conversion/audio-conversion.d.ts +5 -8
  44. package/dist/util/conversion/audio-conversion.js +1 -1
  45. package/dist/util/conversion/audio-conversion.spec.js +1 -1
  46. package/dist/util/conversion/csv-conversion.d.ts +12 -25
  47. package/dist/util/conversion/csv-conversion.js +1 -1
  48. package/dist/util/conversion/csv-conversion.spec.js +1 -1
  49. package/dist/util/conversion/image-conversion.d.ts +33 -66
  50. package/dist/util/conversion/image-conversion.js +1 -1
  51. package/dist/util/conversion/image-conversion.spec.js +1 -1
  52. package/dist/util/conversion/index.d.ts +1 -1
  53. package/dist/util/conversion/index.js +1 -1
  54. package/dist/util/conversion/office-conversion.d.ts +5 -14
  55. package/dist/util/conversion/office-conversion.js +1 -1
  56. package/dist/util/conversion/office-conversion.spec.js +1 -1
  57. package/dist/util/conversion/pdf-conversion.d.ts +16 -40
  58. package/dist/util/conversion/pdf-conversion.js +1 -1
  59. package/dist/util/conversion/pdf-conversion.spec.js +1 -1
  60. package/dist/util/conversion/xlsx-conversion.d.ts +14 -31
  61. package/dist/util/conversion/xlsx-conversion.js +1 -1
  62. package/dist/util/conversion/xlsx-conversion.spec.js +1 -1
  63. package/dist/util/index.js +1 -1
  64. package/dist/util/parallel.d.ts +21 -29
  65. package/dist/util/parallel.js +1 -1
  66. package/dist/util/parallel.spec.js +1 -1
  67. package/dist/util/semaphore/database-semaphore.interface.d.ts +3 -8
  68. package/dist/util/semaphore/database-semaphore.interface.js +1 -1
  69. package/dist/util/semaphore/index.js +1 -1
  70. package/dist/util/semaphore/pg-semaphore.d.ts +4 -11
  71. package/dist/util/semaphore/pg-semaphore.js +1 -1
  72. package/package.json +5 -5
@@ -15,63 +15,44 @@ import {
15
15
  import { ToolFunction } from '../../tool.type';
16
16
 
17
17
  /**
18
- * Configuration parameters for Bedrock's thinking mode feature.
19
- * Thinking mode allows the model to perform internal reasoning before generating
20
- * the final response, which can improve the quality of complex problem-solving tasks.
18
+ * Configuration parameters for Bedrock's thinking mode feature. Thinking mode allows the model to perform internal reasoning before generating the final response, which can
19
+ * improve the quality of complex problem-solving tasks.
21
20
  */
22
21
  export type BedrockThinkingParams = {
23
- /**
24
- * Whether thinking mode is enabled for the request.
25
- * When enabled, the model will perform internal reasoning steps
26
- * before generating the final response.
27
- */
22
+ /** Whether thinking mode is enabled for the request. When enabled, the model will perform internal reasoning steps before generating the final response. */
28
23
  enabled: boolean;
29
24
 
30
25
  /**
31
- * Optional token budget allocated specifically for thinking/reasoning.
32
- * This limits the number of tokens the model can use for internal reasoning,
33
- * helping to control costs while still allowing for thoughtful responses.
34
- * If not specified, the model will use its default thinking token allocation.
26
+ * Optional token budget allocated specifically for thinking/reasoning. This limits the number of tokens the model can use for internal reasoning, helping to control costs
27
+ * while still allowing for thoughtful responses. If not specified, the model will use its default thinking token allocation.
35
28
  */
36
29
  budgetTokens?: number;
37
30
  };
38
31
 
39
32
  /**
40
- * Additional arguments specific to Bedrock LLM implementations.
41
- * These parameters extend the base LLM functionality with Bedrock-specific features
42
- * that can enhance model performance for certain use cases.
33
+ * Additional arguments specific to Bedrock LLM implementations. These parameters extend the base LLM functionality with Bedrock-specific features that can enhance model
34
+ * performance for certain use cases.
43
35
  */
44
36
  export type BedrockAdditionalArgs = {
45
37
  /**
46
- * Configuration for Bedrock's thinking mode feature.
47
- * Thinking mode enables the model to perform internal reasoning
48
- * and planning before generating the final response, which can
49
- * significantly improve performance on complex tasks requiring
50
- * multi-step reasoning, problem-solving, or detailed analysis.
38
+ * Configuration for Bedrock's thinking mode feature. Thinking mode enables the model to perform internal reasoning and planning before generating the final response, which can
39
+ * significantly improve performance on complex tasks requiring multi-step reasoning, problem-solving, or detailed analysis.
51
40
  */
52
41
  thinking: BedrockThinkingParams;
53
42
  };
54
43
 
55
- /**
56
- * Type representing possible role types for Bedrock messages.
57
- */
44
+ /** Type representing possible role types for Bedrock messages. */
58
45
  export type BedrockMessageRoleType = 'user' | 'assistant' | 'system';
59
46
 
60
- /**
61
- * Type representing supported image formats for Bedrock content.
62
- */
47
+ /** Type representing supported image formats for Bedrock content. */
63
48
  export type BedrockImageFormat = 'png' | 'jpeg';
64
49
 
65
- /**
66
- * Type representing text content that can be sent to Bedrock API.
67
- */
50
+ /** Type representing text content that can be sent to Bedrock API. */
68
51
  export type BedrockContentText = {
69
52
  text: string;
70
53
  };
71
54
 
72
- /**
73
- * Type representing image content that can be sent to Bedrock API.
74
- */
55
+ /** Type representing image content that can be sent to Bedrock API. */
75
56
  export type BedrockContentImage = {
76
57
  image: {
77
58
  format: BedrockImageFormat;
@@ -79,184 +60,116 @@ export type BedrockContentImage = {
79
60
  };
80
61
  };
81
62
 
82
- /**
83
- * Union type representing possible content types in Bedrock requests.
84
- */
63
+ /** Union type representing possible content types in Bedrock requests. */
85
64
  export type BedrockContent = BedrockContentText | BedrockContentImage;
86
65
 
87
- /**
88
- * Type representing a message to be sent to Bedrock API.
89
- */
90
- export type BedrockMessage = {
91
- /**
92
- * Role of the entity sending the message.
93
- */
94
- role: BedrockMessageRoleType;
95
- /**
96
- * Array of content items in the message.
97
- */
98
- content: BedrockContent[];
99
- };
100
-
101
- /**
102
- * Type representing a text response type from Bedrock.
103
- */
66
+ /** Type representing a message to be sent to Bedrock API. */
67
+ export type BedrockMessage =
68
+ | {
69
+ /** Role of the entity sending the message. */
70
+ role: BedrockMessageRoleType;
71
+ /** Array of content items in the message. */
72
+ content: BedrockContent[];
73
+ }
74
+ | unknown;
75
+
76
+ /** Type representing a text response type from Bedrock. */
104
77
  export type BedrockResponseTypeText = 'text';
105
78
 
106
- /**
107
- * Type representing a reasoning response type from Bedrock.
108
- */
79
+ /** Type representing a reasoning response type from Bedrock. */
109
80
  export type BedrockResponseTypeReasoning = 'reasoning';
110
81
 
111
- /**
112
- * Type representing an unknown response type from Bedrock.
113
- */
82
+ /** Type representing an unknown response type from Bedrock. */
114
83
  export type BedrockResponseTypeUnknow = 'unknow';
115
84
 
116
85
  /**
117
- * Type representing a usage metadata response type from Bedrock.
118
- * This type is used to indicate content that contains usage statistics
119
- * such as token counts and API consumption data.
86
+ * Type representing a usage metadata response type from Bedrock. This type is used to indicate content that contains usage statistics such as token counts and API consumption
87
+ * data.
120
88
  */
121
89
  export type BedrockResponseTypeUsage = 'usage';
122
90
 
123
91
  /**
124
- * Type representing a tool use response type from Bedrock.
125
- * This type is used when the LLM decides to call a function/tool
126
- * as part of its response, containing the tool call information.
92
+ * Type representing a tool use response type from Bedrock. This type is used when the LLM decides to call a function/tool as part of its response, containing the tool call
93
+ * information.
127
94
  */
128
95
  export type BedrockResponseTypeToolUse = 'toolUse';
129
96
 
130
- /**
131
- * Type representing a message stop response type from Bedrock.
132
- */
97
+ /** Type representing a message stop response type from Bedrock. */
133
98
  export type BedrockResponseTypeMessageStop = 'messageStop';
134
99
 
135
- /**
136
- * Type representing text content in Bedrock response.
137
- */
100
+ /** Type representing text content in Bedrock response. */
138
101
  export type BedrockResponseContentText = {
139
- /**
140
- * Type of the response content.
141
- */
102
+ /** Type of the response content. */
142
103
  type: BedrockResponseTypeText;
143
- /**
144
- * Text content of the response.
145
- */
104
+ /** Text content of the response. */
146
105
  data: string;
147
106
  };
148
107
 
149
- /**
150
- * Type representing reasoning content in Bedrock response.
151
- */
108
+ /** Type representing reasoning content in Bedrock response. */
152
109
  export type BedrockResponseContentReasoning = {
153
- /**
154
- * Type of the response content.
155
- */
110
+ /** Type of the response content. */
156
111
  type: BedrockResponseTypeReasoning;
112
+ /** Reasoning content as text. */
113
+ data: string | Uint8Array;
157
114
  /**
158
- * Reasoning content as text.
115
+ * Optional cryptographic signature or unique identifier for the reasoning content. This field may be provided by Bedrock to verify the authenticity and integrity of the
116
+ * reasoning process, particularly when using thinking mode features.
159
117
  */
160
- data: string;
118
+ signature?: string;
161
119
  };
162
120
 
163
- /**
164
- * Type representing unknown content in Bedrock response.
165
- */
121
+ /** Type representing unknown content in Bedrock response. */
166
122
  export type BedrockResponseContentUnknow = {
167
- /**
168
- * Type of the response content.
169
- */
123
+ /** Type of the response content. */
170
124
  type: BedrockResponseTypeUnknow;
171
- /**
172
- * Unknown content, either as string or another type.
173
- */
125
+ /** Unknown content, either as string or another type. */
174
126
  data: string | unknown;
175
127
  };
176
128
 
177
- /**
178
- * Type representing usage metadata content in Bedrock response.
179
- * The content is a string representing a JSON object in the format:
180
- * {
181
- * inputTokens: number;
182
- * outputTokens: number;
183
- * }
184
- */
129
+ /** Type representing usage metadata content in Bedrock response. The content is a string representing a JSON object in the format: { inputTokens: number; outputTokens: number; } */
185
130
  export type BedrockResponseContentUsage = {
186
- /**
187
- * Identifies this as usage statistics content
188
- */
131
+ /** Identifies this as usage statistics content */
189
132
  type: BedrockResponseTypeUsage;
190
- /**
191
- * The usage statistics content as a JSON string containing inputTokens and outputTokens
192
- */
133
+ /** The usage statistics content as a JSON string containing inputTokens and outputTokens */
193
134
  data: string;
194
135
  };
195
136
 
196
137
  /**
197
- * Type representing tool use content in Bedrock response.
198
- * This is used when the LLM decides to call a function/tool,
199
- * containing the tool call details such as function name and arguments.
138
+ * Type representing tool use content in Bedrock response. This is used when the LLM decides to call a function/tool, containing the tool call details such as function name and
139
+ * arguments.
200
140
  */
201
141
  export type BedrockResponseContentToolUse = {
202
- /**
203
- * Type of the response content indicating a tool use.
204
- */
142
+ /** Type of the response content indicating a tool use. */
205
143
  type: BedrockResponseTypeToolUse;
206
- /**
207
- * Tool use data containing function call information,
208
- * either as a string (JSON format) or structured object.
209
- */
144
+ /** Tool use data containing function call information, either as a string (JSON format) or structured object. */
210
145
  data: string | unknown;
211
146
  };
212
147
 
213
- /**
214
- * Type representing message stop content in Bedrock response.
215
- */
148
+ /** Type representing message stop content in Bedrock response. */
216
149
  export type BedrockResponseContentMessageStop = {
217
- /**
218
- * Type of the response content.
219
- */
150
+ /** Type of the response content. */
220
151
  type: BedrockResponseTypeMessageStop;
221
- /**
222
- * Stop reason data.
223
- */
152
+ /** Stop reason data. */
224
153
  data: BedrockStopReason;
225
154
  };
226
155
 
227
- /**
228
- * Enumeration of possible reasons why Bedrock stopped generating content.
229
- */
156
+ /** Enumeration of possible reasons why Bedrock stopped generating content. */
230
157
  export enum BedrockStopReason {
231
- /**
232
- * Content was filtered due to safety or policy violations.
233
- */
158
+ /** Content was filtered due to safety or policy violations. */
234
159
  CONTENT_FILTERED = 'content_filtered',
235
- /**
236
- * Model naturally completed its response.
237
- */
160
+ /** Model naturally completed its response. */
238
161
  END_TURN = 'end_turn',
239
- /**
240
- * Guardrail intervened to prevent inappropriate content.
241
- */
162
+ /** Guardrail intervened to prevent inappropriate content. */
242
163
  GUARDRAIL_INTERVENED = 'guardrail_intervened',
243
- /**
244
- * Maximum token limit was reached.
245
- */
164
+ /** Maximum token limit was reached. */
246
165
  MAX_TOKENS = 'max_tokens',
247
- /**
248
- * A predefined stop sequence was encountered.
249
- */
166
+ /** A predefined stop sequence was encountered. */
250
167
  STOP_SEQUENCE = 'stop_sequence',
251
- /**
252
- * Model stopped to execute a tool/function call.
253
- */
168
+ /** Model stopped to execute a tool/function call. */
254
169
  TOOL_USE = 'tool_use',
255
170
  }
256
171
 
257
- /**
258
- * Union type representing possible content types in Bedrock response.
259
- */
172
+ /** Union type representing possible content types in Bedrock response. */
260
173
  export type BedrockResponseContent =
261
174
  | BedrockResponseContentText
262
175
  | BedrockResponseContentReasoning
@@ -265,41 +178,25 @@ export type BedrockResponseContent =
265
178
  | BedrockResponseContentToolUse
266
179
  | BedrockResponseContentMessageStop;
267
180
 
268
- /**
269
- * Type representing a complete response from Bedrock API.
270
- */
181
+ /** Type representing a complete response from Bedrock API. */
271
182
  export type BedrockResponse = {
272
- /**
273
- * Usage statistics for the API call.
274
- */
183
+ /** Usage statistics for the API call. */
275
184
  usage: {
276
- /**
277
- * Number of tokens in the input.
278
- */
185
+ /** Number of tokens in the input. */
279
186
  inputTokens: number;
280
- /**
281
- * Number of tokens in the output.
282
- */
187
+ /** Number of tokens in the output. */
283
188
  outputTokens: number;
284
189
  };
285
- /**
286
- * Array of response content items.
287
- */
190
+ /** Array of response content items. */
288
191
  content: BedrockResponseContent[];
289
- /**
290
- * Reason why the model stopped generating content.
291
- * Possible values include 'end_turn', 'max_tokens', 'stop_sequence', 'tool_use', etc.
292
- */
192
+ /** Reason why the model stopped generating content. Possible values include 'end_turn', 'max_tokens', 'stop_sequence', 'tool_use', etc. */
293
193
  stopReason: BedrockStopReason;
294
- /**
295
- * The raw response from the Bedrock API.
296
- */
194
+ /** The raw response from the Bedrock API. */
297
195
  bedrockResponse: ConverseCommandOutput;
298
196
  };
299
197
 
300
198
  /**
301
- * Abstract class for interacting with AWS Bedrock API.
302
- * Implements the LlmInterface for standardized language model interactions.
199
+ * Abstract class for interacting with AWS Bedrock API. Implements the LlmInterface for standardized language model interactions.
303
200
  *
304
201
  * @template TAdditionalParams Type for additional parameters specific to the implementation.
305
202
  */
@@ -427,10 +324,8 @@ export abstract class BedrockLlm<TAdditionalParams>
427
324
  ): AsyncGenerator<LLmResponseContent, void, unknown>;
428
325
 
429
326
  /**
430
- * Estimates the number of tokens that would be consumed by the given text data.
431
- * This method provides an approximation of token count without making an actual API call,
432
- * which is useful for cost estimation, input validation, and determining if content
433
- * fits within model token limits.
327
+ * Estimates the number of tokens that would be consumed by the given text data. This method provides an approximation of token count without making an actual API call, which
328
+ * is useful for cost estimation, input validation, and determining if content fits within model token limits.
434
329
  *
435
330
  * @param data - The text content to estimate token count for
436
331
  * @returns Promise resolving to the estimated number of tokens
@@ -1 +1 @@
1
- 'use strict';const a10_0x461202=a10_0x467d;(function(_0x595bc0,_0x369539){const _0x1c68cb=a10_0x467d,_0x256a8a=_0x595bc0();while(!![]){try{const _0x112174=parseInt(_0x1c68cb(0x142))/0x1*(parseInt(_0x1c68cb(0x170))/0x2)+-parseInt(_0x1c68cb(0x1c0))/0x3+-parseInt(_0x1c68cb(0xc3))/0x4*(-parseInt(_0x1c68cb(0x139))/0x5)+parseInt(_0x1c68cb(0x131))/0x6*(parseInt(_0x1c68cb(0x1c6))/0x7)+parseInt(_0x1c68cb(0xc9))/0x8*(-parseInt(_0x1c68cb(0x164))/0x9)+parseInt(_0x1c68cb(0x1ae))/0xa*(parseInt(_0x1c68cb(0x121))/0xb)+-parseInt(_0x1c68cb(0x175))/0xc*(-parseInt(_0x1c68cb(0x157))/0xd);if(_0x112174===_0x369539)break;else _0x256a8a['push'](_0x256a8a['shift']());}catch(_0x51a00e){_0x256a8a['push'](_0x256a8a['shift']());}}}(a10_0x4dd0,0x37166));Object[a10_0x461202(0xc1)](exports,a10_0x461202(0x1a9),{'value':!![]}),exports[a10_0x461202(0xf5)]=exports[a10_0x461202(0x117)]=void 0x0;function a10_0x467d(_0x523a63,_0x261d3d){const _0x20aff7=a10_0x4dd0();return a10_0x467d=function(_0x46a8b2,_0x1349fc){_0x46a8b2=_0x46a8b2-0xb2;let _0x4ff3f0=_0x20aff7[_0x46a8b2];if(a10_0x467d['DeeqHL']===undefined){var _0x420d7f=function(_0x467da0){const _0x7cc373='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xab4f11='',_0x6f0c3c='';for(let _0x1382fb=0x0,_0x24e308,_0x27b173,_0x463828=0x0;_0x27b173=_0x467da0['charAt'](_0x463828++);~_0x27b173&&(_0x24e308=_0x1382fb%0x4?_0x24e308*0x40+_0x27b173:_0x27b173,_0x1382fb++%0x4)?_0xab4f11+=String['fromCharCode'](0xff&_0x24e308>>(-0x2*_0x1382fb&0x6)):0x0){_0x27b173=_0x7cc373['indexOf'](_0x27b173);}for(let _0x54f070=0x0,_0x3c8f6e=_0xab4f11['length'];_0x54f070<_0x3c8f6e;_0x54f070++){_0x6f0c3c+='%'+('00'+_0xab4f11['charCodeAt'](_0x54f070)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6f0c3c);};a10_0x467d['kBTCyt']=_0x420d7f,_0x523a63=arguments,a10_0x467d['DeeqHL']=!![];}const _0x1e0b22=_0x20aff7[0x0],_0x31f3b8=_0x46a8b2+_0x1e0b22,_0x4dd03a=_0x523a63[_0x31f3b8];return!_0x4dd03a?(_0x4ff3f0=a10_0x467d['kBTCyt'](_0x4ff3f0),_0x523a63[_0x31f3b8]=_0x4ff3f0):_0x4ff3f0=_0x4dd03a,_0x4ff3f0;},a10_0x467d(_0x523a63,_0x261d3d);}function a10_0x4dd0(){const _0x33c174=['t1LvBLm','zw5Kx3r1CM4','vvvRteC','ugfpv3C','v1z4q3K','C21rzNG','y2jxywu','CfL1A0e','qMXgr0W','D2HPBguGkhrYDwuPihT9','Dgv4Da','Dg9VBenOB2LJzq','ALnpt2O','zgvMAw5LuhjVCgvYDhK','C3rHDgvpyMPLy3q','nti0meTxrvjmuq','yvjeDve','Aw52B2TLu3rYzwfT','zuj3Ahe','zufgqK0','u1rpuf9trvfvru5drq','nJa4vuX5DMfP','rhf5s1C','sw52ywXPzcbTzxnZywDLihr5CguU','rvj0AKK','we9eCgq','twXXqNe','Chzlu0e','Bgr1zKC','DuDnrvq','B01uCui','ve9ptf9vu0u','rgnutLK','s3zvsuW','tNz1C2W','BeL5qNK','CMvHC29UAw5Nvgv4Da','q29UDMvYC2vtDhjLyw1dB21Tyw5K','vLv6Au0','B0jovMi','EefYDuO','BwfW','lI4VlI4VDg9VBc50ExbL','zgvZy3jPChrPB24','y29UDgvUDf9MAwX0zxjLza','q0vmqMi','ue9YtLq','DxnHz2u','BfDqBgG','DgvZDa','C3z3AwO','yxnZAxn0yw50','DhjHy2u','wwPdt3e','r21TCwu','yxbWBhK','BxrrBwu','tfvvrLK','twTmyuK','y29UDgvUDejSB2nRrgvSDge','vhzPC1q','vg5uzfu','EMXOENq','sMzPtvi','yLvwwhG','qMvKCM9JA0XSBq','ChjVDg90ExbL','zxHLy3v0zvrVB2XZ','t2jqsg0','C3rYAw5N','Aw5MBW','zu1OB3e','y29UC3rYDwn0B3i','qK5NzKK','AujvsK8','Dg9tDhjPBMC','zKLLweG','zvbTt0C','sgvgquC','D1jzu0C','t1DfwuS','y29UDgvUDejSB2nRu3rHCNq','CMvHC29UAw5N','y29UDMvYDeXSBvrVB2XgDw5JDgLVBLrVvg9VBenVBMzPzW','y2XPzw50','r0jIrhm','z2v0twf4vg9Rzw5Z','q09ovevovf9gsuXurvjfra','z0Dluue','wvHXy2S','BMfTzq','BgPvBg8','uMzSr2e','A0HYANe','Bw9KzwW','Bwv0ywrHDge','iIbMywLSzwqGD2L0AcbLCNjVCI4','ufzqueu','y3PRD1O','qMvKCM9JA1n0B3bszwfZB24','CMvHC29UAw5Nq29UDgvUDa','D3L5rvi','BwvZC2fNzq','EgTRu3m','zMnmAxK','rMDeBfu','Dg9VBfvZzq','BwvZC2fNzvn0B3a','zgvSDge','nJuYmdq3CvPkCKnr','sxf6Beq','v29juM0','s21mtui','B2jQzwn0','vxDXsw0','AKHkDhi','z0TZEeS','zgf0yq','sKPAuxa','Egfgrxa','wg1cEw0','Bwf4x3rVA2vUCW','reDhze4','vvHUsKW','wgXouxy','nJeWmdH3ELfJz2q','Aw5WDxq','tLb5B2q','q29UDMvYC2vdB21Tyw5K','weTwENK','B3v0Chv0vg9Rzw5Z','txjXthm','x19WCM90B19F','mtiWnvnguu9rCq','sgHjDhK','qMvKCM9JA1j1BNrPBwvdBgLLBNq','ChvZAa','sgzeDue','CxjcB2C','y2fSBa','uuPwuLu','t1fYB28','mtiXt1jAAuv0','z2jOzgS','v21xq2m','DefPrw8','EgjTzgm','CMv0DxjUicHMDw5JDgLVBIGPia','DhLWzq','u0LMvKm','BhbStMi','twnmrMS','ELzOtKO','vg9VBenOB2LJzq','swr6B0q','zxDrwg8','y29UDMvYDeXSBu1LC3nHz2vuB0jLzhjVy2TnzxnZywDL','z0TIExm','z2DLCG','ugLzBve','C3rHCNq','DgvTCgvYyxr1CMu','DePws0m','nJKXoteYwujqqvne','EfDoBxe','t0XtvLe','Aw52B2TL','y29UDgvUDa','y3jLyxrLuMvXDwvZDa','Ag5ZBKO','ru5ex1rvuK4','D0HACuS','rKfsywy','BvLXBKG','v3nPAKy','BLrtqvm','mJe4ndnUB0zItKS','svjlDhG','y2fSBeXSBq','zNvUy3rPB24GkLWOicPCkq','vg9VBcaI','C2vUza','yKrwtNm','AfzJB0u','B3v0Chv0','Bwf4vg9Rzw5Z','DLbtCgG','v2n5q1G','mJe0sgPbrxze','yLDbAxq','zMLSDgvY','qgf3CY1ZzgSVy2XPzw50lwjLzhjVy2STCNvUDgLTzq','Dw5RBM93','mJr5vvblu0C','E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK','rwHVA24','yMnZAg4','thPSCKG','qvvutW','z3vHCMrYywLSx2LUDgvYDMvUzwq','A1bACLq','y2HHAw4','CNLdquC','C3LIAwq','rwH0ufu','zxzRwvq','v3jUr3y','Aw5PDa','rMDPteK','AxLNExe','Aw5WDxruB2TLBNm','BuPWAuK','y291BNrLCG','uKXZAha','zw1yqNm','y29UDgvUDejSB2nRsw5KzxG','sxnRyxe','whPOEKm','whn6B0O','y29UC29Szq','s3jsr2e','Ee9osu0','C3rYzwfT','D2fYBG','BgvUz3rO','C3rYAw5NAwz5','q2TTC0e','ENnQBxK','uKvgzuO','CgfYC2u','zxjYB3i','zhHks2i','ruzcsMG','Dg9VBf91C2u','Dg9VBenHBgW','BLbXsM8','Aw5WDxrty2HLBwe','uLHgz1y','uwLLtNy','r2fmqxO','v0nZwfm','Dg9Wua','rKPeBhK','y21xsKi','z0fhCM0','x19LC01VzhvSzq','DgLmrMO','txnHz08','DM93yLy','u3jrrKO','ntbTEfLOtwy','vvvqr1K','zM9YBwf0','CM9Szq','u1rPs3a','reD4Ag8','ENPfBey','C3vJy2vZCW','tMDWvKO','z2TZEfy','B0zouxC','z2DcA2y','rhb4s2S','ALfbvfi','BeH4uLy','DuXtDKG','AKjmCxa','vwPOEuO','mtaYntiWofHrtuXxvG','qNrVB1G','uMTJEhm','u3nAExO','CwH3AKO','C3rVCfjLyxnVBG','mtrft0fKy0O','D3jhvMW','zNb1Eg4','ywn0Aw9U','C1Hdzhm','twDHB3G','y2HLy2TbCgLmAwnLBNnL','rK9sq0ve','vwXjAxa','EhDjr3C','vM9jCeS','r1vbuKrsquLmx0LovevsvKvoruq','yMLUza','Bfn3rLy'];a10_0x4dd0=function(){return _0x33c174;};return a10_0x4dd0();}const a10_0x147a1a=require(a10_0x461202(0x173)),a10_0x4b5769=require('../../../license/index'),a10_0x33e6da=require(a10_0x461202(0xde));var BedrockStopReason;(function(BedrockStopReason){const _0x535ec2=a10_0x461202,_0x5785f7={'uGMET':'\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','PaOWw':_0x535ec2(0x183),'ggBkf':_0x535ec2(0x17d),'QJOJo':_0x535ec2(0xe2),'KrRGa':function(_0x10c905){return _0x10c905();},'kHrjq':_0x535ec2(0x11e),'WrnGv':_0x535ec2(0x18e),'jHJtr':'njdqp','gGKQA':function(_0x5bcdee,_0xaac05e,_0x104eab){return _0x5bcdee(_0xaac05e,_0x104eab);},'omkgR':_0x535ec2(0x132),'bUVXx':function(_0x2cb875,_0x2d133b){return _0x2cb875(_0x2d133b);},'lIyBy':_0x535ec2(0x12f),'EiisY':function(_0x1090da,_0x55bd23){return _0x1090da!==_0x55bd23;},'Rkcxs':'Gmmqe','hnsnJ':_0x535ec2(0x144),'kxigN':'cktGz','xkkSs':function(_0x3ed8a2,_0xbb75b5){return _0x3ed8a2!==_0xbb75b5;},'ObPHm':'ChloZ','vPSph':_0x535ec2(0x156),'nNjTy':'return\x20(function()\x20','XjnIv':_0x535ec2(0x176),'GWtVB':_0x535ec2(0x193),'AxwJu':_0x535ec2(0xfa),'wHZqK':'exception','UwqIm':'table','sWcgr':_0x535ec2(0xe8),'iBUJO':function(_0x45c8f1,_0x16e653){return _0x45c8f1<_0x16e653;},'uSrcL':function(_0x40e21f,_0x4bac5f){return _0x40e21f===_0x4bac5f;},'DqyKW':'oZIAI','CELBb':_0x535ec2(0x10b),'NSnka':_0x535ec2(0xe0),'mPwhh':_0x535ec2(0x15e),'VUziM':_0x535ec2(0xb5),'wrGVl':_0x535ec2(0x1d1),'SrQFJ':'MAX_TOKENS','fpuxn':_0x535ec2(0x12d),'xaFEp':_0x535ec2(0xc8),'XmBym':'stop_sequence','XKVzy':_0x535ec2(0xd3)},_0x5a97f0=(function(){const _0x13cb53=_0x535ec2,_0x14e244={'ERtjI':function(_0x5cf866,_0x3b24b4){return _0x5cf866===_0x3b24b4;},'mJpiI':_0x13cb53(0x128)};let _0x5462ae=!![];return function(_0x24222b,_0x3b8467){const _0x4bb875=_0x5462ae?function(){const _0x4d36b8=a10_0x467d;if(_0x14e244[_0x4d36b8(0xcc)]('gKsxK',_0x14e244[_0x4d36b8(0x187)])){if(_0x3b8467){const _0x4300ae=_0x3b8467[_0x4d36b8(0xeb)](_0x24222b,arguments);return _0x3b8467=null,_0x4300ae;}}else{const _0x5bad88=_0x47ec7c['constructor'][_0x4d36b8(0xf6)][_0x4d36b8(0xb2)](_0x424d84),_0xf3c894=_0x161750[index],_0xd1d8fe=_0x50bbda[_0xf3c894]||_0x5bad88;_0x5bad88[_0x4d36b8(0x138)]=_0x49f465[_0x4d36b8(0xb2)](_0x52c235),_0x5bad88[_0x4d36b8(0xff)]=_0xd1d8fe[_0x4d36b8(0xff)]['bind'](_0xd1d8fe),_0x3cf897[_0xf3c894]=_0x5bad88;}}:function(){};return _0x5462ae=![],_0x4bb875;};}());(function(){const _0x1185b1=_0x535ec2,_0xabe116={'UZpBk':_0x5785f7[_0x1185b1(0xd1)],'bWAit':function(_0x178111,_0x2744e7){return _0x178111(_0x2744e7);},'NPyod':_0x5785f7[_0x1185b1(0xb7)],'wyyER':_0x5785f7[_0x1185b1(0x1b9)],'GaLAz':_0x1185b1(0x132),'oBNVb':_0x5785f7['QJOJo'],'eBwhq':function(_0x4eb4b2){return _0x5785f7['KrRGa'](_0x4eb4b2);},'SIfVC':_0x5785f7[_0x1185b1(0x111)]};if(_0x5785f7[_0x1185b1(0x182)]!==_0x5785f7[_0x1185b1(0x127)])_0x5785f7[_0x1185b1(0x10c)](_0x5a97f0,this,function(){const _0x299617=_0x1185b1,_0x2d2476=new RegExp(_0x299617(0x167)),_0x569634=new RegExp(_0xabe116['UZpBk'],'i'),_0x91d7a8=_0xabe116[_0x299617(0x171)](a10_0x4df03,_0xabe116[_0x299617(0x133)]);if(!_0x2d2476[_0x299617(0xe5)](_0x91d7a8+_0xabe116[_0x299617(0x119)])||!_0x569634[_0x299617(0xe5)](_0x91d7a8+_0xabe116[_0x299617(0x1a3)]))_0xabe116[_0x299617(0x171)](_0x91d7a8,'0');else{if(_0x299617(0xe2)===_0xabe116[_0x299617(0xdb)])_0xabe116[_0x299617(0xc6)](a10_0x4df03);else throw new _0x4b7a96(_0x299617(0x168)+_0x14d347+'\x22\x20not\x20found');}})();else return{'type':_0xabe116[_0x1185b1(0x149)],'data':_0x6511af[_0xabe116[_0x1185b1(0x149)]]};}());const _0x479b76=(function(){const _0x486f19=_0x535ec2,_0x11af44={'WsijF':_0x5785f7[_0x486f19(0xd1)],'IqzlD':_0x5785f7[_0x486f19(0xb7)],'nPqJo':_0x486f19(0x17d),'MlqBq':_0x5785f7['omkgR'],'lplNb':function(_0x2fd36c,_0x2d7fc4){return _0x5785f7['bUVXx'](_0x2fd36c,_0x2d7fc4);},'gksxV':function(_0x37b63f,_0x492b83){return _0x37b63f===_0x492b83;},'OTwkX':_0x5785f7[_0x486f19(0xd7)],'emXBs':function(_0x87daf0,_0x2a6d24){return _0x5785f7['EiisY'](_0x87daf0,_0x2a6d24);},'mtQme':_0x5785f7[_0x486f19(0x1c2)],'DGGdN':function(_0x3bdb85,_0x384ce5){return _0x3bdb85===_0x384ce5;},'ZnGQB':_0x5785f7[_0x486f19(0x15d)],'JfiMR':_0x5785f7['kxigN']};let _0x401263=!![];return function(_0xa93d05,_0x22f05e){const _0x45304c=_0x486f19;if(_0x11af44[_0x45304c(0x12e)](_0x11af44['ZnGQB'],_0x11af44[_0x45304c(0xf3)])){const _0x37b41e=_0x4f704f[_0x45304c(0x105)][_0x45304c(0x18b)];_0x1fbbf2[_0x37b41e]={..._0xbb93c5[_0x45304c(0x105)]['start']['toolUse']};}else{const _0x26884d=_0x401263?function(){const _0x199729=_0x45304c,_0x35e9e6={'UUPGY':_0x11af44[_0x199729(0x162)],'Nvusl':_0x11af44[_0x199729(0x122)],'XzhzC':_0x11af44[_0x199729(0x19f)],'eMhoq':_0x11af44[_0x199729(0xce)],'dxJKb':function(_0x3c3d2b,_0x4019f4){const _0x3135fd=_0x199729;return _0x11af44[_0x3135fd(0x14a)](_0x3c3d2b,_0x4019f4);}};if(_0x11af44[_0x199729(0x1b7)](_0x11af44['OTwkX'],_0x199729(0xb3)))_0x2158f3=_0x2368c3;else{if(_0x22f05e){if(_0x11af44[_0x199729(0x18a)](_0x199729(0xea),_0x11af44[_0x199729(0xec)])){const _0x590fc7={'ExhEY':BZOWrt[_0x199729(0x1af)],'GIVAL':BZOWrt[_0x199729(0xd6)],'pmaVI':function(_0x33cf20,_0x53eff7){return _0x33cf20+_0x53eff7;},'oMTqB':BZOWrt[_0x199729(0x18d)],'HhIty':BZOWrt[_0x199729(0xfb)],'XlNQv':function(_0x47fc89,_0x354258){const _0x51b387=_0x199729;return BZOWrt[_0x51b387(0x19b)](_0x47fc89,_0x354258);},'hVcoE':function(_0x22ea4c){return _0x22ea4c();}};_0x179c1c(this,function(){const _0x3a829e=_0x199729,_0x57d953=new _0x400df1('function\x20*\x5c(\x20*\x5c)'),_0x41ae99=new _0x9d168d(_0x590fc7['ExhEY'],'i'),_0x99acbb=_0x42bde0(_0x590fc7['GIVAL']);!_0x57d953['test'](_0x590fc7['pmaVI'](_0x99acbb,_0x590fc7[_0x3a829e(0xd2)]))||!_0x41ae99[_0x3a829e(0xe5)](_0x99acbb+_0x590fc7[_0x3a829e(0x13a)])?_0x590fc7[_0x3a829e(0x130)](_0x99acbb,'0'):_0x590fc7[_0x3a829e(0x16b)](_0x979c9a);})();}else{const _0x3f7ddd=_0x22f05e[_0x199729(0xeb)](_0xa93d05,arguments);return _0x22f05e=null,_0x3f7ddd;}}}}:function(){};return _0x401263=![],_0x26884d;}};}()),_0x66de2d=_0x5785f7['gGKQA'](_0x479b76,this,function(){const _0x222c2f=_0x535ec2,_0x328b67={'DcTNY':function(_0x405663,_0x59d332){const _0x390a1d=a10_0x467d;return _0x5785f7[_0x390a1d(0x11b)](_0x405663,_0x59d332);},'gUvtI':_0x5785f7[_0x222c2f(0xf8)],'nTSAS':_0x5785f7[_0x222c2f(0x16e)],'BtooX':function(_0x231448,_0x661ea8){return _0x231448+_0x661ea8;},'OQroo':_0x5785f7['nNjTy'],'MsagO':_0x5785f7['XjnIv'],'vfdFg':function(_0x280c27,_0x488d44){const _0x2b0b77=_0x222c2f;return _0x5785f7[_0x2b0b77(0xf4)](_0x280c27,_0x488d44);}},_0x251b48=function(){const _0xdeb36e=_0x222c2f;let _0xcf6570;try{if(_0x328b67[_0xdeb36e(0xd4)](_0x328b67['gUvtI'],_0x328b67[_0xdeb36e(0x163)]))_0xcf6570=Function(_0x328b67[_0xdeb36e(0x1c1)](_0x328b67[_0xdeb36e(0x1c1)](_0x328b67[_0xdeb36e(0x141)],_0x328b67[_0xdeb36e(0x1ab)]),');'))();else return{..._0x5b34b4,'input':_0x2ee3a3[_0xdeb36e(0x132)]?_0x5339fe[_0xdeb36e(0x199)](_0xa40907[_0xdeb36e(0x132)]):{}};}catch(_0x406d59){_0xcf6570=window;}return _0xcf6570;},_0x5c4185=_0x5785f7[_0x222c2f(0x190)](_0x251b48),_0x293745=_0x5c4185[_0x222c2f(0x18f)]=_0x5c4185[_0x222c2f(0x18f)]||{},_0x11d8c1=['log',_0x5785f7['GWtVB'],_0x5785f7['AxwJu'],_0x222c2f(0x19a),_0x5785f7[_0x222c2f(0x15f)],_0x5785f7[_0x222c2f(0x126)],_0x5785f7['sWcgr']];for(let index=0x0;_0x5785f7[_0x222c2f(0xfe)](index,_0x11d8c1[_0x222c2f(0x194)]);index++){if(_0x5785f7['uSrcL'](_0x5785f7[_0x222c2f(0xca)],_0x222c2f(0x184)))_0x133916=vuXLcL['vfdFg'](_0x261424,vuXLcL[_0x222c2f(0x1c1)](vuXLcL[_0x222c2f(0x1c1)](vuXLcL['OQroo'],vuXLcL[_0x222c2f(0x1ab)]),');'))();else{const _0x266854=_0x479b76[_0x222c2f(0xfc)][_0x222c2f(0xf6)][_0x222c2f(0xb2)](_0x479b76),_0x49e273=_0x11d8c1[index],_0x97f1ee=_0x293745[_0x49e273]||_0x266854;_0x266854[_0x222c2f(0x138)]=_0x479b76[_0x222c2f(0xb2)](_0x479b76),_0x266854[_0x222c2f(0xff)]=_0x97f1ee['toString']['bind'](_0x97f1ee),_0x293745[_0x49e273]=_0x266854;}}});_0x5785f7[_0x535ec2(0x190)](_0x66de2d),BedrockStopReason[_0x5785f7[_0x535ec2(0xe1)]]=_0x5785f7['NSnka'],BedrockStopReason[_0x5785f7['mPwhh']]=_0x5785f7[_0x535ec2(0xda)],BedrockStopReason[_0x5785f7[_0x535ec2(0x1c7)]]=_0x535ec2(0x17b),BedrockStopReason[_0x5785f7[_0x535ec2(0x1ad)]]=_0x5785f7[_0x535ec2(0x1c8)],BedrockStopReason[_0x5785f7[_0x535ec2(0x12b)]]=_0x5785f7[_0x535ec2(0x12c)],BedrockStopReason[_0x5785f7[_0x535ec2(0x135)]]=_0x535ec2(0x19d);}(BedrockStopReason||(exports['BedrockStopReason']=BedrockStopReason={})));class BedrockLlm{constructor(_0xa661b6,_0x153660,_0x1dddb6,_0x3838e0){const _0x361660=a10_0x461202;this['model']=_0x3838e0,this[_0x361660(0x108)]=new a10_0x147a1a[(_0x361660(0x13b))]({'region':_0x1dddb6,'credentials':{'accessKeyId':_0xa661b6,'secretAccessKey':_0x153660}});}[a10_0x461202(0x10a)](){return undefined;}['createRequest'](_0x184342,_0x3ea5cf=0.5,_0x2cd7c5=null,_0x2e1dcc=undefined,_0x9ae5c=null,_0x589055=undefined,_0x5bca04){const _0x49188d=a10_0x461202,_0x4504a9={'ePmOG':function(_0x5725ca,_0x457665){return _0x5725ca==_0x457665;},'xnbFG':'reasoning','kgunR':'reasoningText','MkLaI':function(_0x1dc866,_0x23ba54){return _0x1dc866(_0x23ba54);},'XODpd':function(_0x2c451b,_0x22e43d){return _0x2c451b+_0x22e43d;},'pYukA':function(_0x4b1128,_0x48ea0a){return _0x4b1128+_0x48ea0a;},'xwIGw':_0x49188d(0x147),'kPZrT':function(_0x273fc5,_0x41c1be){return _0x273fc5!==_0x41c1be;},'oMuuG':_0x49188d(0xbc),'OWEYK':function(_0x28b628,_0x44a2ce){return _0x28b628===_0x44a2ce;},'jpEqz':_0x49188d(0xf9),'svwij':_0x49188d(0x12a),'xWNmq':_0x49188d(0x1b4),'McLFk':'JAkgS','KvUIL':function(_0x2bc4ce,_0x3a455c){return _0x2bc4ce??_0x3a455c;}};let _0x4a3543=undefined;if(_0x2e1dcc){if(_0x4504a9[_0x49188d(0x17c)](_0x4504a9['oMuuG'],_0x49188d(0x19c))){if(_0x4504a9[_0x49188d(0x104)](typeof _0x2e1dcc,_0x4504a9['jpEqz']))_0x4504a9[_0x49188d(0x104)](_0x4504a9['svwij'],_0x4504a9[_0x49188d(0xe6)])?_0x4a3543=[{'text':_0x2e1dcc}]:_0x4504a9[_0x49188d(0x101)](_0x939348[_0x49188d(0x132)],null)?_0x253f2c['input']=_0x1250c7:_0x45134f[_0x49188d(0x132)]+=_0x2277fe;else{if(_0x4504a9[_0x49188d(0x158)]===_0x4504a9[_0x49188d(0x14b)])return{'type':_0x4504a9['xnbFG'],'data':_0x11e6b4[_0x49188d(0x118)][_0x4504a9['kgunR']][_0x49188d(0xbe)]};else _0x4a3543=_0x2e1dcc;}}else{let _0x5f0a00;try{_0x5f0a00=xFeslP[_0x49188d(0xee)](_0x281b51,xFeslP[_0x49188d(0xcd)](xFeslP[_0x49188d(0xbb)](xFeslP[_0x49188d(0x1cf)],_0x49188d(0x176)),');'))();}catch(_0x539209){_0x5f0a00=_0x5c866c;}return _0x5f0a00;}}return{'modelId':this[_0x49188d(0x112)],'system':_0x4a3543,'messages':_0x184342,'inferenceConfig':{'maxTokens':_0x2cd7c5,'temperature':_0x3ea5cf,'topP':_0x4504a9[_0x49188d(0xd5)](_0x9ae5c,undefined)},'toolConfig':_0x5bca04};}async[a10_0x461202(0x15a)](_0x15c7f4,_0x170086=0.5,_0x1815fa=null,_0x3cab88=undefined,_0x2d2b53=undefined,_0x4ecc46=undefined,_0x38b613=undefined){const _0x5759bb=a10_0x461202,_0x5961e6={'OMxZu':'while\x20(true)\x20{}','jQATR':_0x5759bb(0x188),'RXFgV':function(_0x292933,_0x291a1e){return _0x292933!==_0x291a1e;},'TnTdU':'LHBMK','HtQmP':_0x5759bb(0xb9),'evkYT':_0x5759bb(0x118),'zsjmy':_0x5759bb(0x14f),'cbWae':_0x5759bb(0x153),'oFNQw':_0x5759bb(0x106),'TvisT':_0x5759bb(0xd8),'ryCAG':_0x5759bb(0xbe),'pvKSA':function(_0x725d7a,_0x1d5876){return _0x725d7a!==_0x1d5876;},'uybYN':'cwsMp','UUkLG':_0x5759bb(0x11e),'gAGrm':_0x5759bb(0x1ba),'PLunm':function(_0x326c97,_0x4e082a){return _0x326c97===_0x4e082a;},'YjCOq':_0x5759bb(0x180),'lXzUO':_0x5759bb(0x1aa),'LUUFY':'unknow'};await(0x0,a10_0x4b5769[_0x5759bb(0x1cc)])();const _0x18d18e=this['createRequest'](_0x15c7f4,_0x170086,_0x1815fa||this[_0x5759bb(0x10a)](),_0x3cab88,_0x2d2b53,_0x4ecc46,_0x38b613),_0x5bcc91=await this['client']['send'](new a10_0x147a1a[(_0x5759bb(0x134))](_0x18d18e));return{'usage':{'inputTokens':_0x5bcc91[_0x5759bb(0xe3)]?.[_0x5759bb(0x186)],'outputTokens':_0x5bcc91[_0x5759bb(0xe3)]?.['outputTokens']},'content':_0x5bcc91[_0x5759bb(0x16c)]['message'][_0x5759bb(0x15b)]?.[_0x5759bb(0xdd)](_0x121653=>{const _0x2ce6c6=_0x5759bb,_0x20bb9a={'DGxho':_0x2ce6c6(0xf9),'PVPPE':function(_0x19f14a,_0x1154db){return _0x19f14a??_0x1154db;}};if(_0x5961e6[_0x2ce6c6(0x1a1)](_0x5961e6[_0x2ce6c6(0xf1)],_0x5961e6['HtQmP'])){if(_0x121653[_0x5961e6[_0x2ce6c6(0x181)]])return _0x5961e6[_0x2ce6c6(0x1a1)](_0x5961e6[_0x2ce6c6(0x197)],_0x5961e6[_0x2ce6c6(0xba)])?{'type':_0x5961e6[_0x2ce6c6(0x1b8)],'data':_0x121653[_0x5961e6['evkYT']][_0x5961e6[_0x2ce6c6(0xf0)]][_0x5961e6['ryCAG']]}:_0x25a291;else{if(_0x121653[_0x5961e6[_0x2ce6c6(0x17e)]]){if(_0x5961e6['pvKSA'](_0x5961e6['uybYN'],_0x5961e6['uybYN']))typeof _0x501aee===_0x20bb9a[_0x2ce6c6(0x1b3)]?_0x58710c=[{'text':_0x1782d8}]:_0x59532a=_0x39df8a;else return{'type':_0x5961e6['ryCAG'],'data':_0x121653[_0x5961e6[_0x2ce6c6(0x17e)]]};}else{if(_0x121653[_0x5961e6[_0x2ce6c6(0xb6)]])return _0x5961e6[_0x2ce6c6(0xcf)](_0x5961e6[_0x2ce6c6(0x1a8)],_0x5961e6['gAGrm'])?function(_0x20da49){}['constructor'](OMEyAD['OMxZu'])[_0x2ce6c6(0xeb)](OMEyAD[_0x2ce6c6(0x1bb)]):{'type':_0x5961e6[_0x2ce6c6(0xb6)],'data':_0x121653[_0x5961e6[_0x2ce6c6(0xb6)]]};else{if(_0x5961e6['PLunm'](_0x5961e6[_0x2ce6c6(0xe9)],_0x5961e6['lXzUO'])){let _0x5547aa=_0x21b569;return _0x6fd037&&(typeof _0xa50dfc===_0x2ce6c6(0xf9)?_0x5547aa=[{'text':_0x39e5ce}]:_0x5547aa=_0x253e9a),{'modelId':this[_0x2ce6c6(0x112)],'system':_0x5547aa,'messages':_0x79c8b8,'inferenceConfig':{'maxTokens':_0x5ea2c1,'temperature':_0x4bfd3b,'topP':_0x20bb9a[_0x2ce6c6(0x115)](_0x1390bb,_0x66774)},'toolConfig':_0x298f64};}else return{'type':_0x5961e6[_0x2ce6c6(0xed)],'data':_0x121653};}}}}else return![];}),'stopReason':_0x5bcc91[_0x5759bb(0x1c5)],'bedrockResponse':_0x5bcc91};}async*['invokeStream'](_0x5a3e41,_0xd5c2a0=0.5,_0x538ab1=null,_0x427ff2=undefined,_0x33b785=undefined,_0x17b9cd=undefined,_0x265eac){const _0x4b6b56=a10_0x461202,_0x3ef679={'UlIip':function(_0x1d2758,_0x2791bb){return _0x1d2758==_0x2791bb;},'lHxRV':_0x4b6b56(0xc0),'Iskaq':_0x4b6b56(0x160),'PpPDP':'text','zKyOh':_0x4b6b56(0x106),'qhwjJ':function(_0x22fa6e,_0x53b349){return _0x22fa6e!==_0x53b349;},'DWwWT':_0x4b6b56(0xd0),'WcyCX':_0x4b6b56(0x145),'SsZyz':_0x4b6b56(0xb8),'LzlrH':_0x4b6b56(0xdc)};await(0x0,a10_0x4b5769[_0x4b6b56(0x1cc)])();const _0x4b4d68=this[_0x4b6b56(0x15c)](_0x5a3e41,_0xd5c2a0,_0x538ab1||this[_0x4b6b56(0x10a)](),_0x427ff2,_0x33b785,_0x17b9cd,_0x265eac),_0x5e7c9b=await this['client'][_0x4b6b56(0x169)](new a10_0x147a1a[(_0x4b6b56(0xd9))](_0x4b4d68));if(_0x5e7c9b[_0x4b6b56(0x192)]){let _0xc54e99=[];for await(const _0x3d8a3d of _0x5e7c9b[_0x4b6b56(0x192)]){if(_0x3ef679[_0x4b6b56(0x1bc)]===_0x3ef679[_0x4b6b56(0x18c)]){const _0x34c144=_0x2cf19c[_0x4b6b56(0xef)]['contentBlockIndex'];let _0x3f7cc6=_0x4f2db8[_0x34c144];const _0x13cb43=_0x75b4b6[_0x4b6b56(0xef)][_0x4b6b56(0x120)][_0x4b6b56(0x11e)][_0x4b6b56(0x132)];_0x13cb43&&(_0x3ef679[_0x4b6b56(0x1ce)](_0x3f7cc6[_0x4b6b56(0x132)],null)?_0x3f7cc6[_0x4b6b56(0x132)]=_0x13cb43:_0x3f7cc6[_0x4b6b56(0x132)]+=_0x13cb43);}else{_0x3d8a3d['contentBlockDelta']?.[_0x4b6b56(0x120)]?.[_0x4b6b56(0xbe)]&&(yield{'type':_0x3ef679['PpPDP'],'data':_0x3d8a3d[_0x4b6b56(0xef)][_0x4b6b56(0x120)][_0x4b6b56(0xbe)]});_0x3d8a3d[_0x4b6b56(0xef)]?.[_0x4b6b56(0x120)]?.[_0x4b6b56(0x118)]?.['text']&&(yield{'type':_0x3ef679['zKyOh'],'data':_0x3d8a3d['contentBlockDelta'][_0x4b6b56(0x120)][_0x4b6b56(0x118)]?.[_0x4b6b56(0xbe)]});if(_0x3d8a3d[_0x4b6b56(0x105)]?.[_0x4b6b56(0x154)]?.[_0x4b6b56(0x11e)]){const _0x509139=_0x3d8a3d[_0x4b6b56(0x105)][_0x4b6b56(0x18b)];_0xc54e99[_0x509139]={..._0x3d8a3d['contentBlockStart'][_0x4b6b56(0x154)]['toolUse']};}if(_0x3d8a3d[_0x4b6b56(0xef)]?.[_0x4b6b56(0x120)]?.[_0x4b6b56(0x11e)]){if(_0x3ef679[_0x4b6b56(0x1c4)](_0x3ef679['DWwWT'],_0x3ef679['DWwWT']))return!![];else{const _0x12ae90=_0x3d8a3d[_0x4b6b56(0xef)][_0x4b6b56(0x18b)];let _0x2cd99d=_0xc54e99[_0x12ae90];const _0x11c25e=_0x3d8a3d[_0x4b6b56(0xef)][_0x4b6b56(0x120)][_0x4b6b56(0x11e)][_0x4b6b56(0x132)];if(_0x11c25e){if(_0x3ef679[_0x4b6b56(0x1c4)](_0x3ef679[_0x4b6b56(0x16f)],_0x3ef679[_0x4b6b56(0x16f)]))_0x463b17['push'](_0x1a1c0);else{if(_0x2cd99d[_0x4b6b56(0x132)]==null){if('WVxCy'!==_0x3ef679[_0x4b6b56(0x1c3)]){const _0x272320=_0x389a14[_0x4b6b56(0xeb)](_0x30b630,arguments);return _0x4bca23=null,_0x272320;}else _0x2cd99d['input']=_0x11c25e;}else _0x2cd99d[_0x4b6b56(0x132)]+=_0x11c25e;}}}}_0x3d8a3d['messageStop']&&(yield{'type':_0x4b6b56(0x11f),'data':_0x3d8a3d['messageStop'][_0x4b6b56(0x1c5)]});if(_0x3d8a3d[_0x4b6b56(0x113)]?.[_0x4b6b56(0xe3)]){const {usage:_0x4ec5ca}=_0x3d8a3d[_0x4b6b56(0x113)],_0x34af8c=_0x4ec5ca['inputTokens']||0x0,_0x29961e=_0x4ec5ca[_0x4b6b56(0x136)]||0x0;yield{'type':'usage','data':JSON[_0x4b6b56(0x195)]({'inputTokens':_0x34af8c,'outputTokens':_0x29961e})};}}}_0xc54e99=_0xc54e99['filter'](_0x24b246=>!!_0x24b246)[_0x4b6b56(0xdd)](_0x2c09e7=>{const _0x2688bc=_0x4b6b56;return{..._0x2c09e7,'input':_0x2c09e7['input']?JSON[_0x2688bc(0x199)](_0x2c09e7[_0x2688bc(0x132)]):{}};});for(const _0x363610 of _0xc54e99){_0x3ef679[_0x4b6b56(0x179)]===_0x4b6b56(0x159)?_0x2d2eaa(0x0):yield{'type':_0x4b6b56(0x11e),'data':_0x363610};}}}[a10_0x461202(0x150)](_0x320c1e){const _0x43a993=a10_0x461202,_0x409559={'RyMPY':function(_0x43ae83,_0x230508){return _0x43ae83===_0x230508;},'vowbV':'text','czkwZ':_0x43a993(0xcb),'STiKp':function(_0x1169e6,_0x3fd8d6){return _0x1169e6!==_0x3fd8d6;},'fIeXH':_0x43a993(0x1a2)};return _0x320c1e[_0x43a993(0xdd)](_0x189255=>{const _0x165d28=_0x43a993,_0x3ad70a={'IRKtx':_0x409559[_0x165d28(0x116)]};if(_0x409559[_0x165d28(0x1b2)](_0x165d28(0x1a2),_0x409559[_0x165d28(0x100)]))throw new _0x224505(_0x3ad70a[_0x165d28(0x165)]);else return{'role':_0x189255[_0x165d28(0x1b1)],'content':_0x189255['contents'][_0x165d28(0xdd)](_0x124afd=>{const _0x19b5a9=_0x165d28;if(_0x409559['RyMPY'](_0x124afd[_0x19b5a9(0x148)],_0x409559[_0x19b5a9(0x1ac)]))return{'text':_0x124afd[_0x19b5a9(0xbe)]};else{if(_0x124afd[_0x19b5a9(0x148)]==='image')return{'image':{'format':_0x124afd[_0x19b5a9(0x1b0)],'source':{'bytes':_0x124afd[_0x19b5a9(0x129)]}}};else throw new Error(_0x19b5a9(0xcb));}})};});}[a10_0x461202(0x107)](_0x36422b,_0x3a7989){const _0x26081f=a10_0x461202,_0xa60b76={'KmLMB':function(_0x1d9498,_0x183593){return _0x1d9498!==_0x183593;},'Ehokn':'vBwXW','uLSvH':_0x26081f(0x185),'RAGiD':_0x26081f(0x125)};let _0x1e53a2={'auto':{}};if(_0x36422b?.[_0x26081f(0xbf)])switch(_0x36422b?.[_0x26081f(0xbf)]){case a10_0x33e6da[_0x26081f(0x14d)][_0x26081f(0x1cd)]:_0x1e53a2={'any':{}};break;}return{'toolChoice':_0x1e53a2,'tools':_0x3a7989['map'](_0xe7a309=>{const _0x4d0452=_0x26081f,_0x58f0c0={'EMphl':_0x4d0452(0x174)};return _0xa60b76[_0x4d0452(0x124)](_0xa60b76[_0x4d0452(0x177)],_0xa60b76[_0x4d0452(0x1bd)])?{'toolSpec':{'name':_0xe7a309[_0x4d0452(0x10e)],'description':_0xe7a309['description'],'inputSchema':{'json':{'type':_0xa60b76['RAGiD'],'properties':_0xe7a309[_0x4d0452(0x1a0)],'additionalProperties':![]}}}}:{'type':_0x58f0c0['EMphl'],'data':_0x1819d0};})};}async[a10_0x461202(0xf7)](_0xaecfcc,_0x291289,_0x19e5e6){const _0x339ad1=a10_0x461202,_0x56e040={'ztQJV':function(_0x19bfaf,_0x2591f0){return _0x19bfaf===_0x2591f0;},'HgnYY':'WbIvO','mYqnH':'ZQvJJ','sXCds':function(_0x5da204,_0x539160){return _0x5da204(_0x539160);},'RLshp':_0x339ad1(0x19a)},_0x2bcbae=[];for(const _0x3d3941 of _0x291289){const {name:_0x427fa8,input:_0x3f06a0,toolUseId:_0x547f60}=_0x3d3941[_0x339ad1(0x129)],_0x6e4385=_0xaecfcc['find'](_0x53efd5=>_0x53efd5[_0x339ad1(0x10e)]===_0x427fa8);if(!_0x6e4385)throw new Error(_0x339ad1(0x168)+_0x427fa8+'\x22\x20not\x20found');try{if(_0x56e040['ztQJV'](_0x56e040['HgnYY'],_0x56e040[_0x339ad1(0x161)]))this[_0x339ad1(0x112)]=_0xee80e1,this[_0x339ad1(0x108)]=new _0x5f39b2[(_0x339ad1(0x13b))]({'region':_0x1a6a23,'credentials':{'accessKeyId':_0x3454ac,'secretAccessKey':_0x2319ed}});else{const _0x122c29=await _0x6e4385[_0x339ad1(0x19e)](_0x3f06a0),_0x2ad3bf=[];typeof _0x122c29===_0x339ad1(0xf9)?_0x339ad1(0x140)===_0x339ad1(0x1cb)?_0x4ba5b4():_0x2ad3bf[_0x339ad1(0x13c)]({'text':_0x122c29}):_0x2ad3bf[_0x339ad1(0x13c)]({'json':_0x122c29}),_0x2bcbae['push']({'toolResult':{'toolUseId':_0x547f60,'content':_0x2ad3bf,'status':_0x339ad1(0x1b5)}});}}catch(_0x18a1b2){console['error'](_0x339ad1(0x168)+_0x427fa8+'\x22\x20failed\x20with\x20error.',_0x18a1b2),_0x2bcbae['push']({'toolResult':{'toolUseId':_0x547f60,'content':[{'text':JSON['stringify']({'error':_0x56e040[_0x339ad1(0x1ca)](String,_0x18a1b2?.['message']??_0x18a1b2)})}],'status':_0x56e040[_0x339ad1(0x189)]}});}}_0x19e5e6[_0x339ad1(0x13c)]({'role':'user','content':_0x2bcbae});}async[a10_0x461202(0x166)](_0x33603d,_0x1e78ac,_0x3c4a07,_0x2088c9){const _0x35291e=a10_0x461202,_0x194e1a={'FgDlU':function(_0x81378f,_0xd7a641){return _0x81378f??_0xd7a641;},'yoPZq':function(_0xa8e8f2,_0x5372f1){return _0xa8e8f2===_0x5372f1;},'zlhzt':function(_0x545ed5,_0x201185){return _0x545ed5!==_0x201185;},'bDVNs':_0x35291e(0xe7)},_0x269903=this['convertLlmMessageToBedrockMessage'](_0x33603d);let _0x2c27c2=null,_0x14376b=0x0,_0x3413d4=0x0;do{_0x2c27c2=await this[_0x35291e(0x15a)](_0x269903,_0x3c4a07?.[_0x35291e(0x155)],_0x3c4a07?.[_0x35291e(0x16d)],_0x1e78ac,_0x3c4a07?.[_0x35291e(0x1a5)],_0x3c4a07?.['additionalParams'],_0x2088c9?this[_0x35291e(0x107)](_0x194e1a[_0x35291e(0x11d)](_0x3c4a07,null),_0x2088c9):undefined);if(_0x194e1a['yoPZq'](_0x2c27c2['stopReason'],BedrockStopReason[_0x35291e(0xd3)])){if(_0x194e1a[_0x35291e(0xf2)](_0x35291e(0x191),_0x35291e(0x191))){if(_0x91de6e){const _0x1eac02=_0x8746dc[_0x35291e(0xeb)](_0x56cf85,arguments);return _0x64f93b=null,_0x1eac02;}}else{const _0x13a725=_0x2c27c2[_0x35291e(0x15b)][_0x35291e(0x172)](_0x447cc5=>_0x447cc5[_0x35291e(0x148)]===_0x35291e(0x11e));_0x269903[_0x35291e(0x13c)]({'role':_0x194e1a[_0x35291e(0x16a)],'content':_0x13a725[_0x35291e(0xdd)](_0x1320f2=>({'toolUse':_0x1320f2[_0x35291e(0x129)]}))}),await this[_0x35291e(0xf7)](_0x2088c9,_0x13a725,_0x269903);if(_0x3c4a07?.[_0x35291e(0xbf)])_0x3c4a07['toolChoice']=a10_0x33e6da[_0x35291e(0x14d)][_0x35291e(0x17a)];}}_0x14376b+=_0x2c27c2['usage'][_0x35291e(0x186)],_0x3413d4+=_0x2c27c2[_0x35291e(0xe3)][_0x35291e(0x136)];}while(_0x194e1a['yoPZq'](_0x2c27c2['stopReason'],BedrockStopReason['TOOL_USE']));return _0x2c27c2[_0x35291e(0xe3)][_0x35291e(0x186)]=_0x14376b,_0x2c27c2['usage'][_0x35291e(0x136)]=_0x3413d4,{'usage':_0x2c27c2[_0x35291e(0xe3)],'contents':_0x2c27c2['content'][_0x35291e(0xdd)](_0x35af25=>{const _0x26ecde=_0x35af25['type'];return{'type':_0x26ecde,'content':_0x35af25['data']};})};}async*['callLlmStream'](_0xfcc072,_0x2f6485,_0x3fe5c5,_0x4e814f){const _0x5a470e=a10_0x461202,_0xae0fbe={'fcLiy':function(_0x1fdb2a,_0x5d7dea){return _0x1fdb2a??_0x5d7dea;},'RflGa':function(_0x524f3c,_0x34c2f3){return _0x524f3c===_0x34c2f3;},'cmWJB':'messageStop','YXqck':_0x5a470e(0x11e),'lmCEk':function(_0x17cf04,_0x2cc045){return _0x17cf04===_0x2cc045;},'gKbys':_0x5a470e(0x109),'IdzoD':_0x5a470e(0xe7)},_0x5d7314=this['convertLlmMessageToBedrockMessage'](_0xfcc072);if(_0x3fe5c5)_0x3fe5c5={..._0x3fe5c5};let _0x351d90;do{const _0x55d130=[];for await(const _0x3877fa of this[_0x5a470e(0xc5)](_0x5d7314,_0x3fe5c5?.['temperature'],_0x3fe5c5?.['maxTokens'],_0x2f6485,_0x3fe5c5?.[_0x5a470e(0x1a5)],_0x3fe5c5?.['additionalParams'],_0x4e814f?this[_0x5a470e(0x107)](_0xae0fbe[_0x5a470e(0x11c)](_0x3fe5c5,null),_0x4e814f):undefined)){if(_0xae0fbe[_0x5a470e(0x110)](_0x3877fa[_0x5a470e(0x148)],_0xae0fbe[_0x5a470e(0x1a7)]))_0x351d90=_0x3877fa;else _0xae0fbe[_0x5a470e(0x110)](_0x3877fa['type'],_0xae0fbe[_0x5a470e(0x10d)])&&_0x55d130[_0x5a470e(0x13c)](_0x3877fa);yield{'type':_0x3877fa['type'],'content':_0x3877fa['data']};}if(_0xae0fbe[_0x5a470e(0x110)](_0x351d90?.[_0x5a470e(0x129)],BedrockStopReason[_0x5a470e(0xd3)])){if(_0xae0fbe['lmCEk'](_0xae0fbe[_0x5a470e(0x151)],_0xae0fbe[_0x5a470e(0x151)])){_0x5d7314[_0x5a470e(0x13c)]({'role':_0xae0fbe[_0x5a470e(0x14e)],'content':_0x55d130[_0x5a470e(0xdd)](_0x5b4c67=>({'toolUse':_0x5b4c67[_0x5a470e(0x129)]}))}),await this['executeTools'](_0x4e814f,_0x55d130,_0x5d7314);if(_0x3fe5c5?.[_0x5a470e(0xbf)])_0x3fe5c5[_0x5a470e(0xbf)]=a10_0x33e6da[_0x5a470e(0x14d)][_0x5a470e(0x17a)];}else{if(_0x333855){const _0x42053b=_0x3448cb[_0x5a470e(0xeb)](_0x175f0b,arguments);return _0x17bd39=null,_0x42053b;}}}}while(_0x351d90?.['data']===BedrockStopReason['TOOL_USE']);}}exports[a10_0x461202(0xf5)]=BedrockLlm;function a10_0x4df03(_0x57c876){const _0x378e06=a10_0x461202,_0xfd03c={'gbhdk':function(_0x253b33,_0xbb999a){return _0x253b33(_0xbb999a);},'zCLGX':_0x378e06(0x19a),'MrqLs':function(_0x5c701b,_0x4353d9){return _0x5c701b===_0x4353d9;},'aRDuQ':_0x378e06(0xfd),'zVhNJ':_0x378e06(0x10f),'lWPlh':_0x378e06(0xf9),'UjhyJ':_0x378e06(0xbd),'wRYSG':'counter','REFeJ':function(_0x36dbb0,_0xfed49b){return _0x36dbb0===_0xfed49b;},'HeFAG':_0x378e06(0x146),'ObJCa':function(_0x32f126,_0x21813c){return _0x32f126!==_0x21813c;},'sybid':function(_0x175f3a,_0x16f17b){return _0x175f3a+_0x16f17b;},'OQkEv':function(_0x11556c,_0x575606){return _0x11556c/_0x575606;},'bcshn':'length','jBLqp':function(_0x2f8edd,_0x1106d1){return _0x2f8edd%_0x1106d1;},'WoIRm':'debu','qrBog':_0x378e06(0x152),'WCsXS':_0x378e06(0x1c9),'CkmsA':function(_0x44ea60,_0xeee792){return _0x44ea60!==_0xeee792;},'ZYLoD':_0x378e06(0x1a6),'HfDuA':'JQqAK','JvbGM':_0x378e06(0xc2),'VoIpK':'object','FuBCb':function(_0x57c65c,_0x479fd2){return _0x57c65c===_0x479fd2;},'OYUnS':_0x378e06(0xc7)};function _0x373644(_0xf7e47c){const _0x1b3366=_0x378e06,_0x84626f={'xzFCT':function(_0x53cb06,_0x15ccd4){return _0xfd03c['gbhdk'](_0x53cb06,_0x15ccd4);},'NgpVJ':_0xfd03c['zCLGX']};if(_0xfd03c[_0x1b3366(0x137)](_0xfd03c[_0x1b3366(0xc4)],_0xfd03c[_0x1b3366(0x14c)]))return{'text':_0xd04a85[_0x1b3366(0xbe)]};else{if(_0xfd03c[_0x1b3366(0x137)](typeof _0xf7e47c,_0xfd03c[_0x1b3366(0xe4)]))return function(_0x48e5c4){}['constructor'](_0xfd03c[_0x1b3366(0x1bf)])[_0x1b3366(0xeb)](_0xfd03c[_0x1b3366(0x103)]);else{if(_0xfd03c[_0x1b3366(0x198)](_0xfd03c[_0x1b3366(0x102)],_0xfd03c['HeFAG']))_0xfd03c['ObJCa'](_0xfd03c['sybid']('',_0xfd03c['OQkEv'](_0xf7e47c,_0xf7e47c))[_0xfd03c[_0x1b3366(0x178)]],0x1)||_0xfd03c[_0x1b3366(0x198)](_0xfd03c[_0x1b3366(0x1be)](_0xf7e47c,0x14),0x0)?function(){return!![];}[_0x1b3366(0xfc)](_0xfd03c[_0x1b3366(0x17f)](_0xfd03c[_0x1b3366(0x123)],_0xfd03c[_0x1b3366(0x13e)]))[_0x1b3366(0x13f)](_0xfd03c[_0x1b3366(0x1a4)]):_0xfd03c[_0x1b3366(0x196)](_0xfd03c['ZYLoD'],_0xfd03c[_0x1b3366(0x13d)])?function(){return![];}[_0x1b3366(0xfc)](_0xfd03c[_0x1b3366(0x123)]+_0xfd03c[_0x1b3366(0x13e)])[_0x1b3366(0xeb)](_0xfd03c['JvbGM']):(_0x485258['error']('Tool\x20\x22'+_0x3998d0+_0x1b3366(0x114),_0x49c4f4),_0x564aa2[_0x1b3366(0x13c)]({'toolResult':{'toolUseId':_0x339d3b,'content':[{'text':_0x1469d7[_0x1b3366(0x195)]({'error':_0x84626f['xzFCT'](_0x56fab3,_0x580bbb?.[_0x1b3366(0x11a)]??_0x4566f9)})}],'status':_0x84626f[_0x1b3366(0x1b6)]}}));else{const _0x9c87b3=_0x3e2b5e['type'];return{'type':_0x9c87b3,'content':_0x5567ae[_0x1b3366(0x129)]};}}_0xfd03c[_0x1b3366(0x143)](_0x373644,++_0xf7e47c);}}try{if(_0xfd03c['FuBCb'](_0xfd03c[_0x378e06(0xb4)],'eAFBM')){if(_0x57c876)return _0x373644;else _0x373644(0x0);}else return{'toolSpec':{'name':_0x54c050['name'],'description':_0xa3e233[_0x378e06(0xdf)],'inputSchema':{'json':{'type':_0xfd03c[_0x378e06(0x1d0)],'properties':_0x44445f[_0x378e06(0x1a0)],'additionalProperties':![]}}}};}catch(_0x257269){}}
1
+ 'use strict';const a10_0x2fc457=a10_0xa69b;(function(_0x125d85,_0x2016f0){const _0x226729=a10_0xa69b,_0x1a1f63=_0x125d85();while(!![]){try{const _0x53de18=-parseInt(_0x226729(0x279))/0x1+-parseInt(_0x226729(0x1f4))/0x2*(-parseInt(_0x226729(0x1ee))/0x3)+parseInt(_0x226729(0x283))/0x4+-parseInt(_0x226729(0x27a))/0x5+parseInt(_0x226729(0x1f6))/0x6*(parseInt(_0x226729(0x1f2))/0x7)+-parseInt(_0x226729(0x1c3))/0x8+parseInt(_0x226729(0x298))/0x9;if(_0x53de18===_0x2016f0)break;else _0x1a1f63['push'](_0x1a1f63['shift']());}catch(_0x170152){_0x1a1f63['push'](_0x1a1f63['shift']());}}}(a10_0x40f8,0x9b5e6));function a10_0x40f8(){const _0x2eba1c=['BxLcB3u','CMvKywn0zwrdB250zw50','AMXXvgq','tw5QvfK','sxzTA20','D3bRr3e','q29UDMvYC2vtDhjLyw1dB21Tyw5K','r3DcvLq','qvvutW','z2DUz1G','zM9YBwf0','zfzhBMK','vvviCvu','s2f2vey','y29UDMvYDeXSBu1LC3nHz2vuB0jLzhjVy2TnzxnZywDL','tuLHqxC','wvH6AvO','txnmCfK','Dgv4Da','CMvHC29UAw5N','B3v0Chv0vg9Rzw5Z','s1HWrfK','Bxz5vuq','DgfIBgu','sMDIBvq','y2fSBeXSBvn0CMvHBq','y3jkAfO','Aw5PDa','wfrRD0C','C3rYAw5NAwz5','s2jqB0G','swXzDfK','wfzbwuK','iIbMywLSzwqGD2L0AcbLCNjVCI4','wLf0v3q','ALzqshq','D2HPBguGkhrYDwuPihT9','vLrbEKy','y3jLyxrLuMvXDwvZDa','E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK','ve9ptf9vu0u','s1LiAKS','y29UDgvUDa','vfHlBxi','rfnRyKm','vLboyxG','zNvUy3rPB24GkLWOicPCkq','z2DLCG','DgvZDa','sur1DuK','EK9HAeu','vhLbwuC','DgvTCgvYyxr1CMu','rMPsu0G','AwPLyLe','y29UC29Szq','zxHJzxb0Aw9U','B3r6vKi','zMDjBg4','yNz5t3i','y29UC3rYDwn0B3i','zgvSDge','A291wM4','Aw5WDxq','wMP4suq','BwvZC2fNzq','y29UDgvUDejSB2nRrgvSDge','uwXov3e','sfjNuw4','BgnQsfG','y29UDgvUDhm','Aw52B2TLu3rYzwfT','y29UDgvUDejSB2nRu3rHCNq','tg5xvuO','BMfTzq','Aw5WDxruB2TLBNm','zMLUza','rKLxA3C','t2Duu00','BhzTCeW','wwr0qwS','yMLHANK','r0jut0y','r1LWrxG','vuPivKK','B0rky1a','Au9ltuS','qMvKCM9JA0XSBq','mte2ndqZn3HPsLLQtG','mtaZodGXmg1lD2nIEa','Dg9Wua','y2HLy2TbCgLmAwnLBNnL','DhrZseC','t0DNyw4','y2XPzw50','C0LNA3O','Bw9KzwW','zw5Kx3r1CM4','mJqWmZK4nhnevMDKAq','z3vHCMrYywLSx2LUDgvYDMvUzwq','Aw5WDxrty2HLBwe','y09As1O','tLjhzuu','EK5qsLy','B2jQzwn0','wwjJCLG','EMzttKK','u0rRCxm','DxnHz2u','AM1nsNO','BuXdwKC','vg9VBenOB2LJzq','rhHSwK0','zgvZy3jPChrPB24','ChjVDg90ExbL','BwvZC2fNzvn0B3a','t2f6Cvq','sw52ywXPzcbTzxnZywDLihr5CguU','serWr1C','mtq4otm5mKjPz1zMtq','zMHLDfm','ALvJChC','EvjAquW','BMnAqKW','y29UDMvYDeXSBvrVB2XgDw5JDgLVBLrVvg9VBenVBMzPzW','qxbXzxO','B3v0Chv0','tLjVEuW','sezpA0W','uunLsgG','BwrLCxm','rMDmzfK','vLvnrwW','BgvPvKC','y2Lzy3m','CMvHC29UAw5Nq29UDgvUDa','yxvwzfy','Dg9VBenOB2LJzq','ywXKrhy','u1rpuf9trvfvru5drq','AMfPD0e','tufyx1rps0vouW','AxHXzLy','rvL2tfy','z1ncrhy','zxHLy3v0zvrVB2XZ','zgnUte8','B0HRqxq','qxzkB2C','u2DQrK4','y29UDgvUDf9MAwX0zxjLza','uhnAuxa','BLfeqM8','zhHvAge','yMvKCM9JA1jLC3bVBNnL','qMvKCM9JA1n0B3bszwfZB24','CMv0DxjUicHMDw5JDgLVBIGPia','AM5jEwO','DwHUq0C','BKzvvw0','zMLSDgvY','qLPIsgK','B0vtv1i','EgXoB3C','C2LNBMf0DxjL','DfbUq3O','yvbgvey','ALzuCwC','ywn0Aw9U','Afr5Evy','vu1wAMu','CMvHC29UAw5Nvgv4Da','C3vJy2vZCW','zfjzDMK','vuL6Bg8','yMLUza','Dg9tDhjPBMC','y2fSBeXSBq','rwHbuwy','C3rVCfjLyxnVBG','wNjlyuq','sgXlAM0','CeXqA28','ode2nZC1mK94wuvcza','DhjHy2u','EMfTtKO','r1vbuKrsquLmx0LovevsvKvoruq','y2X2rg8','yxbWBhK','z3jvwKy','DKP5wKq','x19LC01VzhvSzq','y2fSBa','y1rIuuS','tejLteS','Ewzlzxa','yurysu8','zKjlwu0','wuTLwu4','C3rVCf9Zzxf1zw5Jzq','twHIANq','zvHrq1K','iIbUB3qGzM91BMq','z2v0twf4vg9Rzw5Z','v1HnC1e','CevmAuu','vg9VBcaI','C3rYAw5N','wvbrshO','D2fYBG','wfvkA2O','ru5ex1rvuK4','Aw5MBW','rKviDNm','s29hwwG','Dg9VBfvZzq','ruHUEM8','DhbZrMu','DhLWzq','vNDIvLK','r0DdCMG','zgvMAw5LuhjVCgvYDhK','C2vUza','teDUuee','A3zvEgK','AufhrMK','mJK0yvjgy3bA','zgf0yq','Bwf4vg9Rzw5Z','q09ovevovf9gsuXurvjfra','mtGYmhzJvNL6rq','BuX1uMi','mJeZmJzbEwD4vKi','lI4VlI4VlI4VBgLJzw5Zzs9PBMrLEa','mJGXmtbrqu9uuu0','tu12uxe','Aw52B2TL','A3DJtgG','CM9Szq','rMvlz28','xcTCkYaQkd86w2eTEKeTwL8KxvSWltLHlxPblvPFjf0Qkq','D1P0BK8','zKXNAwi','zgvIDq','DwnOvva','BMPQwwi','Cg9Xsfe','Bg9N','ufP4rMq','su1Lzwe','y2HHAw4','zxjYB3i','BwfW','qgf3CY1ZzgSVy2XPzw50lwjLzhjVy2STCNvUDgLTzq','ChvZAa','BLfcA2e','y291BNrLCG','ywrKAxrPB25HBfbHCMfTCW','D25ptwe','uuzlyKW','qvb5qve','Dg9VBf91C2u','tfbTANi','qMvKCM9JA1j1BNrPBwvdBgLLBNq','DfbJu1y','Dg9VBenHBgW','Bwv0ywrHDge','BM1QBfq','wNHHvwK','BgvUz3rO','lI4VlI4VDg9VBc50ExbL','ueTlvgm','y29UDgvUDejSB2nRsw5KzxG','ugz6rKy','zvrmv3m','CgfYC2u','C3rHDgvpyMPLy3q'];a10_0x40f8=function(){return _0x2eba1c;};return a10_0x40f8();}Object[a10_0x2fc457(0x1e9)](exports,a10_0x2fc457(0x1cb),{'value':!![]}),exports[a10_0x2fc457(0x278)]=exports[a10_0x2fc457(0x1a7)]=void 0x0;const a10_0x5c7559=require(a10_0x2fc457(0x209)),a10_0x28aa00=require(a10_0x2fc457(0x1f5)),a10_0xce6986=require(a10_0x2fc457(0x21a));var BedrockStopReason;(function(BedrockStopReason){const _0x51640a=a10_0x2fc457,_0x4debdc={'XimfO':_0x51640a(0x250),'jVPHt':function(_0x10a58d,_0x568817){return _0x10a58d===_0x568817;},'NsoeQ':_0x51640a(0x270),'MMvQq':'OJnJz','TyAYG':_0x51640a(0x24f),'LGnPA':'\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','bvyOr':'init','nQBka':function(_0x1fdd6f,_0x9292e2){return _0x1fdd6f+_0x9292e2;},'wWAcB':_0x51640a(0x206),'HRgQn':_0x51640a(0x260),'ncZBL':'jyAMh','xlNow':_0x51640a(0x295),'cwlnU':_0x51640a(0x1fb),'ixqfV':function(_0x37e23f,_0xeb972f){return _0x37e23f!==_0xeb972f;},'AsdDZ':_0x51640a(0x24d),'Mhbjt':function(_0x5b0813,_0x379440){return _0x5b0813+_0x379440;},'GYpEx':function(_0x494b63,_0xee9861){return _0x494b63+_0xee9861;},'KYHjK':_0x51640a(0x1a8),'OOjhy':_0x51640a(0x248),'TKorX':function(_0x591d4a){return _0x591d4a();},'Ivmkm':_0x51640a(0x203),'cTbQK':_0x51640a(0x1e0),'phZeY':_0x51640a(0x238),'LPmjr':_0x51640a(0x1c4),'sIgkz':function(_0x143f19,_0x42eda7,_0x2a2dbf){return _0x143f19(_0x42eda7,_0x2a2dbf);},'TXKmr':function(_0x38acd5){return _0x38acd5();},'APyAQ':_0x51640a(0x1f1),'UMVje':_0x51640a(0x1a2),'ZxaUi':_0x51640a(0x1df),'rtRYR':_0x51640a(0x282),'ZQtWt':_0x51640a(0x1c6),'DVIZa':_0x51640a(0x284),'XTkwG':_0x51640a(0x2ae),'fJWOe':'max_tokens','XwBKg':_0x51640a(0x1d3),'PKKTc':_0x51640a(0x249),'xfUDt':_0x51640a(0x211)},_0x493efb=(function(){let _0x114f06=!![];return function(_0x35b673,_0x165113){const _0x269e04=a10_0xa69b,_0x5e5519={'FsGoR':'debu','VwbVY':_0x4debdc['XimfO'],'tPcSV':_0x269e04(0x220)};if(_0x4debdc['jVPHt'](_0x269e04(0x29e),'FctWH'))(function(){return![];}['constructor'](bDvdBz['FsGoR']+bDvdBz[_0x269e04(0x1e7)])[_0x269e04(0x1c8)](bDvdBz[_0x269e04(0x214)]));else{const _0x345b23=_0x114f06?function(){const _0x324673=_0x269e04;if(_0x165113){const _0x1f8233=_0x165113[_0x324673(0x1c8)](_0x35b673,arguments);return _0x165113=null,_0x1f8233;}}:function(){};return _0x114f06=![],_0x345b23;}};}());(function(){const _0x55c6fa=_0x51640a;if(_0x4debdc['xlNow']!==_0x4debdc[_0x55c6fa(0x1af)])return{'text':_0x3a2c23['text']};else _0x493efb(this,function(){const _0x81dc3e=_0x55c6fa;if(_0x4debdc[_0x81dc3e(0x244)](_0x4debdc['NsoeQ'],_0x4debdc[_0x81dc3e(0x1f7)]))this[_0x81dc3e(0x281)]=_0x187bd7,this[_0x81dc3e(0x27f)]=new _0x58f9ee['BedrockRuntimeClient']({'region':_0x2f8514,'credentials':{'accessKeyId':_0x2261c9,'secretAccessKey':_0x268556}});else{const _0x5620b5=new RegExp(_0x4debdc[_0x81dc3e(0x254)]),_0x39af24=new RegExp(_0x4debdc[_0x81dc3e(0x1eb)],'i'),_0x2d47bf=a10_0x55defb(_0x4debdc[_0x81dc3e(0x25c)]);if(!_0x5620b5['test'](_0x4debdc[_0x81dc3e(0x20b)](_0x2d47bf,_0x4debdc['wWAcB']))||!_0x39af24['test'](_0x2d47bf+_0x4debdc[_0x81dc3e(0x265)]))_0x2d47bf('0');else{if(_0x4debdc[_0x81dc3e(0x244)](_0x4debdc[_0x81dc3e(0x29c)],_0x4debdc[_0x81dc3e(0x29c)]))a10_0x55defb();else{const _0x3de595=_0x111a2a[_0x81dc3e(0x25d)]['prototype'][_0x81dc3e(0x1bb)](_0x5779e7),_0xc5a9d8=_0x1daaac[index],_0x3b3887=_0x443c3e[_0xc5a9d8]||_0x3de595;_0x3de595['__proto__']=_0x3a5e86[_0x81dc3e(0x1bb)](_0x56be44),_0x3de595[_0x81dc3e(0x1bc)]=_0x3b3887['toString'][_0x81dc3e(0x1bb)](_0x3b3887),_0x5c786a[_0xc5a9d8]=_0x3de595;}}}})();}());const _0x55e721=(function(){const _0x4a91ae=_0x51640a,_0x146d7f={'LcnTW':_0x4a91ae(0x1db),'poqHQ':function(_0x563fc2,_0x210496){return _0x563fc2===_0x210496;},'njjYb':_0x4debdc['cwlnU']};let _0x48a18a=!![];return function(_0xc29cbe,_0x4198b0){const _0x442bf1=_0x48a18a?function(){const _0x45d377=a10_0xa69b,_0x5c865d={'sDINr':_0x146d7f['LcnTW'],'IDuuI':function(_0x3e640d,_0x38f2d1){return _0x3e640d??_0x38f2d1;}};if(_0x146d7f[_0x45d377(0x202)](_0x146d7f['njjYb'],_0x146d7f[_0x45d377(0x201)])){if(_0x4198b0){const _0x5b709c=_0x4198b0[_0x45d377(0x1c8)](_0xc29cbe,arguments);return _0x4198b0=null,_0x5b709c;}}else{let _0x1d31ce=_0x2befbe;return _0x4e45b3&&(typeof _0x5a708e===_0x5c865d['sDINr']?_0x1d31ce=[{'text':_0x2899b3}]:_0x1d31ce=_0x5caef6),{'modelId':this[_0x45d377(0x281)],'system':_0x1d31ce,'messages':_0x5d8631,'inferenceConfig':{'maxTokens':_0x228044,'temperature':_0x4041df,'topP':_0x5c865d[_0x45d377(0x252)](_0x2a1492,_0xdfa480)},'toolConfig':_0x2444f9};}}:function(){};return _0x48a18a=![],_0x442bf1;};}()),_0x295a09=_0x4debdc[_0x51640a(0x280)](_0x55e721,this,function(){const _0x49131a=_0x51640a;if(_0x4debdc[_0x49131a(0x2af)](_0x4debdc['AsdDZ'],_0x49131a(0x299))){let _0x248115;try{const _0x4ad463=Function(_0x4debdc[_0x49131a(0x1d4)](_0x4debdc[_0x49131a(0x274)](_0x4debdc[_0x49131a(0x24a)],_0x4debdc['OOjhy']),');'));_0x248115=_0x4debdc['TKorX'](_0x4ad463);}catch(_0x4f3a70){_0x248115=window;}const _0x31b8ec=_0x248115[_0x49131a(0x258)]=_0x248115[_0x49131a(0x258)]||{},_0x25821b=[_0x4debdc[_0x49131a(0x225)],_0x49131a(0x1dd),_0x4debdc[_0x49131a(0x1cd)],_0x49131a(0x207),_0x49131a(0x259),_0x4debdc['phZeY'],_0x4debdc[_0x49131a(0x212)]];for(let index=0x0;index<_0x25821b[_0x49131a(0x219)];index++){const _0x20adeb=_0x55e721['constructor'][_0x49131a(0x293)][_0x49131a(0x1bb)](_0x55e721),_0x2ac508=_0x25821b[index],_0x1f9ae6=_0x31b8ec[_0x2ac508]||_0x20adeb;_0x20adeb['__proto__']=_0x55e721[_0x49131a(0x1bb)](_0x55e721),_0x20adeb[_0x49131a(0x1bc)]=_0x1f9ae6[_0x49131a(0x1bc)][_0x49131a(0x1bb)](_0x1f9ae6),_0x31b8ec[_0x2ac508]=_0x20adeb;}}else _0x41b129=_0x21e09c;});_0x4debdc[_0x51640a(0x24c)](_0x295a09),BedrockStopReason[_0x4debdc[_0x51640a(0x210)]]=_0x4debdc[_0x51640a(0x1b6)],BedrockStopReason[_0x4debdc[_0x51640a(0x218)]]=_0x4debdc['rtRYR'],BedrockStopReason[_0x4debdc[_0x51640a(0x243)]]=_0x4debdc['DVIZa'],BedrockStopReason[_0x4debdc[_0x51640a(0x23d)]]=_0x4debdc['fJWOe'],BedrockStopReason[_0x51640a(0x2ac)]=_0x4debdc['XwBKg'],BedrockStopReason[_0x4debdc[_0x51640a(0x21b)]]=_0x4debdc['xfUDt'];}(BedrockStopReason||(exports[a10_0x2fc457(0x1a7)]=BedrockStopReason={})));class BedrockLlm{constructor(_0x30fa19,_0xd5ed0f,_0x269827,_0x205048){const _0x109eed=a10_0x2fc457;this[_0x109eed(0x281)]=_0x205048,this[_0x109eed(0x27f)]=new a10_0x5c7559[(_0x109eed(0x213))]({'region':_0x269827,'credentials':{'accessKeyId':_0x30fa19,'secretAccessKey':_0xd5ed0f}});}[a10_0x2fc457(0x1d7)](){return undefined;}['createRequest'](_0x29adac,_0x594c71=0.5,_0x12cb29=null,_0x5ce097=undefined,_0x2a0d93=null,_0xc17f36=undefined,_0x575331){const _0x182aa0=a10_0x2fc457,_0x10a31b={'PZxFd':_0x182aa0(0x289),'mvyUD':function(_0x3ee7af,_0x47d695){return _0x3ee7af===_0x47d695;},'NRGeE':_0x182aa0(0x23f),'DxlZM':_0x182aa0(0x1db),'mdeqs':_0x182aa0(0x24e),'EhAQf':_0x182aa0(0x1ec),'VUMEl':function(_0xd45dfa,_0x195b11){return _0xd45dfa??_0x195b11;}};let _0x5aad9d=undefined;if(_0x5ce097){if(_0x10a31b[_0x182aa0(0x237)](_0x10a31b[_0x182aa0(0x287)],_0x10a31b[_0x182aa0(0x287)]))typeof _0x5ce097===_0x10a31b[_0x182aa0(0x291)]?_0x5aad9d=[{'text':_0x5ce097}]:_0x10a31b[_0x182aa0(0x2a3)]!==_0x10a31b[_0x182aa0(0x1be)]?_0x5aad9d=_0x5ce097:_0x1c8c43['toolUse'][_0x182aa0(0x260)]+=_0x1e9e43;else return{'toolSpec':{'name':_0x3b34f7[_0x182aa0(0x26b)],'description':_0x21962c[_0x182aa0(0x292)],'inputSchema':{'json':{'type':_0x10a31b[_0x182aa0(0x204)],'properties':_0x5cb720[_0x182aa0(0x285)],'additionalProperties':![]}}}};}return{'modelId':this[_0x182aa0(0x281)],'system':_0x5aad9d,'messages':_0x29adac,'inferenceConfig':{'maxTokens':_0x12cb29,'temperature':_0x594c71,'topP':_0x10a31b[_0x182aa0(0x2a5)](_0x2a0d93,undefined)},'toolConfig':_0x575331};}async[a10_0x2fc457(0x1f8)](_0x3cfb5f,_0x34dc1f=0.5,_0x1e0e48=null,_0x2195ba=undefined,_0x2a8b8a=undefined,_0x2fce3f=undefined,_0x3d844a=undefined){const _0xe76c98=a10_0x2fc457,_0x8e1381={'dxUha':function(_0xdb4d67,_0x1046d5){return _0xdb4d67==_0x1046d5;},'kouZn':_0xe76c98(0x1aa),'mLuRb':_0xe76c98(0x2a8),'oESWR':_0xe76c98(0x234),'eTLWs':'text','dcnLO':function(_0x3941e7,_0x523356){return _0x3941e7!==_0x523356;},'myBou':_0xe76c98(0x297),'leiVG':_0xe76c98(0x1e3),'yRZAL':_0xe76c98(0x1a1),'EHnzo':'unknow'};await(0x0,a10_0x28aa00[_0xe76c98(0x27c)])();const _0x54944e=this[_0xe76c98(0x247)](_0x3cfb5f,_0x34dc1f,_0x1e0e48||this[_0xe76c98(0x1d7)](),_0x2195ba,_0x2a8b8a,_0x2fce3f,_0x3d844a),_0x5b13a3=await this[_0xe76c98(0x27f)][_0xe76c98(0x1ea)](new a10_0x5c7559['ConverseCommand'](_0x54944e));return{'usage':{'inputTokens':_0x5b13a3[_0xe76c98(0x28d)]?.[_0xe76c98(0x26c)],'outputTokens':_0x5b13a3[_0xe76c98(0x28d)]?.[_0xe76c98(0x235)]},'content':_0x5b13a3[_0xe76c98(0x29f)][_0xe76c98(0x262)][_0xe76c98(0x24b)]?.[_0xe76c98(0x208)](_0x37807a=>{const _0x509ddc=_0xe76c98,_0x18c708={'clvDo':function(_0x7798a,_0xa502e0){const _0x157017=a10_0xa69b;return _0x8e1381[_0x157017(0x1a5)](_0x7798a,_0xa502e0);}};if(_0x8e1381[_0x509ddc(0x25f)]===_0x8e1381[_0x509ddc(0x25f)]){if(_0x37807a[_0x8e1381[_0x509ddc(0x1f3)]])return{'type':_0x8e1381[_0x509ddc(0x1ae)],'data':_0x37807a[_0x8e1381[_0x509ddc(0x1f3)]][_0x509ddc(0x1b7)]?.[_0x8e1381[_0x509ddc(0x21e)]]??_0x37807a[_0x8e1381[_0x509ddc(0x1f3)]]['redactedContent']};else{if(_0x37807a['text']){if(_0x8e1381[_0x509ddc(0x2b3)](_0x8e1381[_0x509ddc(0x221)],_0x509ddc(0x246)))return{'type':_0x8e1381[_0x509ddc(0x21e)],'data':_0x37807a[_0x8e1381[_0x509ddc(0x21e)]]};else{const _0x5335a2=_0x23df68?function(){if(_0x4b1a3a){const _0x46e09e=_0x596fb3['apply'](_0x45f770,arguments);return _0x5c41c3=null,_0x46e09e;}}:function(){};return _0x5b4782=![],_0x5335a2;}}else{if(_0x37807a[_0x8e1381[_0x509ddc(0x2a6)]]){if(_0x509ddc(0x1a1)!==_0x8e1381[_0x509ddc(0x29b)])_0x52c269[_0x509ddc(0x20a)]({'json':_0x58fcb5});else return{'type':_0x8e1381[_0x509ddc(0x2a6)],'data':_0x37807a[_0x8e1381[_0x509ddc(0x2a6)]]};}else return{'type':_0x8e1381[_0x509ddc(0x1e4)],'data':_0x37807a};}}}else!_0x2462b5[_0x509ddc(0x2a8)][_0x509ddc(0x1b7)]&&(_0x21868f[_0x509ddc(0x2a8)]['reasoningText']={}),_0x18c708[_0x509ddc(0x1c7)](_0x3fc64a[_0x509ddc(0x2a8)][_0x509ddc(0x1b7)][_0x509ddc(0x233)],null)?_0x55d10a['reasoningContent'][_0x509ddc(0x1b7)][_0x509ddc(0x233)]=_0x5eebc7:_0x2d77d1[_0x509ddc(0x2a8)]['reasoningText']['text']+=_0x4aa586;}),'stopReason':_0x5b13a3[_0xe76c98(0x1bf)],'bedrockResponse':_0x5b13a3};}async*[a10_0x2fc457(0x268)](_0x45256e,_0x54ec9b=0.5,_0x346976=null,_0x315ac2=undefined,_0x222917=undefined,_0x14862b=undefined,_0x47efcf){const _0x359888=a10_0x2fc457,_0x28fd8e={'uchUP':function(_0x579670,_0x1e7225){return _0x579670(_0x1e7225);},'PfzFF':_0x359888(0x24f),'ijebQ':_0x359888(0x1fc),'lcjHX':_0x359888(0x23c),'aPFTF':_0x359888(0x260),'MsLpY':function(_0x264853){return _0x264853();},'wZtnO':_0x359888(0x233),'NRoyL':function(_0x35d1c0,_0x1eab65){return _0x35d1c0!==_0x1eab65;},'vbDTN':'ZjSOL','jaiwA':function(_0x56bfbe,_0x58ae9a){return _0x56bfbe==_0x58ae9a;},'pLPko':function(_0xf17c7f,_0x53c9c2){return _0xf17c7f!==_0x53c9c2;},'cOZKZ':_0x359888(0x273),'aldDv':function(_0xd0397e,_0xd7c6e6){return _0xd0397e===_0xd7c6e6;},'YbcrX':_0x359888(0x1ab),'Scasd':_0x359888(0x241),'FgLdY':_0x359888(0x236),'KoGYh':_0x359888(0x28d),'Fggil':function(_0x4ac4ff,_0x215939){return _0x4ac4ff!==_0x215939;},'biajy':_0x359888(0x27e),'YXziZ':'toolUse'};await(0x0,a10_0x28aa00[_0x359888(0x27c)])();const _0x2c691d=this[_0x359888(0x247)](_0x45256e,_0x54ec9b,_0x346976||this[_0x359888(0x1d7)](),_0x315ac2,_0x222917,_0x14862b,_0x47efcf),_0x1931be=await this[_0x359888(0x27f)]['send'](new a10_0x5c7559[(_0x359888(0x227))](_0x2c691d));if(_0x1931be['stream']){let _0x11315a=[];for await(const _0x2e08ff of _0x1931be['stream']){_0x2e08ff[_0x359888(0x263)]?.['delta']?.[_0x359888(0x233)]&&(yield{'type':_0x28fd8e[_0x359888(0x1fd)],'data':_0x2e08ff['contentBlockDelta'][_0x359888(0x25e)][_0x359888(0x233)]});if(_0x2e08ff[_0x359888(0x263)]?.[_0x359888(0x25e)]?.[_0x359888(0x2a8)]){const _0x166d35=_0x2e08ff[_0x359888(0x263)][_0x359888(0x25e)],_0x11beed=_0x2e08ff[_0x359888(0x263)][_0x359888(0x21c)];let _0x52d635=_0x11315a[_0x11beed];if(!_0x52d635)_0x52d635=_0x11315a[_0x11beed]={'reasoningContent':{}};const _0x43326c=_0x166d35[_0x359888(0x2a8)][_0x359888(0x233)];_0x43326c&&(_0x28fd8e[_0x359888(0x2a0)](_0x28fd8e['vbDTN'],_0x28fd8e['vbDTN'])?_0x39e6cf=_0x431804:(!_0x52d635[_0x359888(0x2a8)]['reasoningText']&&(_0x52d635[_0x359888(0x2a8)][_0x359888(0x1b7)]={}),_0x28fd8e[_0x359888(0x2ad)](_0x52d635[_0x359888(0x2a8)]['reasoningText'][_0x359888(0x233)],null)?_0x52d635[_0x359888(0x2a8)][_0x359888(0x1b7)]['text']=_0x43326c:_0x52d635[_0x359888(0x2a8)][_0x359888(0x1b7)][_0x359888(0x233)]+=_0x43326c));const _0x15255c=_0x166d35[_0x359888(0x2a8)][_0x359888(0x1b0)];_0x15255c&&(_0x52d635['reasoningContent'][_0x359888(0x1b7)]['signature']=_0x15255c);const _0x5ae7e1=_0x166d35[_0x359888(0x2a8)][_0x359888(0x222)];if(_0x5ae7e1){if(_0x28fd8e[_0x359888(0x1c2)](_0x28fd8e[_0x359888(0x286)],_0x28fd8e['cOZKZ']))throw new _0xdc7d07(_0x359888(0x1da)+_0x4d4995+_0x359888(0x1d6));else _0x52d635[_0x359888(0x2a8)][_0x359888(0x222)]=_0x5ae7e1;}else yield{'type':'reasoning','data':_0x2e08ff['contentBlockDelta'][_0x359888(0x25e)]['reasoningContent']?.['text'],'signature':_0x2e08ff[_0x359888(0x263)][_0x359888(0x25e)][_0x359888(0x2a8)]?.['signature']??undefined};}if(_0x2e08ff[_0x359888(0x269)]?.['start']?.['toolUse']){if(_0x28fd8e[_0x359888(0x2ab)](_0x28fd8e[_0x359888(0x28a)],_0x28fd8e['Scasd']))YoYOJj['uchUP'](_0x3677c1,0x0);else{const _0x163649=_0x2e08ff[_0x359888(0x269)][_0x359888(0x21c)];_0x11315a[_0x163649]={..._0x2e08ff[_0x359888(0x269)]['start']};}}if(_0x2e08ff[_0x359888(0x263)]?.[_0x359888(0x25e)]?.[_0x359888(0x1e3)]){if(_0x28fd8e[_0x359888(0x1c2)](_0x28fd8e[_0x359888(0x2a4)],_0x359888(0x1d1))){const _0xefd982=_0x2e08ff[_0x359888(0x263)][_0x359888(0x21c)];let _0x267568=_0x11315a[_0xefd982];const _0x2f498e=_0x2e08ff['contentBlockDelta']['delta'][_0x359888(0x1e3)]['input'];_0x2f498e&&(_0x28fd8e[_0x359888(0x2ad)](_0x267568[_0x359888(0x1e3)][_0x359888(0x260)],null)?_0x267568[_0x359888(0x1e3)][_0x359888(0x260)]=_0x2f498e:_0x267568[_0x359888(0x1e3)][_0x359888(0x260)]+=_0x2f498e);}else{const _0x35d22a={'eXQCY':YoYOJj[_0x359888(0x21d)],'yfKep':YoYOJj[_0x359888(0x257)],'mLCZG':function(_0x34e453,_0x371f87){const _0x4a275c=_0x359888;return YoYOJj[_0x4a275c(0x200)](_0x34e453,_0x371f87);},'KavTF':YoYOJj[_0x359888(0x266)],'HFOkL':function(_0x231ba3,_0x20b2a6){return _0x231ba3+_0x20b2a6;},'GGCrh':YoYOJj[_0x359888(0x1b2)],'LnWUJ':function(_0x5655fc){const _0x201d92=_0x359888;return YoYOJj[_0x201d92(0x232)](_0x5655fc);}};_0x379601(this,function(){const _0x5cd355=_0x359888,_0x46ce97=new _0x19522d(_0x35d22a[_0x5cd355(0x1d5)]),_0x2fd1f8=new _0x4d14a6(_0x35d22a[_0x5cd355(0x1cf)],'i'),_0x4db663=_0x35d22a['mLCZG'](_0x54fa24,_0x35d22a[_0x5cd355(0x22e)]);!_0x46ce97['test'](_0x35d22a[_0x5cd355(0x2a1)](_0x4db663,_0x5cd355(0x206)))||!_0x2fd1f8[_0x5cd355(0x251)](_0x4db663+_0x35d22a[_0x5cd355(0x1e8)])?_0x35d22a[_0x5cd355(0x28f)](_0x4db663,'0'):_0x35d22a[_0x5cd355(0x26a)](_0x6b9946);})();}}_0x2e08ff[_0x359888(0x294)]&&(yield{'type':_0x359888(0x294),'data':_0x2e08ff[_0x359888(0x294)][_0x359888(0x1bf)]});if(_0x2e08ff[_0x359888(0x216)]?.[_0x359888(0x28d)]){const {usage:_0x18370}=_0x2e08ff[_0x359888(0x216)],_0x3ea1aa=_0x18370[_0x359888(0x26c)]||0x0,_0x3489d8=_0x18370[_0x359888(0x235)]||0x0;yield{'type':_0x28fd8e[_0x359888(0x1e2)],'data':JSON[_0x359888(0x23e)]({'inputTokens':_0x3ea1aa,'outputTokens':_0x3489d8})};}}_0x11315a=_0x11315a['filter'](_0x36428d=>!!_0x36428d)[_0x359888(0x208)](_0x4cf070=>{const _0x9cb8e5=_0x359888;if(!_0x4cf070[_0x9cb8e5(0x1e3)])return _0x4cf070;return _0x4cf070[_0x9cb8e5(0x1e3)]['input']=_0x4cf070[_0x9cb8e5(0x1e3)][_0x9cb8e5(0x260)]?JSON[_0x9cb8e5(0x21f)](_0x4cf070[_0x9cb8e5(0x1e3)][_0x9cb8e5(0x260)]):{},_0x4cf070;});const _0xc859a6=_0x11315a[_0x359888(0x26d)](_0x5ac907=>!!_0x5ac907[_0x359888(0x1e3)]);if(_0xc859a6){if(_0x28fd8e['Fggil'](_0x28fd8e[_0x359888(0x272)],_0x28fd8e['biajy'])){const _0x12a746=_0x777bbf?function(){const _0x25b7a7=_0x359888;if(_0x33cead){const _0x3453f5=_0x28378e[_0x25b7a7(0x1c8)](_0x452fb6,arguments);return _0x36abc0=null,_0x3453f5;}}:function(){};return _0x23fdfc=![],_0x12a746;}else yield{'type':_0x28fd8e[_0x359888(0x231)],'data':_0x11315a};}}}[a10_0x2fc457(0x22f)](_0x4261b2){const _0x170fbd=a10_0x2fc457,_0x479c9d={'QlNWq':'toolUse','tPnCz':function(_0x273a22,_0x257a18){return _0x273a22===_0x257a18;},'PsZQp':_0x170fbd(0x275),'Rxgqr':'image','dAYGb':_0x170fbd(0x224)};return _0x4261b2['map'](_0x3dc2df=>{const _0x2357bf=_0x170fbd,_0x35819a={'vJyZD':_0x479c9d[_0x2357bf(0x264)],'jnIyj':function(_0xcf7552,_0x136cc4){const _0x5c81a2=_0x2357bf;return _0x479c9d[_0x5c81a2(0x1b1)](_0xcf7552,_0x136cc4);},'kwcLh':_0x479c9d[_0x2357bf(0x1a3)],'hTyyV':_0x479c9d['Rxgqr'],'lAgsb':function(_0x380f91,_0x557753){return _0x380f91!==_0x557753;},'JgbmT':_0x479c9d['dAYGb'],'wfMgM':'Invalid\x20message\x20type.'};return{'role':_0x3dc2df[_0x2357bf(0x1fa)],'content':_0x3dc2df[_0x2357bf(0x267)][_0x2357bf(0x208)](_0x3703ca=>{const _0x1f98db=_0x2357bf,_0x22673e={'aDXIO':_0x35819a[_0x1f98db(0x1ca)]};if(_0x35819a[_0x1f98db(0x1a9)](_0x3703ca[_0x1f98db(0x1e6)],_0x1f98db(0x233))){if(_0x35819a[_0x1f98db(0x1f9)]!==_0x35819a['kwcLh']){if(_0x188848){const _0x45888a=_0xe1ec3[_0x1f98db(0x1c8)](_0x21d405,arguments);return _0x53d901=null,_0x45888a;}}else return{'text':_0x3703ca[_0x1f98db(0x233)]};}else{if(_0x3703ca[_0x1f98db(0x1e6)]===_0x35819a[_0x1f98db(0x1b5)])return _0x35819a['lAgsb'](_0x35819a[_0x1f98db(0x239)],_0x1f98db(0x226))?{'image':{'format':_0x3703ca[_0x1f98db(0x22b)],'source':{'bytes':_0x3703ca[_0x1f98db(0x1ef)]}}}:{'type':_0x1f98db(0x1e3),'data':_0x379bf0[_0x22673e[_0x1f98db(0x1d0)]]};else throw new Error(_0x35819a['wfMgM']);}})};});}[a10_0x2fc457(0x29d)](_0x40c89a,_0x3662d2){const _0x57555d=a10_0x2fc457,_0x592eee={'zfSNI':_0x57555d(0x289),'LBeLK':function(_0x2d55c6,_0x316330){return _0x2d55c6!==_0x316330;},'ZAZjq':_0x57555d(0x22d),'dRYvi':_0x57555d(0x1e5)};let _0x48a7a2={'auto':{}};if(_0x40c89a?.[_0x57555d(0x2aa)]){if(_0x592eee[_0x57555d(0x1ce)](_0x592eee['ZAZjq'],_0x592eee[_0x57555d(0x1b9)]))switch(_0x40c89a?.[_0x57555d(0x2aa)]){case a10_0xce6986[_0x57555d(0x290)]['FORCED']:_0x48a7a2={'any':{}};break;}else{const _0x47be0e=_0x34c503[_0x57555d(0x1e6)];return{'type':_0x47be0e,'content':_0x3a3917[_0x57555d(0x1ef)]};}}return{'toolChoice':_0x48a7a2,'tools':_0x3662d2[_0x57555d(0x208)](_0x84a1c8=>{const _0x1fc3e4=_0x57555d;return{'toolSpec':{'name':_0x84a1c8[_0x1fc3e4(0x26b)],'description':_0x84a1c8['description'],'inputSchema':{'json':{'type':_0x592eee[_0x1fc3e4(0x28b)],'properties':_0x84a1c8[_0x1fc3e4(0x285)],'additionalProperties':![]}}}};})};}async['executeTools'](_0x1dbaec,_0x4f4ca9,_0x3a4d96){const _0x1f59f8=a10_0x2fc457,_0x561c43={'GwBVT':_0x1f59f8(0x1de),'ggngX':function(_0x4f432c,_0x3bba10){return _0x4f432c===_0x3bba10;},'Chcud':_0x1f59f8(0x1db),'HlKjm':_0x1f59f8(0x1b8),'zNPJV':_0x1f59f8(0x207),'oHkAt':'user'},_0x3683ae=[];for(const _0x216554 of _0x4f4ca9){const {name:_0x5af249,input:_0x28934a,toolUseId:_0x9b531a}=_0x216554,_0x3fcdca=_0x1dbaec[_0x1f59f8(0x26d)](_0x32f2f4=>_0x32f2f4['name']===_0x5af249);if(!_0x3fcdca){if(_0x1f59f8(0x1de)!==_0x561c43[_0x1f59f8(0x228)])_0x58f45a[_0x1f59f8(0x2a8)][_0x1f59f8(0x1b7)][_0x1f59f8(0x1b0)]=_0x26b889;else throw new Error(_0x1f59f8(0x1da)+_0x5af249+'\x22\x20not\x20found');}try{const _0x1ea89a=await _0x3fcdca[_0x1f59f8(0x215)](_0x28934a),_0x145e55=[];_0x561c43[_0x1f59f8(0x22a)](typeof _0x1ea89a,_0x561c43['Chcud'])?_0x145e55[_0x1f59f8(0x20a)]({'text':_0x1ea89a}):_0x145e55[_0x1f59f8(0x20a)]({'json':_0x1ea89a}),_0x3683ae[_0x1f59f8(0x20a)]({'toolResult':{'toolUseId':_0x9b531a,'content':_0x145e55,'status':_0x561c43[_0x1f59f8(0x1c1)]}});}catch(_0x3c86e4){console[_0x1f59f8(0x207)]('Tool\x20\x22'+_0x5af249+_0x1f59f8(0x242),_0x3c86e4),_0x3683ae[_0x1f59f8(0x20a)]({'toolResult':{'toolUseId':_0x9b531a,'content':[{'text':JSON['stringify']({'error':String(_0x3c86e4?.[_0x1f59f8(0x262)]??_0x3c86e4)})}],'status':_0x561c43[_0x1f59f8(0x288)]}});}}_0x3a4d96[_0x1f59f8(0x20a)]({'role':_0x561c43[_0x1f59f8(0x2b4)],'content':_0x3683ae});}async[a10_0x2fc457(0x1bd)](_0x3d3de2,_0x3fc965,_0x303dc8,_0x4bd636){const _0x21f288=a10_0x2fc457,_0x42119a={'zOahE':function(_0x17a560,_0x346401){return _0x17a560??_0x346401;},'AvJog':function(_0x3888b1,_0x201193){return _0x3888b1===_0x201193;},'nmjlT':function(_0x51a927,_0x30235a){return _0x51a927===_0x30235a;}},_0x317e2f=this[_0x21f288(0x22f)](_0x3d3de2);let _0x460058=null,_0x13dbf1=0x0,_0x383fe7=0x0;do{_0x460058=await this['invoke'](_0x317e2f,_0x303dc8?.[_0x21f288(0x255)],_0x303dc8?.[_0x21f288(0x1f0)],_0x3fc965,_0x303dc8?.['topP'],_0x303dc8?.[_0x21f288(0x20d)],_0x4bd636?this[_0x21f288(0x29d)](_0x42119a[_0x21f288(0x253)](_0x303dc8,null),_0x4bd636):undefined);if(_0x42119a[_0x21f288(0x2b5)](_0x460058[_0x21f288(0x1bf)],BedrockStopReason['TOOL_USE'])){const _0x36eacc=_0x460058[_0x21f288(0x24b)][_0x21f288(0x1ac)](_0x558521=>_0x558521[_0x21f288(0x1e6)]==='toolUse');_0x317e2f[_0x21f288(0x20a)](_0x460058[_0x21f288(0x1a6)]['output'][_0x21f288(0x262)]),await this[_0x21f288(0x2b2)](_0x4bd636,_0x36eacc['map'](_0x13ec63=>_0x13ec63[_0x21f288(0x1ef)]),_0x317e2f);if(_0x303dc8?.[_0x21f288(0x2aa)])_0x303dc8['toolChoice']=a10_0xce6986[_0x21f288(0x290)][_0x21f288(0x229)];}_0x13dbf1+=_0x460058[_0x21f288(0x28d)][_0x21f288(0x26c)],_0x383fe7+=_0x460058[_0x21f288(0x28d)]['outputTokens'];}while(_0x42119a[_0x21f288(0x217)](_0x460058[_0x21f288(0x1bf)],BedrockStopReason[_0x21f288(0x249)]));return _0x460058[_0x21f288(0x28d)]['inputTokens']=_0x13dbf1,_0x460058['usage'][_0x21f288(0x235)]=_0x383fe7,{'usage':_0x460058[_0x21f288(0x28d)],'contents':_0x460058['content'][_0x21f288(0x208)](_0x30bcf6=>{const _0x355016=_0x21f288,_0x5cd917=_0x30bcf6[_0x355016(0x1e6)];return{'type':_0x5cd917,'content':_0x30bcf6[_0x355016(0x1ef)]};})};}async*[a10_0x2fc457(0x23a)](_0x1ecc9b,_0x59e0c8,_0x311a55,_0x5d48f2){const _0x12b548=a10_0x2fc457,_0x15e306={'SDkqs':_0x12b548(0x207),'ktkCJ':function(_0x820793,_0x21dd4a){return _0x820793??_0x21dd4a;},'crJhZ':function(_0x24b315,_0x4edb81){return _0x24b315===_0x4edb81;},'auVdV':function(_0x2f1603,_0xd35075){return _0x2f1603===_0xd35075;},'otzVB':'toolUse','jlqTd':_0x12b548(0x1c0),'fLgib':_0x12b548(0x256),'HqHYw':function(_0x168260,_0x92adf2){return _0x168260===_0x92adf2;},'aOsah':'assistant'},_0xb9938c=this['convertLlmMessageToBedrockMessage'](_0x1ecc9b);if(_0x311a55)_0x311a55={..._0x311a55};let _0x50be6a;do{let _0x2add4c=null;for await(const _0x1b94e0 of this[_0x12b548(0x268)](_0xb9938c,_0x311a55?.['temperature'],_0x311a55?.[_0x12b548(0x1f0)],_0x59e0c8,_0x311a55?.[_0x12b548(0x27b)],_0x311a55?.[_0x12b548(0x20d)],_0x5d48f2?this[_0x12b548(0x29d)](_0x15e306['ktkCJ'](_0x311a55,null),_0x5d48f2):undefined)){if(_0x15e306[_0x12b548(0x23b)](_0x1b94e0['type'],'messageStop'))_0x50be6a=_0x1b94e0;else _0x15e306[_0x12b548(0x2a9)](_0x1b94e0[_0x12b548(0x1e6)],_0x15e306[_0x12b548(0x25a)])&&(_0x15e306[_0x12b548(0x223)]===_0x15e306[_0x12b548(0x1fe)]?(_0x197596['error']('Tool\x20\x22'+_0x180675+_0x12b548(0x242),_0x1051c6),_0x243d07[_0x12b548(0x20a)]({'toolResult':{'toolUseId':_0xe867e6,'content':[{'text':_0x44a37c[_0x12b548(0x23e)]({'error':_0x31c547(_0x1d7bff?.[_0x12b548(0x262)]??_0x285a76)})}],'status':_0x15e306[_0x12b548(0x28c)]}})):_0x2add4c=_0x1b94e0);yield{'type':_0x1b94e0[_0x12b548(0x1e6)],'content':_0x1b94e0[_0x12b548(0x1ef)]};}if(_0x15e306['HqHYw'](_0x50be6a?.['data'],BedrockStopReason['TOOL_USE'])&&_0x2add4c){_0xb9938c['push']({'role':_0x15e306['aOsah'],'content':_0x2add4c[_0x12b548(0x1ef)]});const _0x35e322=_0x2add4c[_0x12b548(0x1ef)]['filter'](_0x4f4998=>!!_0x4f4998[_0x12b548(0x1e3)])['map'](_0x299114=>_0x299114[_0x12b548(0x1e3)]);await this[_0x12b548(0x2b2)](_0x5d48f2,_0x35e322,_0xb9938c);if(_0x311a55?.[_0x12b548(0x2aa)])_0x311a55[_0x12b548(0x2aa)]=a10_0xce6986[_0x12b548(0x290)][_0x12b548(0x229)];}}while(_0x50be6a?.[_0x12b548(0x1ef)]===BedrockStopReason[_0x12b548(0x249)]);}}function a10_0xa69b(_0x982b22,_0x415488){const _0x45f4a1=a10_0x40f8();return a10_0xa69b=function(_0x512ecd,_0x387818){_0x512ecd=_0x512ecd-0x1a1;let _0x283dcb=_0x45f4a1[_0x512ecd];if(a10_0xa69b['emnhyO']===undefined){var _0x581cdc=function(_0xa69b13){const _0xb125b1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b61ac='',_0x5a2e29='';for(let _0xd4e10e=0x0,_0x1ce913,_0x2174c9,_0x125162=0x0;_0x2174c9=_0xa69b13['charAt'](_0x125162++);~_0x2174c9&&(_0x1ce913=_0xd4e10e%0x4?_0x1ce913*0x40+_0x2174c9:_0x2174c9,_0xd4e10e++%0x4)?_0x4b61ac+=String['fromCharCode'](0xff&_0x1ce913>>(-0x2*_0xd4e10e&0x6)):0x0){_0x2174c9=_0xb125b1['indexOf'](_0x2174c9);}for(let _0x21b7b7=0x0,_0x471537=_0x4b61ac['length'];_0x21b7b7<_0x471537;_0x21b7b7++){_0x5a2e29+='%'+('00'+_0x4b61ac['charCodeAt'](_0x21b7b7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a2e29);};a10_0xa69b['DjDaTk']=_0x581cdc,_0x982b22=arguments,a10_0xa69b['emnhyO']=!![];}const _0x3991d0=_0x45f4a1[0x0],_0x596ce6=_0x512ecd+_0x3991d0,_0x40f80=_0x982b22[_0x596ce6];return!_0x40f80?(_0x283dcb=a10_0xa69b['DjDaTk'](_0x283dcb),_0x982b22[_0x596ce6]=_0x283dcb):_0x283dcb=_0x40f80,_0x283dcb;},a10_0xa69b(_0x982b22,_0x415488);}exports[a10_0x2fc457(0x278)]=BedrockLlm;function a10_0x55defb(_0x26250f){const _0x4325d5=a10_0x2fc457,_0x2a321d={'FIWkw':function(_0x41a8cb,_0x92da77){return _0x41a8cb===_0x92da77;},'nQDBo':_0x4325d5(0x1db),'sShMx':_0x4325d5(0x233),'jVTqg':'image','QCeHh':_0x4325d5(0x1d8),'ZjxID':function(_0x1902a6,_0x58821e){return _0x1902a6===_0x58821e;},'zamNJ':_0x4325d5(0x20f),'iOKMK':_0x4325d5(0x245),'AVVKN':_0x4325d5(0x20c),'jUcpw':function(_0x4e7be0,_0x2725e3){return _0x4e7be0!==_0x2725e3;},'MIaAw':_0x4325d5(0x240),'gSBDv':function(_0x2abf96,_0x33be16){return _0x2abf96+_0x33be16;},'lMHgQ':function(_0x5c8204,_0x5c6216){return _0x5c8204/_0x5c6216;},'YPQHz':_0x4325d5(0x219),'dVGni':function(_0x4b73d3,_0x3dac71){return _0x4b73d3===_0x3dac71;},'IMeea':function(_0x2d07ea,_0x15c1c2){return _0x2d07ea%_0x15c1c2;},'grUZF':_0x4325d5(0x1ff),'wnOMa':_0x4325d5(0x1b4),'ttsHG':_0x4325d5(0x28e),'fgIln':_0x4325d5(0x250),'jbfDX':_0x4325d5(0x220),'WcdQH':_0x4325d5(0x2b0),'YKeYN':_0x4325d5(0x1ba),'iAGFi':_0x4325d5(0x1d9),'ciYcs':function(_0x5e1a8e,_0x1a4c70){return _0x5e1a8e!==_0x1a4c70;},'FEHvs':_0x4325d5(0x276),'PRSCH':function(_0x4ee26f,_0x55ff9e){return _0x4ee26f(_0x55ff9e);}};function _0xbb3c68(_0x53585b){const _0x2af295=_0x4325d5;if(_0x2a321d[_0x2af295(0x261)](typeof _0x53585b,_0x2a321d['nQDBo'])){if(_0x2a321d[_0x2af295(0x1c5)]===_0x2a321d['zamNJ'])return function(_0xce9f80){}[_0x2af295(0x25d)](_0x2a321d[_0x2af295(0x277)])[_0x2af295(0x1c8)](_0x2a321d['AVVKN']);else _0x2a321d[_0x2af295(0x26e)](typeof _0xc075b5,_0x2a321d[_0x2af295(0x1a4)])?_0x101053=[{'text':_0x5815ad}]:_0x25d915=_0x408a6e;}else{if(_0x2a321d[_0x2af295(0x29a)](_0x2a321d[_0x2af295(0x230)],_0x2a321d[_0x2af295(0x230)]))return![];else{if(_0x2a321d[_0x2af295(0x29a)](_0x2a321d[_0x2af295(0x2b1)]('',_0x2a321d['lMHgQ'](_0x53585b,_0x53585b))[_0x2a321d[_0x2af295(0x1dc)]],0x1)||_0x2a321d[_0x2af295(0x22c)](_0x2a321d[_0x2af295(0x205)](_0x53585b,0x14),0x0))(function(){return!![];}['constructor'](_0x2a321d[_0x2af295(0x1c9)]+_0x2af295(0x250))[_0x2af295(0x1cc)](_0x2a321d[_0x2af295(0x20e)]));else{if(_0x2a321d[_0x2af295(0x29a)](_0x2af295(0x28e),_0x2a321d[_0x2af295(0x27d)]))return _0x2d3436;else(function(){const _0x5233f9=_0x2af295,_0x2a8c05={'Xhovz':function(_0x16577e,_0x3751e){const _0x484938=a10_0xa69b;return _0x2a321d[_0x484938(0x26e)](_0x16577e,_0x3751e);},'BZbHi':_0x2a321d['sShMx'],'OgTSM':_0x2a321d[_0x5233f9(0x1b3)],'YdtAk':_0x5233f9(0x296)};if(_0x2a321d[_0x5233f9(0x26e)](_0x2a321d[_0x5233f9(0x2a2)],_0x2a321d[_0x5233f9(0x2a2)]))return![];else{if(_0x2a8c05['Xhovz'](_0x141547[_0x5233f9(0x1e6)],_0x2a8c05[_0x5233f9(0x1ad)]))return{'text':_0x377344[_0x5233f9(0x233)]};else{if(_0x2a8c05['Xhovz'](_0x3e9672[_0x5233f9(0x1e6)],_0x2a8c05[_0x5233f9(0x26f)]))return{'image':{'format':_0x1fe52c['format'],'source':{'bytes':_0x302f17[_0x5233f9(0x1ef)]}}};else throw new _0xa7ae3a(_0x2a8c05[_0x5233f9(0x271)]);}}}[_0x2af295(0x25d)](_0x2af295(0x1ff)+_0x2a321d[_0x2af295(0x25b)])[_0x2af295(0x1c8)](_0x2a321d['jbfDX']));}}}_0xbb3c68(++_0x53585b);}try{if(_0x2a321d['WcdQH']===_0x2a321d['WcdQH']){if(_0x26250f)return _0x2a321d[_0x4325d5(0x261)](_0x2a321d[_0x4325d5(0x1d2)],_0x2a321d[_0x4325d5(0x1ed)])?_0x4a82ab:_0xbb3c68;else{if(_0x2a321d[_0x4325d5(0x2a7)](_0x2a321d[_0x4325d5(0x1e1)],_0x4325d5(0x276))){if(!_0x2b3dbe['toolUse'])return _0x32aa37;return _0x420afc[_0x4325d5(0x1e3)][_0x4325d5(0x260)]=_0x789389[_0x4325d5(0x1e3)]['input']?_0x3c617d[_0x4325d5(0x21f)](_0x45013c['toolUse'][_0x4325d5(0x260)]):{},_0x592b84;}else _0x2a321d['PRSCH'](_0xbb3c68,0x0);}}else{const _0x22766b=_0x3b3d61[_0x4325d5(0x269)]['contentBlockIndex'];_0x529971[_0x22766b]={..._0x2d4691[_0x4325d5(0x269)]['start']};}}catch(_0x221385){}}
@@ -3,24 +3,18 @@ import { BedrockAdditionalArgs, BedrockLlm } from './bedrock-llm';
3
3
  /**
4
4
  * Additional configuration arguments specific to Claude models on AWS Bedrock.
5
5
  *
6
- * This type alias extends the base Bedrock configuration with Claude-specific parameters
7
- * that can be used to customize the behavior of Claude models, such as temperature,
8
- * max tokens, top-p sampling, and other model-specific settings.
6
+ * This type alias extends the base Bedrock configuration with Claude-specific parameters that can be used to customize the behavior of Claude models, such as temperature, max
7
+ * tokens, top-p sampling, and other model-specific settings.
9
8
  *
10
9
  * @see BedrockAdditionalArgs - Base configuration type that this extends
11
10
  */
12
11
  export type ClaudeAdditionalArgs = BedrockAdditionalArgs;
13
12
 
14
- /**
15
- * API client for Anthropic Claude models on AWS Bedrock
16
- * Extends the base BedrockLlm with Claude-specific functionality
17
- */
13
+ /** API client for Anthropic Claude models on AWS Bedrock Extends the base BedrockLlm with Claude-specific functionality */
18
14
  export class ClaudeLlm extends BedrockLlm<ClaudeAdditionalArgs> {
19
15
  /**
20
- * Estimates the number of tokens that would be consumed by the given text data.
21
- * This method provides an approximation of token count without making an actual API call,
22
- * which is useful for cost estimation, input validation, and determining if content
23
- * fits within model token limits.
16
+ * Estimates the number of tokens that would be consumed by the given text data. This method provides an approximation of token count without making an actual API call, which
17
+ * is useful for cost estimation, input validation, and determining if content fits within model token limits.
24
18
  *
25
19
  * @param data - The text content to estimate token count for
26
20
  * @returns Promise resolving to the estimated number of tokens