@botpress/runtime 1.6.3 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/actions.d.ts +1 -1
- package/dist/_types/actions.d.ts.map +1 -1
- package/dist/_types/channels.d.ts +1 -1
- package/dist/_types/channels.d.ts.map +1 -1
- package/dist/_types/conversations.d.ts +3 -3
- package/dist/_types/conversations.d.ts.map +1 -1
- package/dist/_types/events.d.ts +1 -1
- package/dist/_types/events.d.ts.map +1 -1
- package/dist/_types/integration-actions.d.ts +1 -1
- package/dist/_types/integration-actions.d.ts.map +1 -1
- package/dist/_types/integrations.d.ts +1 -1
- package/dist/_types/integrations.d.ts.map +1 -1
- package/dist/_types/state.d.ts +1 -1
- package/dist/_types/state.d.ts.map +1 -1
- package/dist/_types/tables.d.ts +1 -1
- package/dist/_types/tables.d.ts.map +1 -1
- package/dist/_types/triggers.d.ts +1 -1
- package/dist/_types/triggers.d.ts.map +1 -1
- package/dist/_types/workflows.d.ts +4 -4
- package/dist/_types/workflows.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/consts.d.ts.map +1 -1
- package/dist/debugging/node-inspector.d.ts +1 -1
- package/dist/debugging/node-inspector.d.ts.map +1 -1
- package/dist/define-config.d.ts +3 -3
- package/dist/define-config.d.ts.map +1 -1
- package/dist/definition.d.ts +4 -4
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +144 -494
- package/dist/definition.js.map +2 -2
- package/dist/environment.d.ts +17 -17
- package/dist/environment.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/globals.d.ts.map +1 -1
- package/dist/internal.d.ts +9 -9
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +163 -549
- package/dist/internal.js.map +2 -2
- package/dist/library.d.ts +18 -18
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +148 -506
- package/dist/library.js.map +2 -2
- package/dist/primitives/action.d.ts +7 -7
- package/dist/primitives/action.d.ts.map +1 -1
- package/dist/primitives/asset.d.ts.map +1 -1
- package/dist/primitives/conversation-instance.d.ts +6 -6
- package/dist/primitives/conversation-instance.d.ts.map +1 -1
- package/dist/primitives/conversation.d.ts +15 -15
- package/dist/primitives/conversation.d.ts.map +1 -1
- package/dist/primitives/data-sources/index.d.ts +5 -5
- package/dist/primitives/data-sources/index.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-base.d.ts +3 -3
- package/dist/primitives/data-sources/source-base.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-directory.d.ts +1 -1
- package/dist/primitives/data-sources/source-directory.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-table.d.ts +2 -2
- package/dist/primitives/data-sources/source-table.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-website.d.ts +2 -2
- package/dist/primitives/data-sources/source-website.d.ts.map +1 -1
- package/dist/primitives/definition.d.ts +8 -8
- package/dist/primitives/definition.d.ts.map +1 -1
- package/dist/primitives/index.d.ts +18 -18
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/knowledge.d.ts +2 -2
- package/dist/primitives/knowledge.d.ts.map +1 -1
- package/dist/primitives/table.d.ts +31 -31
- package/dist/primitives/table.d.ts.map +1 -1
- package/dist/primitives/trigger.d.ts +5 -5
- package/dist/primitives/trigger.d.ts.map +1 -1
- package/dist/primitives/workflow-instance.d.ts +8 -8
- package/dist/primitives/workflow-instance.d.ts.map +1 -1
- package/dist/primitives/workflow-step.d.ts +4 -4
- package/dist/primitives/workflow-step.d.ts.map +1 -1
- package/dist/primitives/workflow-utils.d.ts +5 -5
- package/dist/primitives/workflow-utils.d.ts.map +1 -1
- package/dist/primitives/workflow.d.ts +13 -13
- package/dist/primitives/workflow.d.ts.map +1 -1
- package/dist/runtime/actions.d.ts +2 -2
- package/dist/runtime/actions.d.ts.map +1 -1
- package/dist/runtime/adk.d.ts +7 -7
- package/dist/runtime/adk.d.ts.map +1 -1
- package/dist/runtime/agent-registry.d.ts +1 -1
- package/dist/runtime/agent-registry.d.ts.map +1 -1
- package/dist/runtime/assets.d.ts.map +1 -1
- package/dist/runtime/autonomous.d.ts +16 -16
- package/dist/runtime/autonomous.d.ts.map +1 -1
- package/dist/runtime/chat/chat.d.ts +4 -4
- package/dist/runtime/chat/chat.d.ts.map +1 -1
- package/dist/runtime/chat/citations.d.ts +1 -1
- package/dist/runtime/chat/citations.d.ts.map +1 -1
- package/dist/runtime/chat/components.d.ts +21 -21
- package/dist/runtime/chat/components.d.ts.map +1 -1
- package/dist/runtime/chat/html.d.ts.map +1 -1
- package/dist/runtime/chat/index.d.ts +4 -4
- package/dist/runtime/chat/index.d.ts.map +1 -1
- package/dist/runtime/chat/messages.d.ts +2 -2
- package/dist/runtime/chat/messages.d.ts.map +1 -1
- package/dist/runtime/chat/transcript.d.ts +5 -5
- package/dist/runtime/chat/transcript.d.ts.map +1 -1
- package/dist/runtime/chat/truncate-object.d.ts.map +1 -1
- package/dist/runtime/chat/truncate-transcript.d.ts +1 -1
- package/dist/runtime/chat/truncate-transcript.d.ts.map +1 -1
- package/dist/runtime/config.d.ts.map +1 -1
- package/dist/runtime/context/cognitive.d.ts +1 -1
- package/dist/runtime/context/cognitive.d.ts.map +1 -1
- package/dist/runtime/context/context.d.ts +10 -10
- package/dist/runtime/context/context.d.ts.map +1 -1
- package/dist/runtime/context/handlers.d.ts +5 -5
- package/dist/runtime/context/handlers.d.ts.map +1 -1
- package/dist/runtime/context/http.d.ts +4 -4
- package/dist/runtime/context/http.d.ts.map +1 -1
- package/dist/runtime/context/inspector-handler.d.ts.map +1 -1
- package/dist/runtime/context/promises.d.ts.map +1 -1
- package/dist/runtime/events.d.ts.map +1 -1
- package/dist/runtime/handlers/conversation-matching.d.ts.map +1 -1
- package/dist/runtime/handlers/conversation.d.ts +1 -1
- package/dist/runtime/handlers/conversation.d.ts.map +1 -1
- package/dist/runtime/handlers/event.d.ts +1 -1
- package/dist/runtime/handlers/event.d.ts.map +1 -1
- package/dist/runtime/handlers/index.d.ts +4 -4
- package/dist/runtime/handlers/index.d.ts.map +1 -1
- package/dist/runtime/handlers/trigger.d.ts +1 -1
- package/dist/runtime/handlers/trigger.d.ts.map +1 -1
- package/dist/runtime/handlers/workflow.d.ts +1 -1
- package/dist/runtime/handlers/workflow.d.ts.map +1 -1
- package/dist/runtime/heavy-imports.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/interfaces.d.ts.map +1 -1
- package/dist/runtime/singletons.d.ts.map +1 -1
- package/dist/runtime/state.d.ts +1 -1
- package/dist/runtime/state.d.ts.map +1 -1
- package/dist/runtime/tracked-state-schema.d.ts.map +1 -1
- package/dist/runtime/tracked-state.d.ts +5 -5
- package/dist/runtime/tracked-state.d.ts.map +1 -1
- package/dist/runtime/workflows/index.d.ts +1 -1
- package/dist/runtime/workflows/index.d.ts.map +1 -1
- package/dist/runtime/workflows/knowledge-indexing.d.ts +1 -1
- package/dist/runtime/workflows/knowledge-indexing.d.ts.map +1 -1
- package/dist/runtime.d.ts +13 -13
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +230 -666
- package/dist/runtime.js.map +2 -2
- package/dist/telemetry/context-manager.d.ts +2 -2
- package/dist/telemetry/context-manager.d.ts.map +1 -1
- package/dist/telemetry/file-exporter.d.ts +1 -1
- package/dist/telemetry/file-exporter.d.ts.map +1 -1
- package/dist/telemetry/instrument-http.d.ts +1 -1
- package/dist/telemetry/instrument-http.d.ts.map +1 -1
- package/dist/telemetry/live-file-processor.d.ts +2 -2
- package/dist/telemetry/live-file-processor.d.ts.map +1 -1
- package/dist/telemetry/span-helpers.d.ts +8 -8
- package/dist/telemetry/span-helpers.d.ts.map +1 -1
- package/dist/telemetry/spans/factory.d.ts +11 -11
- package/dist/telemetry/spans/factory.d.ts.map +1 -1
- package/dist/telemetry/spans/index.d.ts +98 -98
- package/dist/telemetry/spans/index.d.ts.map +1 -1
- package/dist/telemetry/spans/well-known-attributes.d.ts +5 -5
- package/dist/telemetry/spans/well-known-attributes.d.ts.map +1 -1
- package/dist/telemetry/structured-logging.d.ts.map +1 -1
- package/dist/telemetry/tracing.d.ts +3 -3
- package/dist/telemetry/tracing.d.ts.map +1 -1
- package/dist/telemetry/utils.d.ts +1 -1
- package/dist/telemetry/utils.d.ts.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.d.ts +4 -4
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +9 -76
- package/dist/ui.js.map +2 -2
- package/dist/utilities/abort-signal.d.ts.map +1 -1
- package/dist/utilities/events.d.ts +2 -2
- package/dist/utilities/events.d.ts.map +1 -1
- package/dist/utilities/promises.d.ts.map +1 -1
- package/dist/utilities/size.d.ts.map +1 -1
- package/dist/utilities/strings.d.ts.map +1 -1
- package/dist/utilities/trigger-tags.d.ts.map +1 -1
- package/dist/utilities/types.d.ts.map +1 -1
- package/dist/workers/dev_worker.d.ts +1 -1
- package/dist/workers/dev_worker.d.ts.map +1 -1
- package/dist/workers/index.d.ts +3 -3
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/parent_worker.d.ts +1 -1
- package/dist/workers/parent_worker.d.ts.map +1 -1
- package/dist/workers/worker_pool.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetSpanType } from
|
|
2
|
-
type Name = Spans[
|
|
1
|
+
import { GetSpanType } from './factory';
|
|
2
|
+
type Name = Spans['name'];
|
|
3
3
|
export type SpanOf<T extends Name> = Extract<Spans, {
|
|
4
4
|
name: T;
|
|
5
5
|
}>;
|
|
@@ -11,26 +11,26 @@ export declare const Spans: {
|
|
|
11
11
|
readonly name: "request.incoming";
|
|
12
12
|
readonly importance: "high";
|
|
13
13
|
readonly attributes: {
|
|
14
|
-
readonly
|
|
14
|
+
readonly 'request.operation': {
|
|
15
15
|
readonly type: "enum";
|
|
16
16
|
readonly enum: readonly ["register", "event_received", "ping", "action_triggered"];
|
|
17
17
|
readonly description: "The operation being performed";
|
|
18
18
|
readonly title: "Operation";
|
|
19
19
|
readonly required: true;
|
|
20
20
|
};
|
|
21
|
-
readonly
|
|
21
|
+
readonly 'request.type': {
|
|
22
22
|
readonly type: "string";
|
|
23
23
|
readonly description: "The request type (e.g., message_created)";
|
|
24
24
|
readonly title: "Request Type";
|
|
25
25
|
};
|
|
26
|
-
readonly
|
|
26
|
+
readonly 'request.method': {
|
|
27
27
|
readonly type: "enum";
|
|
28
28
|
readonly enum: readonly ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"];
|
|
29
29
|
readonly description: "The HTTP method";
|
|
30
30
|
readonly title: "HTTP Method";
|
|
31
31
|
readonly required: true;
|
|
32
32
|
};
|
|
33
|
-
readonly
|
|
33
|
+
readonly 'request.path': {
|
|
34
34
|
readonly type: "string";
|
|
35
35
|
readonly description: "The request path";
|
|
36
36
|
readonly title: "Request Path";
|
|
@@ -47,23 +47,23 @@ export declare const Spans: {
|
|
|
47
47
|
readonly description: "The webhook ID if applicable";
|
|
48
48
|
readonly title: "Webhook ID";
|
|
49
49
|
};
|
|
50
|
-
readonly
|
|
50
|
+
readonly 'memory.rss': {
|
|
51
51
|
readonly type: "number";
|
|
52
52
|
readonly description: "The resident set size memory usage in bytes";
|
|
53
53
|
readonly title: "Memory RSS (bytes)";
|
|
54
54
|
};
|
|
55
|
-
readonly
|
|
55
|
+
readonly 'memory.heapTotal': {
|
|
56
56
|
readonly type: "number";
|
|
57
57
|
readonly description: "The total heap size memory usage in bytes";
|
|
58
58
|
readonly title: "Memory Heap Total (bytes)";
|
|
59
59
|
};
|
|
60
|
-
readonly
|
|
60
|
+
readonly 'cpu.count': {
|
|
61
61
|
readonly type: "number";
|
|
62
62
|
readonly description: "The number of CPU cores";
|
|
63
63
|
readonly title: "CPU Count";
|
|
64
64
|
readonly required: true;
|
|
65
65
|
};
|
|
66
|
-
readonly
|
|
66
|
+
readonly 'requests.total': {
|
|
67
67
|
readonly type: "number";
|
|
68
68
|
readonly description: "The total number of requests handled by the process";
|
|
69
69
|
readonly title: "Total Requests";
|
|
@@ -75,92 +75,92 @@ export declare const Spans: {
|
|
|
75
75
|
readonly name: "cognitive.request";
|
|
76
76
|
readonly importance: "high";
|
|
77
77
|
readonly attributes: {
|
|
78
|
-
readonly
|
|
78
|
+
readonly 'ai.model': {
|
|
79
79
|
readonly type: "string";
|
|
80
80
|
readonly description: "The AI model used for the request";
|
|
81
81
|
readonly title: "AI Model";
|
|
82
82
|
};
|
|
83
|
-
readonly
|
|
83
|
+
readonly 'ai.provider': {
|
|
84
84
|
readonly type: "string";
|
|
85
85
|
readonly description: "The AI provider used for the request";
|
|
86
86
|
readonly title: "AI Provider";
|
|
87
87
|
};
|
|
88
|
-
readonly
|
|
88
|
+
readonly 'ai.temperature': {
|
|
89
89
|
readonly type: "number";
|
|
90
90
|
readonly description: "The temperature setting for the AI model";
|
|
91
91
|
readonly title: "AI Temperature";
|
|
92
92
|
};
|
|
93
|
-
readonly
|
|
93
|
+
readonly 'ai.max_tokens': {
|
|
94
94
|
readonly type: "number";
|
|
95
95
|
readonly description: "The maximum number of tokens to generate";
|
|
96
96
|
readonly title: "AI Max Tokens";
|
|
97
97
|
};
|
|
98
|
-
readonly
|
|
98
|
+
readonly 'ai.top_p': {
|
|
99
99
|
readonly type: "number";
|
|
100
100
|
readonly description: "The top_p (nucleus sampling) parameter";
|
|
101
101
|
readonly title: "AI Top P";
|
|
102
102
|
};
|
|
103
|
-
readonly
|
|
103
|
+
readonly 'ai.system_length': {
|
|
104
104
|
readonly type: "number";
|
|
105
105
|
readonly description: "The length of the system prompt in characters";
|
|
106
106
|
readonly title: "AI System Prompt Length";
|
|
107
107
|
};
|
|
108
|
-
readonly
|
|
108
|
+
readonly 'ai.messages_count': {
|
|
109
109
|
readonly type: "number";
|
|
110
110
|
readonly description: "The number of messages in the conversation";
|
|
111
111
|
readonly title: "AI Messages Count";
|
|
112
112
|
};
|
|
113
|
-
readonly
|
|
113
|
+
readonly 'ai.input_length': {
|
|
114
114
|
readonly type: "number";
|
|
115
115
|
readonly description: "The total length of input messages in characters";
|
|
116
116
|
readonly title: "AI Input Length";
|
|
117
117
|
};
|
|
118
|
-
readonly
|
|
118
|
+
readonly 'ai.input_tokens': {
|
|
119
119
|
readonly type: "number";
|
|
120
120
|
readonly description: "The number of input tokens used for the request";
|
|
121
121
|
readonly title: "AI Input Tokens";
|
|
122
122
|
};
|
|
123
|
-
readonly
|
|
123
|
+
readonly 'ai.output_tokens': {
|
|
124
124
|
readonly type: "number";
|
|
125
125
|
readonly description: "The number of output tokens used for the request";
|
|
126
126
|
readonly title: "AI Output Tokens";
|
|
127
127
|
};
|
|
128
|
-
readonly
|
|
128
|
+
readonly 'ai.cost_input': {
|
|
129
129
|
readonly type: "number";
|
|
130
130
|
readonly description: "The cost of input tokens in USD";
|
|
131
131
|
readonly title: "AI Input Cost (USD)";
|
|
132
132
|
};
|
|
133
|
-
readonly
|
|
133
|
+
readonly 'ai.cost_output': {
|
|
134
134
|
readonly type: "number";
|
|
135
135
|
readonly description: "The cost of output tokens in USD";
|
|
136
136
|
readonly title: "AI Output Cost (USD)";
|
|
137
137
|
};
|
|
138
|
-
readonly
|
|
138
|
+
readonly 'ai.cost': {
|
|
139
139
|
readonly type: "number";
|
|
140
140
|
readonly description: "The total cost of the request in USD";
|
|
141
141
|
readonly title: "AI Cost (USD)";
|
|
142
142
|
};
|
|
143
|
-
readonly
|
|
143
|
+
readonly 'ai.cached': {
|
|
144
144
|
readonly type: "boolean";
|
|
145
145
|
readonly description: "Whether the response was served from cache";
|
|
146
146
|
readonly title: "AI Cached";
|
|
147
147
|
};
|
|
148
|
-
readonly
|
|
148
|
+
readonly 'ai.prompt_category': {
|
|
149
149
|
readonly type: "string";
|
|
150
150
|
readonly description: "The category of the prompt";
|
|
151
151
|
readonly title: "AI Prompt Category";
|
|
152
152
|
};
|
|
153
|
-
readonly
|
|
153
|
+
readonly 'ai.prompt_source': {
|
|
154
154
|
readonly type: "string";
|
|
155
155
|
readonly description: "The source of the prompt";
|
|
156
156
|
readonly title: "AI Prompt Source";
|
|
157
157
|
};
|
|
158
|
-
readonly
|
|
158
|
+
readonly 'ai.instructions': {
|
|
159
159
|
readonly type: "string";
|
|
160
160
|
readonly description: "The system prompt/instructions for the AI model";
|
|
161
161
|
readonly title: "AI Instructions";
|
|
162
162
|
};
|
|
163
|
-
readonly
|
|
163
|
+
readonly 'ai.tools': {
|
|
164
164
|
readonly type: "json";
|
|
165
165
|
readonly description: "The tools available to the AI model";
|
|
166
166
|
readonly title: "AI Tools";
|
|
@@ -171,42 +171,42 @@ export declare const Spans: {
|
|
|
171
171
|
readonly name: "http.client";
|
|
172
172
|
readonly importance: "medium";
|
|
173
173
|
readonly attributes: {
|
|
174
|
-
readonly
|
|
174
|
+
readonly 'http.method': {
|
|
175
175
|
readonly type: "enum";
|
|
176
176
|
readonly enum: readonly ["GET", "POST", "PUT", "OPTIONS", "DELETE"];
|
|
177
177
|
readonly required: true;
|
|
178
178
|
};
|
|
179
|
-
readonly
|
|
179
|
+
readonly 'http.url': {
|
|
180
180
|
readonly type: "string";
|
|
181
181
|
readonly required: true;
|
|
182
182
|
};
|
|
183
|
-
readonly
|
|
183
|
+
readonly 'http.query': {
|
|
184
184
|
readonly type: "json";
|
|
185
185
|
};
|
|
186
|
-
readonly
|
|
186
|
+
readonly 'http.request.headers': {
|
|
187
187
|
readonly type: "json";
|
|
188
188
|
};
|
|
189
|
-
readonly
|
|
189
|
+
readonly 'http.response.headers': {
|
|
190
190
|
readonly type: "json";
|
|
191
191
|
};
|
|
192
|
-
readonly
|
|
192
|
+
readonly 'http.request.body': {
|
|
193
193
|
readonly type: "string";
|
|
194
194
|
};
|
|
195
|
-
readonly
|
|
195
|
+
readonly 'http.response.body': {
|
|
196
196
|
readonly type: "string";
|
|
197
197
|
};
|
|
198
|
-
readonly
|
|
198
|
+
readonly 'http.status_code': {
|
|
199
199
|
readonly type: "number";
|
|
200
200
|
};
|
|
201
|
-
readonly
|
|
201
|
+
readonly 'http.error': {
|
|
202
202
|
readonly type: "string";
|
|
203
203
|
};
|
|
204
|
-
readonly
|
|
204
|
+
readonly 'http.via': {
|
|
205
205
|
readonly type: "enum";
|
|
206
206
|
readonly enum: readonly ["http", "undici"];
|
|
207
207
|
readonly required: true;
|
|
208
208
|
};
|
|
209
|
-
readonly
|
|
209
|
+
readonly 'trace.traceparent': {
|
|
210
210
|
readonly type: "string";
|
|
211
211
|
};
|
|
212
212
|
};
|
|
@@ -241,39 +241,39 @@ export declare const Spans: {
|
|
|
241
241
|
readonly description: "The message attached to the event/message of the execution";
|
|
242
242
|
readonly title: "Message ID";
|
|
243
243
|
};
|
|
244
|
-
readonly
|
|
244
|
+
readonly 'action.name': {
|
|
245
245
|
readonly type: "string";
|
|
246
246
|
readonly description: "The name of the action being called";
|
|
247
247
|
readonly title: "Action Name";
|
|
248
248
|
};
|
|
249
|
-
readonly
|
|
249
|
+
readonly 'botpress.method': {
|
|
250
250
|
readonly type: "enum";
|
|
251
251
|
readonly enum: readonly ["GET", "POST", "PUT", "OPTIONS", "DELETE"];
|
|
252
252
|
readonly required: true;
|
|
253
253
|
};
|
|
254
|
-
readonly
|
|
254
|
+
readonly 'botpress.url': {
|
|
255
255
|
readonly type: "string";
|
|
256
256
|
};
|
|
257
|
-
readonly
|
|
257
|
+
readonly 'botpress.status_code': {
|
|
258
258
|
readonly type: "number";
|
|
259
259
|
readonly default: "";
|
|
260
260
|
};
|
|
261
|
-
readonly
|
|
261
|
+
readonly 'botpress.duration_ms': {
|
|
262
262
|
readonly type: "number";
|
|
263
263
|
};
|
|
264
|
-
readonly
|
|
264
|
+
readonly 'botpress.error': {
|
|
265
265
|
readonly type: "string";
|
|
266
266
|
};
|
|
267
|
-
readonly
|
|
267
|
+
readonly 'botpress.via': {
|
|
268
268
|
readonly type: "string";
|
|
269
269
|
};
|
|
270
|
-
readonly
|
|
270
|
+
readonly 'botpress.request.body': {
|
|
271
271
|
readonly type: "string";
|
|
272
272
|
};
|
|
273
|
-
readonly
|
|
273
|
+
readonly 'botpress.response.body': {
|
|
274
274
|
readonly type: "string";
|
|
275
275
|
};
|
|
276
|
-
readonly
|
|
276
|
+
readonly 'trace.traceparent': {
|
|
277
277
|
readonly type: "string";
|
|
278
278
|
};
|
|
279
279
|
};
|
|
@@ -292,17 +292,17 @@ export declare const Spans: {
|
|
|
292
292
|
readonly description: "The message attached to the event/message of the execution";
|
|
293
293
|
readonly title: "Message ID";
|
|
294
294
|
};
|
|
295
|
-
readonly
|
|
295
|
+
readonly 'message.type': {
|
|
296
296
|
readonly type: "string";
|
|
297
297
|
readonly description: "The type of the message received";
|
|
298
298
|
readonly title: "Message Type";
|
|
299
299
|
};
|
|
300
|
-
readonly
|
|
300
|
+
readonly 'event.payload': {
|
|
301
301
|
readonly type: "json";
|
|
302
302
|
readonly description: "The payload of the event received";
|
|
303
303
|
readonly title: "Event Payload";
|
|
304
304
|
};
|
|
305
|
-
readonly
|
|
305
|
+
readonly 'message.payload': {
|
|
306
306
|
readonly type: "json";
|
|
307
307
|
readonly description: "The payload of the message received";
|
|
308
308
|
readonly title: "Message Payload";
|
|
@@ -329,7 +329,7 @@ export declare const Spans: {
|
|
|
329
329
|
}, "required"> & {
|
|
330
330
|
required: true;
|
|
331
331
|
};
|
|
332
|
-
readonly
|
|
332
|
+
readonly 'event.type': Omit<{
|
|
333
333
|
readonly type: "string";
|
|
334
334
|
readonly description: "The type of the event the execution is part of";
|
|
335
335
|
readonly title: "Event Type";
|
|
@@ -406,7 +406,7 @@ export declare const Spans: {
|
|
|
406
406
|
}, "required"> & {
|
|
407
407
|
required: true;
|
|
408
408
|
};
|
|
409
|
-
readonly
|
|
409
|
+
readonly 'event.type': Omit<{
|
|
410
410
|
readonly type: "string";
|
|
411
411
|
readonly description: "The type of the event the execution is part of";
|
|
412
412
|
readonly title: "Event Type";
|
|
@@ -419,14 +419,14 @@ export declare const Spans: {
|
|
|
419
419
|
readonly name: "handler.workflow";
|
|
420
420
|
readonly importance: "high";
|
|
421
421
|
readonly attributes: {
|
|
422
|
-
readonly
|
|
422
|
+
readonly 'workflow.name': {
|
|
423
423
|
readonly type: "string";
|
|
424
424
|
};
|
|
425
|
-
readonly
|
|
425
|
+
readonly 'workflow.status.initial': {
|
|
426
426
|
readonly type: "enum";
|
|
427
427
|
readonly enum: readonly ["pending", "in_progress", "listening", "paused", "completed", "failed", "timedout", "cancelled"];
|
|
428
428
|
};
|
|
429
|
-
readonly
|
|
429
|
+
readonly 'workflow.status.final': {
|
|
430
430
|
readonly type: "enum";
|
|
431
431
|
readonly enum: readonly ["continue", "completed", "failed"];
|
|
432
432
|
};
|
|
@@ -482,7 +482,7 @@ export declare const Spans: {
|
|
|
482
482
|
}, "required"> & {
|
|
483
483
|
required: true;
|
|
484
484
|
};
|
|
485
|
-
readonly
|
|
485
|
+
readonly 'event.type': Omit<{
|
|
486
486
|
readonly type: "string";
|
|
487
487
|
readonly description: "The type of the event the execution is part of";
|
|
488
488
|
readonly title: "Event Type";
|
|
@@ -495,25 +495,25 @@ export declare const Spans: {
|
|
|
495
495
|
readonly name: "handler.workflow.step";
|
|
496
496
|
readonly importance: "high";
|
|
497
497
|
readonly attributes: {
|
|
498
|
-
readonly
|
|
498
|
+
readonly 'workflow.step': {
|
|
499
499
|
readonly type: "string";
|
|
500
500
|
readonly required: true;
|
|
501
501
|
};
|
|
502
|
-
readonly
|
|
502
|
+
readonly 'workflow.step.type': {
|
|
503
503
|
readonly type: "string";
|
|
504
504
|
readonly required: true;
|
|
505
505
|
};
|
|
506
|
-
readonly
|
|
506
|
+
readonly 'workflow.step.attempt': {
|
|
507
507
|
readonly type: "number";
|
|
508
508
|
readonly required: true;
|
|
509
509
|
};
|
|
510
|
-
readonly
|
|
510
|
+
readonly 'workflow.step.output': {
|
|
511
511
|
readonly type: "json";
|
|
512
512
|
};
|
|
513
|
-
readonly
|
|
513
|
+
readonly 'workflow.step.max_attempts': {
|
|
514
514
|
readonly type: "number";
|
|
515
515
|
};
|
|
516
|
-
readonly
|
|
516
|
+
readonly 'workflow.step.error': {
|
|
517
517
|
readonly type: "string";
|
|
518
518
|
};
|
|
519
519
|
readonly workflowId: Omit<{
|
|
@@ -529,11 +529,11 @@ export declare const Spans: {
|
|
|
529
529
|
readonly name: "handler.action";
|
|
530
530
|
readonly importance: "high";
|
|
531
531
|
readonly attributes: {
|
|
532
|
-
readonly
|
|
532
|
+
readonly 'action.name': {
|
|
533
533
|
readonly type: "string";
|
|
534
534
|
readonly required: true;
|
|
535
535
|
};
|
|
536
|
-
readonly
|
|
536
|
+
readonly 'action.input': {
|
|
537
537
|
readonly type: "json";
|
|
538
538
|
readonly required: true;
|
|
539
539
|
};
|
|
@@ -589,7 +589,7 @@ export declare const Spans: {
|
|
|
589
589
|
}, "required"> & {
|
|
590
590
|
required: true;
|
|
591
591
|
};
|
|
592
|
-
readonly
|
|
592
|
+
readonly 'event.type': Omit<{
|
|
593
593
|
readonly type: "string";
|
|
594
594
|
readonly description: "The type of the event the execution is part of";
|
|
595
595
|
readonly title: "Event Type";
|
|
@@ -652,7 +652,7 @@ export declare const Spans: {
|
|
|
652
652
|
}, "required"> & {
|
|
653
653
|
required: true;
|
|
654
654
|
};
|
|
655
|
-
readonly
|
|
655
|
+
readonly 'event.type': Omit<{
|
|
656
656
|
readonly type: "string";
|
|
657
657
|
readonly description: "The type of the event the execution is part of";
|
|
658
658
|
readonly title: "Event Type";
|
|
@@ -665,30 +665,30 @@ export declare const Spans: {
|
|
|
665
665
|
readonly name: "autonomous.execution";
|
|
666
666
|
readonly importance: "high";
|
|
667
667
|
readonly attributes: {
|
|
668
|
-
readonly
|
|
668
|
+
readonly 'autonomous.max_loops': {
|
|
669
669
|
readonly type: "number";
|
|
670
670
|
readonly title: "Max Loops";
|
|
671
671
|
readonly description: "The maximum number of loops allowed";
|
|
672
672
|
readonly required: true;
|
|
673
673
|
};
|
|
674
|
-
readonly
|
|
674
|
+
readonly 'autonomous.mode': {
|
|
675
675
|
readonly type: "enum";
|
|
676
676
|
readonly title: "Mode";
|
|
677
677
|
readonly description: "The mode LLMz is running in (chat or worker)";
|
|
678
678
|
readonly enum: readonly ["chat", "worker"];
|
|
679
679
|
readonly required: true;
|
|
680
680
|
};
|
|
681
|
-
readonly
|
|
681
|
+
readonly 'autonomous.message_types': {
|
|
682
682
|
readonly type: "json";
|
|
683
683
|
readonly title: "Message Types";
|
|
684
684
|
readonly description: "The types of messages LLMz can send";
|
|
685
685
|
};
|
|
686
|
-
readonly
|
|
686
|
+
readonly 'autonomous.iterations': {
|
|
687
687
|
readonly type: "number";
|
|
688
688
|
readonly title: "Iterations";
|
|
689
689
|
readonly description: "The number of iterations performed";
|
|
690
690
|
};
|
|
691
|
-
readonly
|
|
691
|
+
readonly 'autonomous.execution_id': {
|
|
692
692
|
readonly type: "string";
|
|
693
693
|
readonly title: "Execution ID";
|
|
694
694
|
readonly description: "The unique ID for this execution";
|
|
@@ -699,69 +699,69 @@ export declare const Spans: {
|
|
|
699
699
|
readonly name: "autonomous.iteration";
|
|
700
700
|
readonly importance: "high";
|
|
701
701
|
readonly attributes: {
|
|
702
|
-
readonly
|
|
702
|
+
readonly 'autonomous.iteration': {
|
|
703
703
|
readonly type: "number";
|
|
704
704
|
readonly title: "Iteration";
|
|
705
705
|
readonly description: "The current iteration number";
|
|
706
706
|
readonly required: true;
|
|
707
707
|
};
|
|
708
|
-
readonly
|
|
708
|
+
readonly 'autonomous.instructions': {
|
|
709
709
|
readonly type: "string";
|
|
710
710
|
readonly title: "Instructions";
|
|
711
711
|
readonly description: "The instructions provided to the agent";
|
|
712
712
|
};
|
|
713
|
-
readonly
|
|
713
|
+
readonly 'autonomous.exits': {
|
|
714
714
|
readonly type: "json";
|
|
715
715
|
readonly title: "Exits";
|
|
716
716
|
readonly description: "The possible exit points for the agent";
|
|
717
717
|
};
|
|
718
|
-
readonly
|
|
718
|
+
readonly 'autonomous.code': {
|
|
719
719
|
readonly type: "string";
|
|
720
720
|
readonly title: "Code";
|
|
721
721
|
readonly description: "The code generated in this iteration";
|
|
722
722
|
};
|
|
723
|
-
readonly
|
|
723
|
+
readonly 'autonomous.tools': {
|
|
724
724
|
readonly type: "json";
|
|
725
725
|
readonly title: "Tools";
|
|
726
726
|
readonly description: "The tools available to the agent";
|
|
727
727
|
};
|
|
728
|
-
readonly
|
|
728
|
+
readonly 'autonomous.thoughts': {
|
|
729
729
|
readonly type: "string";
|
|
730
730
|
readonly title: "Thoughts";
|
|
731
731
|
readonly description: "The thoughts generated in this iteration";
|
|
732
732
|
};
|
|
733
|
-
readonly
|
|
733
|
+
readonly 'autonomous.status': {
|
|
734
734
|
readonly type: "enum";
|
|
735
735
|
readonly enum: ["pending", "generation_error", "execution_error", "invalid_code_error", "thinking_requested", "callback_requested", "exit_success", "exit_error", "aborted"];
|
|
736
736
|
readonly title: "Error Type";
|
|
737
737
|
readonly description: "The type of error encountered, if any";
|
|
738
738
|
};
|
|
739
|
-
readonly
|
|
739
|
+
readonly 'autonomous.error': {
|
|
740
740
|
readonly type: "string";
|
|
741
741
|
readonly title: "Error Message";
|
|
742
742
|
readonly description: "The error message, if any";
|
|
743
743
|
};
|
|
744
|
-
readonly
|
|
744
|
+
readonly 'autonomous.exit.name': {
|
|
745
745
|
readonly type: "string";
|
|
746
746
|
readonly title: "Exit Name";
|
|
747
747
|
readonly description: "The name of the exit point if exiting";
|
|
748
748
|
};
|
|
749
|
-
readonly
|
|
749
|
+
readonly 'autonomous.exit.value': {
|
|
750
750
|
readonly type: "json";
|
|
751
751
|
readonly title: "Exit Value";
|
|
752
752
|
readonly description: "The value returned upon exit";
|
|
753
753
|
};
|
|
754
|
-
readonly
|
|
754
|
+
readonly 'ai.model': {
|
|
755
755
|
readonly type: "string";
|
|
756
756
|
readonly title: "AI Model";
|
|
757
757
|
readonly description: "The AI model used for this iteration";
|
|
758
758
|
};
|
|
759
|
-
readonly
|
|
759
|
+
readonly 'ai.tokens': {
|
|
760
760
|
readonly type: "number";
|
|
761
761
|
readonly title: "Input Tokens";
|
|
762
762
|
readonly description: "Number of input tokens used";
|
|
763
763
|
};
|
|
764
|
-
readonly
|
|
764
|
+
readonly 'ai.cost': {
|
|
765
765
|
readonly type: "number";
|
|
766
766
|
readonly title: "Cost";
|
|
767
767
|
readonly description: "Total cost of this iteration in USD";
|
|
@@ -772,35 +772,35 @@ export declare const Spans: {
|
|
|
772
772
|
readonly name: "autonomous.tool";
|
|
773
773
|
readonly importance: "high";
|
|
774
774
|
readonly attributes: {
|
|
775
|
-
readonly
|
|
775
|
+
readonly 'autonomous.tool.object': {
|
|
776
776
|
readonly type: "string";
|
|
777
777
|
readonly title: "Object Name";
|
|
778
778
|
readonly description: "The name of the object being used";
|
|
779
779
|
readonly required: false;
|
|
780
780
|
};
|
|
781
|
-
readonly
|
|
781
|
+
readonly 'autonomous.tool.name': {
|
|
782
782
|
readonly type: "string";
|
|
783
783
|
readonly title: "Tool Name";
|
|
784
784
|
readonly description: "The name of the tool being used";
|
|
785
785
|
readonly required: true;
|
|
786
786
|
};
|
|
787
|
-
readonly
|
|
787
|
+
readonly 'autonomous.tool.input': {
|
|
788
788
|
readonly type: "json";
|
|
789
789
|
readonly title: "Tool Input";
|
|
790
790
|
readonly description: "The input provided to the tool";
|
|
791
791
|
};
|
|
792
|
-
readonly
|
|
792
|
+
readonly 'autonomous.tool.output': {
|
|
793
793
|
readonly type: "json";
|
|
794
794
|
readonly title: "Tool Output";
|
|
795
795
|
readonly description: "The output returned by the tool";
|
|
796
796
|
};
|
|
797
|
-
readonly
|
|
797
|
+
readonly 'autonomous.tool.status': {
|
|
798
798
|
readonly type: "enum";
|
|
799
799
|
readonly enum: readonly ["think", "success", "error"];
|
|
800
800
|
readonly title: "Tool Status";
|
|
801
801
|
readonly description: "The status of the tool execution";
|
|
802
802
|
};
|
|
803
|
-
readonly
|
|
803
|
+
readonly 'autonomous.tool.error': {
|
|
804
804
|
readonly type: "string";
|
|
805
805
|
readonly title: "Tool Error";
|
|
806
806
|
readonly description: "The error message if the tool failed";
|
|
@@ -811,17 +811,17 @@ export declare const Spans: {
|
|
|
811
811
|
readonly name: "interruption.check";
|
|
812
812
|
readonly importance: "medium";
|
|
813
813
|
readonly attributes: {
|
|
814
|
-
readonly
|
|
814
|
+
readonly 'interruption.detected': {
|
|
815
815
|
readonly type: "boolean";
|
|
816
816
|
readonly title: "Interruption Detected";
|
|
817
817
|
readonly description: "Whether an interruption was detected";
|
|
818
818
|
};
|
|
819
|
-
readonly
|
|
819
|
+
readonly 'interruption.events_count': {
|
|
820
820
|
readonly type: "number";
|
|
821
821
|
readonly title: "New Events Count";
|
|
822
822
|
readonly description: "The number of new events detected";
|
|
823
823
|
};
|
|
824
|
-
readonly
|
|
824
|
+
readonly 'interruption.event_ids': {
|
|
825
825
|
readonly type: "json";
|
|
826
826
|
readonly title: "New Event IDs";
|
|
827
827
|
readonly description: "The IDs of the new events that caused the interruption";
|
|
@@ -882,7 +882,7 @@ export declare const Spans: {
|
|
|
882
882
|
readonly name: "chat.sendMessage";
|
|
883
883
|
readonly importance: "high";
|
|
884
884
|
readonly attributes: {
|
|
885
|
-
readonly
|
|
885
|
+
readonly 'message.type': {
|
|
886
886
|
readonly type: "string";
|
|
887
887
|
readonly description: "The type of message being sent";
|
|
888
888
|
readonly title: "Message Type";
|
|
@@ -1010,6 +1010,6 @@ export declare const Spans: {
|
|
|
1010
1010
|
readonly attributes: {};
|
|
1011
1011
|
};
|
|
1012
1012
|
};
|
|
1013
|
-
export type { WellKnownAttributeName } from
|
|
1014
|
-
export type { SpanImportanceLevel } from
|
|
1013
|
+
export type { WellKnownAttributeName } from './well-known-attributes';
|
|
1014
|
+
export type { SpanImportanceLevel } from './factory';
|
|
1015
1015
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telemetry/spans/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAsC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telemetry/spans/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAsC,MAAM,WAAW,CAAA;AAE3E,KAAK,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;AACzB,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,CAAA;AAChE,MAAM,MAAM,KAAK,GAAG;KACjB,CAAC,IAAI,MAAM,OAAO,KAAK,GAAG,WAAW,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1D,CAAC,MAAM,OAAO,KAAK,CAAC,CAAA;AAglBrB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBR,CAAA;AAGV,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AACrE,YAAY,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -39,12 +39,12 @@ export declare const WellKnownAttributes: {
|
|
|
39
39
|
readonly description: "The parent workflow the execution is part of";
|
|
40
40
|
readonly title: "Parent Workflow ID";
|
|
41
41
|
};
|
|
42
|
-
readonly
|
|
42
|
+
readonly 'event.type': {
|
|
43
43
|
readonly type: "string";
|
|
44
44
|
readonly description: "The type of the event the execution is part of";
|
|
45
45
|
readonly title: "Event Type";
|
|
46
46
|
};
|
|
47
|
-
readonly
|
|
47
|
+
readonly 'message.type': {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
readonly description: "The type of the message received";
|
|
50
50
|
readonly title: "Message Type";
|
|
@@ -59,17 +59,17 @@ export declare const WellKnownAttributes: {
|
|
|
59
59
|
readonly description: "The integration channel originating the event";
|
|
60
60
|
readonly title: "Channel";
|
|
61
61
|
};
|
|
62
|
-
readonly
|
|
62
|
+
readonly 'action.name': {
|
|
63
63
|
readonly type: "string";
|
|
64
64
|
readonly description: "The name of the action being called";
|
|
65
65
|
readonly title: "Action Name";
|
|
66
66
|
};
|
|
67
|
-
readonly
|
|
67
|
+
readonly 'event.payload': {
|
|
68
68
|
readonly type: "json";
|
|
69
69
|
readonly description: "The payload of the event received";
|
|
70
70
|
readonly title: "Event Payload";
|
|
71
71
|
};
|
|
72
|
-
readonly
|
|
72
|
+
readonly 'message.payload': {
|
|
73
73
|
readonly type: "json";
|
|
74
74
|
readonly description: "The payload of the message received";
|
|
75
75
|
readonly title: "Message Payload";
|