@inkeep/agents-core 0.0.0-dev-20251031191607 → 0.0.0-dev-20251031210350
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/{chunk-E5SNN43B.js → chunk-5EDDDVYT.js} +52 -1
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +322 -322
- package/dist/index.d.ts +322 -322
- package/dist/index.js +2 -2
- package/dist/{schema-BWDgXp-e.d.ts → schema-DfnCgRwo.d.ts} +1 -1
- package/dist/{schema-uPzoiY7F.d.cts → schema-DgEdaA4i.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs +60 -0
- package/dist/validation/index.d.cts +123 -3
- package/dist/validation/index.d.ts +123 -3
- package/dist/validation/index.js +1 -1
- package/package.json +1 -1
- package/dist/{utility-fD4C61M4.d.ts → utility-eADYCyd-.d.cts} +266 -266
- package/dist/{utility-fD4C61M4.d.cts → utility-eADYCyd-.d.ts} +266 -266
|
@@ -339,5 +339,56 @@ function validateRender(render) {
|
|
|
339
339
|
errors
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
|
+
var TextStartEventSchema = z.object({
|
|
343
|
+
type: z.literal("text-start"),
|
|
344
|
+
id: z.string()
|
|
345
|
+
});
|
|
346
|
+
var TextDeltaEventSchema = z.object({
|
|
347
|
+
type: z.literal("text-delta"),
|
|
348
|
+
id: z.string(),
|
|
349
|
+
delta: z.string()
|
|
350
|
+
});
|
|
351
|
+
var TextEndEventSchema = z.object({
|
|
352
|
+
type: z.literal("text-end"),
|
|
353
|
+
id: z.string()
|
|
354
|
+
});
|
|
355
|
+
var DataComponentStreamEventSchema = z.object({
|
|
356
|
+
type: z.literal("data-component"),
|
|
357
|
+
id: z.string(),
|
|
358
|
+
data: z.any()
|
|
359
|
+
});
|
|
360
|
+
var DataOperationStreamEventSchema = z.object({
|
|
361
|
+
type: z.literal("data-operation"),
|
|
362
|
+
data: z.any()
|
|
363
|
+
// Contains OperationEvent types (AgentInitializingEvent, CompletionEvent, etc.)
|
|
364
|
+
});
|
|
365
|
+
var DataSummaryStreamEventSchema = z.object({
|
|
366
|
+
type: z.literal("data-summary"),
|
|
367
|
+
data: z.any()
|
|
368
|
+
// Contains SummaryEvent from entities.ts
|
|
369
|
+
});
|
|
370
|
+
var StreamErrorEventSchema = z.object({
|
|
371
|
+
type: z.literal("error"),
|
|
372
|
+
error: z.string()
|
|
373
|
+
});
|
|
374
|
+
var StreamFinishEventSchema = z.object({
|
|
375
|
+
type: z.literal("finish"),
|
|
376
|
+
finishReason: z.string().optional(),
|
|
377
|
+
usage: z.object({
|
|
378
|
+
promptTokens: z.number().optional(),
|
|
379
|
+
completionTokens: z.number().optional(),
|
|
380
|
+
totalTokens: z.number().optional()
|
|
381
|
+
}).optional()
|
|
382
|
+
});
|
|
383
|
+
var StreamEventSchema = z.discriminatedUnion("type", [
|
|
384
|
+
TextStartEventSchema,
|
|
385
|
+
TextDeltaEventSchema,
|
|
386
|
+
TextEndEventSchema,
|
|
387
|
+
DataComponentStreamEventSchema,
|
|
388
|
+
DataOperationStreamEventSchema,
|
|
389
|
+
DataSummaryStreamEventSchema,
|
|
390
|
+
StreamErrorEventSchema,
|
|
391
|
+
StreamFinishEventSchema
|
|
392
|
+
]);
|
|
342
393
|
|
|
343
|
-
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
|
|
394
|
+
export { A2AMessageMetadataSchema, DataComponentStreamEventSchema, DataOperationDetailsSchema, DataOperationEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-DtO-n2WD.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-eADYCyd-.cjs';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-eADYCyd-.cjs';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,11 +170,12 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
201
|
-
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-DtO-n2WD.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-eADYCyd-.js';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-eADYCyd-.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,11 +170,12 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
201
|
-
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-eADYCyd-.cjs';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DgEdaA4i.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-eADYCyd-.js';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DfnCgRwo.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -226461,6 +226461,57 @@ function generateIdFromName(name) {
|
|
|
226461
226461
|
}
|
|
226462
226462
|
return truncatedId;
|
|
226463
226463
|
}
|
|
226464
|
+
var TextStartEventSchema = zod.z.object({
|
|
226465
|
+
type: zod.z.literal("text-start"),
|
|
226466
|
+
id: zod.z.string()
|
|
226467
|
+
});
|
|
226468
|
+
var TextDeltaEventSchema = zod.z.object({
|
|
226469
|
+
type: zod.z.literal("text-delta"),
|
|
226470
|
+
id: zod.z.string(),
|
|
226471
|
+
delta: zod.z.string()
|
|
226472
|
+
});
|
|
226473
|
+
var TextEndEventSchema = zod.z.object({
|
|
226474
|
+
type: zod.z.literal("text-end"),
|
|
226475
|
+
id: zod.z.string()
|
|
226476
|
+
});
|
|
226477
|
+
var DataComponentStreamEventSchema = zod.z.object({
|
|
226478
|
+
type: zod.z.literal("data-component"),
|
|
226479
|
+
id: zod.z.string(),
|
|
226480
|
+
data: zod.z.any()
|
|
226481
|
+
});
|
|
226482
|
+
var DataOperationStreamEventSchema = zod.z.object({
|
|
226483
|
+
type: zod.z.literal("data-operation"),
|
|
226484
|
+
data: zod.z.any()
|
|
226485
|
+
// Contains OperationEvent types (AgentInitializingEvent, CompletionEvent, etc.)
|
|
226486
|
+
});
|
|
226487
|
+
var DataSummaryStreamEventSchema = zod.z.object({
|
|
226488
|
+
type: zod.z.literal("data-summary"),
|
|
226489
|
+
data: zod.z.any()
|
|
226490
|
+
// Contains SummaryEvent from entities.ts
|
|
226491
|
+
});
|
|
226492
|
+
var StreamErrorEventSchema = zod.z.object({
|
|
226493
|
+
type: zod.z.literal("error"),
|
|
226494
|
+
error: zod.z.string()
|
|
226495
|
+
});
|
|
226496
|
+
var StreamFinishEventSchema = zod.z.object({
|
|
226497
|
+
type: zod.z.literal("finish"),
|
|
226498
|
+
finishReason: zod.z.string().optional(),
|
|
226499
|
+
usage: zod.z.object({
|
|
226500
|
+
promptTokens: zod.z.number().optional(),
|
|
226501
|
+
completionTokens: zod.z.number().optional(),
|
|
226502
|
+
totalTokens: zod.z.number().optional()
|
|
226503
|
+
}).optional()
|
|
226504
|
+
});
|
|
226505
|
+
var StreamEventSchema = zod.z.discriminatedUnion("type", [
|
|
226506
|
+
TextStartEventSchema,
|
|
226507
|
+
TextDeltaEventSchema,
|
|
226508
|
+
TextEndEventSchema,
|
|
226509
|
+
DataComponentStreamEventSchema,
|
|
226510
|
+
DataOperationStreamEventSchema,
|
|
226511
|
+
DataSummaryStreamEventSchema,
|
|
226512
|
+
StreamErrorEventSchema,
|
|
226513
|
+
StreamFinishEventSchema
|
|
226514
|
+
]);
|
|
226464
226515
|
/*! Bundled license information:
|
|
226465
226516
|
|
|
226466
226517
|
typescript/lib/typescript.js:
|
|
@@ -226568,9 +226619,12 @@ exports.DataComponentInsertSchema = DataComponentInsertSchema;
|
|
|
226568
226619
|
exports.DataComponentListResponse = DataComponentListResponse;
|
|
226569
226620
|
exports.DataComponentResponse = DataComponentResponse;
|
|
226570
226621
|
exports.DataComponentSelectSchema = DataComponentSelectSchema;
|
|
226622
|
+
exports.DataComponentStreamEventSchema = DataComponentStreamEventSchema;
|
|
226571
226623
|
exports.DataComponentUpdateSchema = DataComponentUpdateSchema;
|
|
226572
226624
|
exports.DataOperationDetailsSchema = DataOperationDetailsSchema;
|
|
226573
226625
|
exports.DataOperationEventSchema = DataOperationEventSchema;
|
|
226626
|
+
exports.DataOperationStreamEventSchema = DataOperationStreamEventSchema;
|
|
226627
|
+
exports.DataSummaryStreamEventSchema = DataSummaryStreamEventSchema;
|
|
226574
226628
|
exports.DelegationReturnedDataSchema = DelegationReturnedDataSchema;
|
|
226575
226629
|
exports.DelegationSentDataSchema = DelegationSentDataSchema;
|
|
226576
226630
|
exports.ERROR_DOCS_BASE_URL = ERROR_DOCS_BASE_URL;
|
|
@@ -226669,6 +226723,9 @@ exports.SingleResponseSchema = SingleResponseSchema;
|
|
|
226669
226723
|
exports.StatusComponentSchema = StatusComponentSchema;
|
|
226670
226724
|
exports.StatusUpdateSchema = StatusUpdateSchema;
|
|
226671
226725
|
exports.StopWhenSchema = StopWhenSchema;
|
|
226726
|
+
exports.StreamErrorEventSchema = StreamErrorEventSchema;
|
|
226727
|
+
exports.StreamEventSchema = StreamEventSchema;
|
|
226728
|
+
exports.StreamFinishEventSchema = StreamFinishEventSchema;
|
|
226672
226729
|
exports.SubAgentApiInsertSchema = SubAgentApiInsertSchema;
|
|
226673
226730
|
exports.SubAgentApiSelectSchema = SubAgentApiSelectSchema;
|
|
226674
226731
|
exports.SubAgentApiUpdateSchema = SubAgentApiUpdateSchema;
|
|
@@ -226749,6 +226806,9 @@ exports.TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentIdP
|
|
|
226749
226806
|
exports.TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentSubAgentParamsSchema;
|
|
226750
226807
|
exports.TenantProjectIdParamsSchema = TenantProjectIdParamsSchema;
|
|
226751
226808
|
exports.TenantProjectParamsSchema = TenantProjectParamsSchema;
|
|
226809
|
+
exports.TextDeltaEventSchema = TextDeltaEventSchema;
|
|
226810
|
+
exports.TextEndEventSchema = TextEndEventSchema;
|
|
226811
|
+
exports.TextStartEventSchema = TextStartEventSchema;
|
|
226752
226812
|
exports.ToolApiInsertSchema = ToolApiInsertSchema;
|
|
226753
226813
|
exports.ToolApiSelectSchema = ToolApiSelectSchema;
|
|
226754
226814
|
exports.ToolApiUpdateSchema = ToolApiUpdateSchema;
|