@dexto/server 1.6.17 → 1.6.18
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/hono/__tests__/test-fixtures.cjs +3 -2
- package/dist/hono/__tests__/test-fixtures.d.ts +6 -2
- package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
- package/dist/hono/__tests__/test-fixtures.js +3 -2
- package/dist/hono/index.d.ts +92 -5
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/routes/messages.d.ts +1 -1
- package/dist/hono/routes/search.d.ts +2 -2
- package/dist/hono/routes/sessions.cjs +198 -2
- package/dist/hono/routes/sessions.d.ts +88 -1
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +202 -3
- package/dist/hono/routes/system-prompt.d.ts +1 -1
- package/dist/hono/schemas/responses.d.ts +26 -26
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAehE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAwF9C,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAowBxD"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
DextoRuntimeError,
|
|
4
|
+
ErrorScope,
|
|
5
|
+
ErrorType,
|
|
6
|
+
zodToIssues
|
|
4
7
|
} from "@dexto/core";
|
|
5
8
|
import {
|
|
6
9
|
SessionMetadataSchema,
|
|
@@ -9,9 +12,33 @@ import {
|
|
|
9
12
|
StandardErrorEnvelopeSchema,
|
|
10
13
|
UsageSummarySchema
|
|
11
14
|
} from "../schemas/responses.js";
|
|
15
|
+
import { handleHonoError } from "../middleware/error.js";
|
|
12
16
|
const CreateSessionSchema = z.object({
|
|
13
17
|
sessionId: z.string().optional().describe("A custom ID for the new session")
|
|
14
18
|
}).describe("Request body for creating a new session");
|
|
19
|
+
const MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS = 12e4;
|
|
20
|
+
const DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY = 45;
|
|
21
|
+
const SessionPromptContributorInfoSchema = z.object({
|
|
22
|
+
id: z.string().describe("Contributor identifier"),
|
|
23
|
+
priority: z.number().describe("Contributor priority")
|
|
24
|
+
}).strict().describe("Session-scoped system prompt contributor metadata.");
|
|
25
|
+
const UpsertSessionPromptContributorSchema = z.object({
|
|
26
|
+
id: z.string().min(1).describe("Contributor identifier"),
|
|
27
|
+
priority: z.number().int().nonnegative().optional().default(DEFAULT_SYSTEM_PROMPT_CONTRIBUTOR_PRIORITY).describe("Optional priority override"),
|
|
28
|
+
enabled: z.boolean().default(true).describe("Set false to remove the contributor instead of adding or updating it"),
|
|
29
|
+
content: z.string().optional().describe("Static contributor content for this session (required when enabled)")
|
|
30
|
+
}).strict().superRefine((value, ctx) => {
|
|
31
|
+
if (value.enabled !== false && (!value.content || value.content.trim().length === 0)) {
|
|
32
|
+
ctx.addIssue({
|
|
33
|
+
code: z.ZodIssueCode.custom,
|
|
34
|
+
path: ["content"],
|
|
35
|
+
message: "Contributor content is required when enabled"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}).describe("Session-scoped system prompt contributor update payload.");
|
|
39
|
+
function sanitizeContributorId(value) {
|
|
40
|
+
return value.trim().replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 80);
|
|
41
|
+
}
|
|
15
42
|
function mapSessionMetadata(sessionId, metadata, defaults) {
|
|
16
43
|
return {
|
|
17
44
|
id: sessionId,
|
|
@@ -30,7 +57,24 @@ function mapSessionMetadata(sessionId, metadata, defaults) {
|
|
|
30
57
|
};
|
|
31
58
|
}
|
|
32
59
|
function createSessionsRouter(getAgent) {
|
|
33
|
-
const app = new OpenAPIHono(
|
|
60
|
+
const app = new OpenAPIHono({
|
|
61
|
+
defaultHook: (result, ctx) => {
|
|
62
|
+
if (!result.success) {
|
|
63
|
+
const issues = zodToIssues(result.error);
|
|
64
|
+
return handleHonoError(
|
|
65
|
+
ctx,
|
|
66
|
+
new DextoRuntimeError(
|
|
67
|
+
"validation_failed",
|
|
68
|
+
"validation",
|
|
69
|
+
ErrorType.USER,
|
|
70
|
+
issues[0]?.message ?? "Validation failed",
|
|
71
|
+
{ issues }
|
|
72
|
+
)
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
app.onError((err, ctx) => handleHonoError(ctx, err));
|
|
34
78
|
const listRoute = createRoute({
|
|
35
79
|
method: "get",
|
|
36
80
|
path: "/sessions",
|
|
@@ -159,6 +203,86 @@ function createSessionsRouter(getAgent) {
|
|
|
159
203
|
}
|
|
160
204
|
}
|
|
161
205
|
});
|
|
206
|
+
const listSessionPromptContributorsRoute = createRoute({
|
|
207
|
+
method: "get",
|
|
208
|
+
path: "/sessions/{sessionId}/system-prompt/contributors",
|
|
209
|
+
summary: "List Session System Prompt Contributors",
|
|
210
|
+
description: "Lists static system prompt contributors that apply only to the specified session.",
|
|
211
|
+
tags: ["sessions", "config"],
|
|
212
|
+
request: { params: z.object({ sessionId: z.string().describe("Session identifier") }) },
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
description: "Current session contributor list",
|
|
216
|
+
content: {
|
|
217
|
+
"application/json": {
|
|
218
|
+
schema: z.object({
|
|
219
|
+
contributors: z.array(SessionPromptContributorInfoSchema).describe("Registered session prompt contributors.")
|
|
220
|
+
}).strict()
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
404: {
|
|
225
|
+
description: "Session not found",
|
|
226
|
+
content: {
|
|
227
|
+
"application/json": {
|
|
228
|
+
schema: StandardErrorEnvelopeSchema
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
const upsertSessionPromptContributorRoute = createRoute({
|
|
235
|
+
method: "post",
|
|
236
|
+
path: "/sessions/{sessionId}/system-prompt/contributors",
|
|
237
|
+
summary: "Upsert Session System Prompt Contributor",
|
|
238
|
+
description: "Adds or updates a static system prompt contributor that applies only to the specified session. Set enabled=false to remove it.",
|
|
239
|
+
tags: ["sessions", "config"],
|
|
240
|
+
request: {
|
|
241
|
+
params: z.object({ sessionId: z.string().describe("Session identifier") }),
|
|
242
|
+
body: {
|
|
243
|
+
required: true,
|
|
244
|
+
content: {
|
|
245
|
+
"application/json": {
|
|
246
|
+
schema: UpsertSessionPromptContributorSchema
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
responses: {
|
|
252
|
+
200: {
|
|
253
|
+
description: "Session contributor upsert result",
|
|
254
|
+
content: {
|
|
255
|
+
"application/json": {
|
|
256
|
+
schema: z.object({
|
|
257
|
+
id: z.string().describe("Contributor identifier"),
|
|
258
|
+
enabled: z.boolean().describe("Whether the contributor remains enabled"),
|
|
259
|
+
priority: z.number().optional().describe("Contributor priority"),
|
|
260
|
+
replaced: z.boolean().optional().describe("Whether an existing contributor was replaced"),
|
|
261
|
+
removed: z.boolean().optional().describe("Whether the contributor was removed"),
|
|
262
|
+
contentLength: z.number().optional().describe("Stored content length in characters"),
|
|
263
|
+
truncated: z.boolean().optional().describe("Whether the submitted content was truncated")
|
|
264
|
+
}).strict()
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
400: {
|
|
269
|
+
description: "Invalid session contributor request",
|
|
270
|
+
content: {
|
|
271
|
+
"application/json": {
|
|
272
|
+
schema: StandardErrorEnvelopeSchema
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
404: {
|
|
277
|
+
description: "Session not found",
|
|
278
|
+
content: {
|
|
279
|
+
"application/json": {
|
|
280
|
+
schema: StandardErrorEnvelopeSchema
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
});
|
|
162
286
|
const deleteRoute = createRoute({
|
|
163
287
|
method: "delete",
|
|
164
288
|
path: "/sessions/{sessionId}",
|
|
@@ -405,6 +529,81 @@ function createSessionsRouter(getAgent) {
|
|
|
405
529
|
history,
|
|
406
530
|
isBusy
|
|
407
531
|
});
|
|
532
|
+
}).openapi(listSessionPromptContributorsRoute, async (ctx) => {
|
|
533
|
+
const agent = await getAgent(ctx);
|
|
534
|
+
const { sessionId } = ctx.req.valid("param");
|
|
535
|
+
const contributors = await agent.getSessionSystemPromptContributors(sessionId);
|
|
536
|
+
return ctx.json(
|
|
537
|
+
{
|
|
538
|
+
contributors: contributors.map((contributor) => ({
|
|
539
|
+
id: contributor.id,
|
|
540
|
+
priority: contributor.priority
|
|
541
|
+
}))
|
|
542
|
+
},
|
|
543
|
+
200
|
|
544
|
+
);
|
|
545
|
+
}).openapi(upsertSessionPromptContributorRoute, async (ctx) => {
|
|
546
|
+
const agent = await getAgent(ctx);
|
|
547
|
+
const { sessionId } = ctx.req.valid("param");
|
|
548
|
+
const payload = ctx.req.valid("json");
|
|
549
|
+
const contributorId = sanitizeContributorId(payload.id);
|
|
550
|
+
if (contributorId.length === 0) {
|
|
551
|
+
throw new DextoRuntimeError(
|
|
552
|
+
"session_systemprompt_contributor_config_invalid",
|
|
553
|
+
ErrorScope.SYSTEM_PROMPT,
|
|
554
|
+
ErrorType.USER,
|
|
555
|
+
"A valid contributor id is required",
|
|
556
|
+
{
|
|
557
|
+
id: payload.id,
|
|
558
|
+
sessionId
|
|
559
|
+
}
|
|
560
|
+
);
|
|
561
|
+
}
|
|
562
|
+
const rawContent = payload.content ?? "";
|
|
563
|
+
const content = rawContent.slice(0, MAX_SYSTEM_PROMPT_CONTRIBUTOR_CONTENT_CHARS);
|
|
564
|
+
if (!payload.enabled) {
|
|
565
|
+
const removed = await agent.removeSessionSystemPromptContributor(
|
|
566
|
+
sessionId,
|
|
567
|
+
contributorId
|
|
568
|
+
);
|
|
569
|
+
return ctx.json(
|
|
570
|
+
{
|
|
571
|
+
id: contributorId,
|
|
572
|
+
enabled: false,
|
|
573
|
+
removed
|
|
574
|
+
},
|
|
575
|
+
200
|
|
576
|
+
);
|
|
577
|
+
}
|
|
578
|
+
if (content.trim().length === 0) {
|
|
579
|
+
throw new DextoRuntimeError(
|
|
580
|
+
"session_systemprompt_contributor_config_invalid",
|
|
581
|
+
ErrorScope.SYSTEM_PROMPT,
|
|
582
|
+
ErrorType.USER,
|
|
583
|
+
"Contributor content is required when enabled",
|
|
584
|
+
{
|
|
585
|
+
id: payload.id,
|
|
586
|
+
sessionId
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
const priority = payload.priority;
|
|
591
|
+
const result = await agent.upsertSessionSystemPromptContributor(sessionId, {
|
|
592
|
+
id: contributorId,
|
|
593
|
+
priority,
|
|
594
|
+
content
|
|
595
|
+
});
|
|
596
|
+
return ctx.json(
|
|
597
|
+
{
|
|
598
|
+
id: contributorId,
|
|
599
|
+
enabled: true,
|
|
600
|
+
priority,
|
|
601
|
+
replaced: result.replaced,
|
|
602
|
+
contentLength: content.length,
|
|
603
|
+
truncated: rawContent.length > content.length
|
|
604
|
+
},
|
|
605
|
+
200
|
|
606
|
+
);
|
|
408
607
|
}).openapi(deleteRoute, async (ctx) => {
|
|
409
608
|
const agent = await getAgent(ctx);
|
|
410
609
|
const { sessionId } = ctx.req.param();
|
|
@@ -449,7 +648,7 @@ function createSessionsRouter(getAgent) {
|
|
|
449
648
|
const metadata = await agent.getSessionMetadata(sessionId);
|
|
450
649
|
const isBusy = await agent.isSessionBusy(sessionId);
|
|
451
650
|
const usageSummary = await agent.getSessionUsageSummary(sessionId);
|
|
452
|
-
const activeUsageScopeId =
|
|
651
|
+
const activeUsageScopeId = agent.getEffectiveConfig().usageScopeId ?? null;
|
|
453
652
|
const activeUsageScope = activeUsageScopeId ? {
|
|
454
653
|
scopeId: activeUsageScopeId,
|
|
455
654
|
...await agent.getSessionUsageSummary(sessionId, activeUsageScopeId)
|
|
@@ -42,9 +42,9 @@ export declare function createSystemPromptRouter(getAgent: GetAgentFn): OpenAPIH
|
|
|
42
42
|
output: {
|
|
43
43
|
id: string;
|
|
44
44
|
enabled: boolean;
|
|
45
|
-
removed?: boolean | undefined;
|
|
46
45
|
priority?: number | undefined;
|
|
47
46
|
replaced?: boolean | undefined;
|
|
47
|
+
removed?: boolean | undefined;
|
|
48
48
|
contentLength?: number | undefined;
|
|
49
49
|
truncated?: boolean | undefined;
|
|
50
50
|
};
|
|
@@ -456,6 +456,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
456
456
|
} | undefined;
|
|
457
457
|
})[] | null;
|
|
458
458
|
role: "system" | "user" | "assistant" | "tool";
|
|
459
|
+
usageScopeId?: string | undefined;
|
|
459
460
|
id?: string | undefined;
|
|
460
461
|
name?: string | undefined;
|
|
461
462
|
timestamp?: number | undefined;
|
|
@@ -470,7 +471,6 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
470
471
|
} | undefined;
|
|
471
472
|
estimatedCost?: number | undefined;
|
|
472
473
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
473
|
-
usageScopeId?: string | undefined;
|
|
474
474
|
model?: string | undefined;
|
|
475
475
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
476
476
|
toolCalls?: {
|
|
@@ -511,6 +511,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
511
511
|
} | undefined;
|
|
512
512
|
})[] | null;
|
|
513
513
|
role: "system" | "user" | "assistant" | "tool";
|
|
514
|
+
usageScopeId?: string | undefined;
|
|
514
515
|
id?: string | undefined;
|
|
515
516
|
name?: string | undefined;
|
|
516
517
|
timestamp?: number | undefined;
|
|
@@ -525,7 +526,6 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
525
526
|
} | undefined;
|
|
526
527
|
estimatedCost?: number | undefined;
|
|
527
528
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
528
|
-
usageScopeId?: string | undefined;
|
|
529
529
|
model?: string | undefined;
|
|
530
530
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
531
531
|
toolCalls?: {
|
|
@@ -1496,6 +1496,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1496
1496
|
} | undefined;
|
|
1497
1497
|
})[] | null;
|
|
1498
1498
|
role: "system" | "user" | "assistant" | "tool";
|
|
1499
|
+
usageScopeId?: string | undefined;
|
|
1499
1500
|
id?: string | undefined;
|
|
1500
1501
|
name?: string | undefined;
|
|
1501
1502
|
timestamp?: number | undefined;
|
|
@@ -1510,7 +1511,6 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1510
1511
|
} | undefined;
|
|
1511
1512
|
estimatedCost?: number | undefined;
|
|
1512
1513
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1513
|
-
usageScopeId?: string | undefined;
|
|
1514
1514
|
model?: string | undefined;
|
|
1515
1515
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1516
1516
|
toolCalls?: {
|
|
@@ -1551,6 +1551,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1551
1551
|
} | undefined;
|
|
1552
1552
|
})[] | null;
|
|
1553
1553
|
role: "system" | "user" | "assistant" | "tool";
|
|
1554
|
+
usageScopeId?: string | undefined;
|
|
1554
1555
|
id?: string | undefined;
|
|
1555
1556
|
name?: string | undefined;
|
|
1556
1557
|
timestamp?: number | undefined;
|
|
@@ -1565,7 +1566,6 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1565
1566
|
} | undefined;
|
|
1566
1567
|
estimatedCost?: number | undefined;
|
|
1567
1568
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1568
|
-
usageScopeId?: string | undefined;
|
|
1569
1569
|
model?: string | undefined;
|
|
1570
1570
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1571
1571
|
toolCalls?: {
|
|
@@ -1611,6 +1611,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1611
1611
|
} | undefined;
|
|
1612
1612
|
})[] | null;
|
|
1613
1613
|
role: "system" | "user" | "assistant" | "tool";
|
|
1614
|
+
usageScopeId?: string | undefined;
|
|
1614
1615
|
id?: string | undefined;
|
|
1615
1616
|
name?: string | undefined;
|
|
1616
1617
|
timestamp?: number | undefined;
|
|
@@ -1625,7 +1626,6 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1625
1626
|
} | undefined;
|
|
1626
1627
|
estimatedCost?: number | undefined;
|
|
1627
1628
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1628
|
-
usageScopeId?: string | undefined;
|
|
1629
1629
|
model?: string | undefined;
|
|
1630
1630
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1631
1631
|
toolCalls?: {
|
|
@@ -1672,6 +1672,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1672
1672
|
} | undefined;
|
|
1673
1673
|
})[] | null;
|
|
1674
1674
|
role: "system" | "user" | "assistant" | "tool";
|
|
1675
|
+
usageScopeId?: string | undefined;
|
|
1675
1676
|
id?: string | undefined;
|
|
1676
1677
|
name?: string | undefined;
|
|
1677
1678
|
timestamp?: number | undefined;
|
|
@@ -1686,7 +1687,6 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
1686
1687
|
} | undefined;
|
|
1687
1688
|
estimatedCost?: number | undefined;
|
|
1688
1689
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1689
|
-
usageScopeId?: string | undefined;
|
|
1690
1690
|
model?: string | undefined;
|
|
1691
1691
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1692
1692
|
toolCalls?: {
|
|
@@ -1896,6 +1896,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1896
1896
|
} | undefined;
|
|
1897
1897
|
})[] | null;
|
|
1898
1898
|
role: "system" | "user" | "assistant" | "tool";
|
|
1899
|
+
usageScopeId?: string | undefined;
|
|
1899
1900
|
id?: string | undefined;
|
|
1900
1901
|
name?: string | undefined;
|
|
1901
1902
|
timestamp?: number | undefined;
|
|
@@ -1910,7 +1911,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1910
1911
|
} | undefined;
|
|
1911
1912
|
estimatedCost?: number | undefined;
|
|
1912
1913
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1913
|
-
usageScopeId?: string | undefined;
|
|
1914
1914
|
model?: string | undefined;
|
|
1915
1915
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1916
1916
|
toolCalls?: {
|
|
@@ -1951,6 +1951,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1951
1951
|
} | undefined;
|
|
1952
1952
|
})[] | null;
|
|
1953
1953
|
role: "system" | "user" | "assistant" | "tool";
|
|
1954
|
+
usageScopeId?: string | undefined;
|
|
1954
1955
|
id?: string | undefined;
|
|
1955
1956
|
name?: string | undefined;
|
|
1956
1957
|
timestamp?: number | undefined;
|
|
@@ -1965,7 +1966,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1965
1966
|
} | undefined;
|
|
1966
1967
|
estimatedCost?: number | undefined;
|
|
1967
1968
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
1968
|
-
usageScopeId?: string | undefined;
|
|
1969
1969
|
model?: string | undefined;
|
|
1970
1970
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
1971
1971
|
toolCalls?: {
|
|
@@ -2011,6 +2011,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2011
2011
|
} | undefined;
|
|
2012
2012
|
})[] | null;
|
|
2013
2013
|
role: "system" | "user" | "assistant" | "tool";
|
|
2014
|
+
usageScopeId?: string | undefined;
|
|
2014
2015
|
id?: string | undefined;
|
|
2015
2016
|
name?: string | undefined;
|
|
2016
2017
|
timestamp?: number | undefined;
|
|
@@ -2025,7 +2026,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2025
2026
|
} | undefined;
|
|
2026
2027
|
estimatedCost?: number | undefined;
|
|
2027
2028
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2028
|
-
usageScopeId?: string | undefined;
|
|
2029
2029
|
model?: string | undefined;
|
|
2030
2030
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2031
2031
|
toolCalls?: {
|
|
@@ -2072,6 +2072,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2072
2072
|
} | undefined;
|
|
2073
2073
|
})[] | null;
|
|
2074
2074
|
role: "system" | "user" | "assistant" | "tool";
|
|
2075
|
+
usageScopeId?: string | undefined;
|
|
2075
2076
|
id?: string | undefined;
|
|
2076
2077
|
name?: string | undefined;
|
|
2077
2078
|
timestamp?: number | undefined;
|
|
@@ -2086,7 +2087,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2086
2087
|
} | undefined;
|
|
2087
2088
|
estimatedCost?: number | undefined;
|
|
2088
2089
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2089
|
-
usageScopeId?: string | undefined;
|
|
2090
2090
|
model?: string | undefined;
|
|
2091
2091
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2092
2092
|
toolCalls?: {
|
|
@@ -2155,6 +2155,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2155
2155
|
} | undefined;
|
|
2156
2156
|
})[] | null;
|
|
2157
2157
|
role: "system" | "user" | "assistant" | "tool";
|
|
2158
|
+
usageScopeId?: string | undefined;
|
|
2158
2159
|
id?: string | undefined;
|
|
2159
2160
|
name?: string | undefined;
|
|
2160
2161
|
timestamp?: number | undefined;
|
|
@@ -2169,7 +2170,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2169
2170
|
} | undefined;
|
|
2170
2171
|
estimatedCost?: number | undefined;
|
|
2171
2172
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2172
|
-
usageScopeId?: string | undefined;
|
|
2173
2173
|
model?: string | undefined;
|
|
2174
2174
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2175
2175
|
toolCalls?: {
|
|
@@ -2225,6 +2225,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2225
2225
|
} | undefined;
|
|
2226
2226
|
})[] | null;
|
|
2227
2227
|
role: "system" | "user" | "assistant" | "tool";
|
|
2228
|
+
usageScopeId?: string | undefined;
|
|
2228
2229
|
id?: string | undefined;
|
|
2229
2230
|
name?: string | undefined;
|
|
2230
2231
|
timestamp?: number | undefined;
|
|
@@ -2239,7 +2240,6 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
2239
2240
|
} | undefined;
|
|
2240
2241
|
estimatedCost?: number | undefined;
|
|
2241
2242
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2242
|
-
usageScopeId?: string | undefined;
|
|
2243
2243
|
model?: string | undefined;
|
|
2244
2244
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2245
2245
|
toolCalls?: {
|
|
@@ -2448,6 +2448,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2448
2448
|
} | undefined;
|
|
2449
2449
|
})[] | null;
|
|
2450
2450
|
role: "system" | "user" | "assistant" | "tool";
|
|
2451
|
+
usageScopeId?: string | undefined;
|
|
2451
2452
|
id?: string | undefined;
|
|
2452
2453
|
name?: string | undefined;
|
|
2453
2454
|
timestamp?: number | undefined;
|
|
@@ -2462,7 +2463,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2462
2463
|
} | undefined;
|
|
2463
2464
|
estimatedCost?: number | undefined;
|
|
2464
2465
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2465
|
-
usageScopeId?: string | undefined;
|
|
2466
2466
|
model?: string | undefined;
|
|
2467
2467
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2468
2468
|
toolCalls?: {
|
|
@@ -2503,6 +2503,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2503
2503
|
} | undefined;
|
|
2504
2504
|
})[] | null;
|
|
2505
2505
|
role: "system" | "user" | "assistant" | "tool";
|
|
2506
|
+
usageScopeId?: string | undefined;
|
|
2506
2507
|
id?: string | undefined;
|
|
2507
2508
|
name?: string | undefined;
|
|
2508
2509
|
timestamp?: number | undefined;
|
|
@@ -2517,7 +2518,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2517
2518
|
} | undefined;
|
|
2518
2519
|
estimatedCost?: number | undefined;
|
|
2519
2520
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2520
|
-
usageScopeId?: string | undefined;
|
|
2521
2521
|
model?: string | undefined;
|
|
2522
2522
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2523
2523
|
toolCalls?: {
|
|
@@ -2563,6 +2563,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2563
2563
|
} | undefined;
|
|
2564
2564
|
})[] | null;
|
|
2565
2565
|
role: "system" | "user" | "assistant" | "tool";
|
|
2566
|
+
usageScopeId?: string | undefined;
|
|
2566
2567
|
id?: string | undefined;
|
|
2567
2568
|
name?: string | undefined;
|
|
2568
2569
|
timestamp?: number | undefined;
|
|
@@ -2577,7 +2578,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2577
2578
|
} | undefined;
|
|
2578
2579
|
estimatedCost?: number | undefined;
|
|
2579
2580
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2580
|
-
usageScopeId?: string | undefined;
|
|
2581
2581
|
model?: string | undefined;
|
|
2582
2582
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2583
2583
|
toolCalls?: {
|
|
@@ -2624,6 +2624,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2624
2624
|
} | undefined;
|
|
2625
2625
|
})[] | null;
|
|
2626
2626
|
role: "system" | "user" | "assistant" | "tool";
|
|
2627
|
+
usageScopeId?: string | undefined;
|
|
2627
2628
|
id?: string | undefined;
|
|
2628
2629
|
name?: string | undefined;
|
|
2629
2630
|
timestamp?: number | undefined;
|
|
@@ -2638,7 +2639,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2638
2639
|
} | undefined;
|
|
2639
2640
|
estimatedCost?: number | undefined;
|
|
2640
2641
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2641
|
-
usageScopeId?: string | undefined;
|
|
2642
2642
|
model?: string | undefined;
|
|
2643
2643
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2644
2644
|
toolCalls?: {
|
|
@@ -2691,6 +2691,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2691
2691
|
} | undefined;
|
|
2692
2692
|
})[] | null;
|
|
2693
2693
|
role: "system" | "user" | "assistant" | "tool";
|
|
2694
|
+
usageScopeId?: string | undefined;
|
|
2694
2695
|
id?: string | undefined;
|
|
2695
2696
|
name?: string | undefined;
|
|
2696
2697
|
timestamp?: number | undefined;
|
|
@@ -2705,7 +2706,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2705
2706
|
} | undefined;
|
|
2706
2707
|
estimatedCost?: number | undefined;
|
|
2707
2708
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2708
|
-
usageScopeId?: string | undefined;
|
|
2709
2709
|
model?: string | undefined;
|
|
2710
2710
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2711
2711
|
toolCalls?: {
|
|
@@ -2757,6 +2757,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2757
2757
|
} | undefined;
|
|
2758
2758
|
})[] | null;
|
|
2759
2759
|
role: "system" | "user" | "assistant" | "tool";
|
|
2760
|
+
usageScopeId?: string | undefined;
|
|
2760
2761
|
id?: string | undefined;
|
|
2761
2762
|
name?: string | undefined;
|
|
2762
2763
|
timestamp?: number | undefined;
|
|
@@ -2771,7 +2772,6 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
2771
2772
|
} | undefined;
|
|
2772
2773
|
estimatedCost?: number | undefined;
|
|
2773
2774
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2774
|
-
usageScopeId?: string | undefined;
|
|
2775
2775
|
model?: string | undefined;
|
|
2776
2776
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2777
2777
|
toolCalls?: {
|
|
@@ -2985,6 +2985,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2985
2985
|
} | undefined;
|
|
2986
2986
|
})[] | null;
|
|
2987
2987
|
role: "system" | "user" | "assistant" | "tool";
|
|
2988
|
+
usageScopeId?: string | undefined;
|
|
2988
2989
|
id?: string | undefined;
|
|
2989
2990
|
name?: string | undefined;
|
|
2990
2991
|
timestamp?: number | undefined;
|
|
@@ -2999,7 +3000,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2999
3000
|
} | undefined;
|
|
3000
3001
|
estimatedCost?: number | undefined;
|
|
3001
3002
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3002
|
-
usageScopeId?: string | undefined;
|
|
3003
3003
|
model?: string | undefined;
|
|
3004
3004
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3005
3005
|
toolCalls?: {
|
|
@@ -3040,6 +3040,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3040
3040
|
} | undefined;
|
|
3041
3041
|
})[] | null;
|
|
3042
3042
|
role: "system" | "user" | "assistant" | "tool";
|
|
3043
|
+
usageScopeId?: string | undefined;
|
|
3043
3044
|
id?: string | undefined;
|
|
3044
3045
|
name?: string | undefined;
|
|
3045
3046
|
timestamp?: number | undefined;
|
|
@@ -3054,7 +3055,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3054
3055
|
} | undefined;
|
|
3055
3056
|
estimatedCost?: number | undefined;
|
|
3056
3057
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3057
|
-
usageScopeId?: string | undefined;
|
|
3058
3058
|
model?: string | undefined;
|
|
3059
3059
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3060
3060
|
toolCalls?: {
|
|
@@ -3100,6 +3100,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3100
3100
|
} | undefined;
|
|
3101
3101
|
})[] | null;
|
|
3102
3102
|
role: "system" | "user" | "assistant" | "tool";
|
|
3103
|
+
usageScopeId?: string | undefined;
|
|
3103
3104
|
id?: string | undefined;
|
|
3104
3105
|
name?: string | undefined;
|
|
3105
3106
|
timestamp?: number | undefined;
|
|
@@ -3114,7 +3115,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3114
3115
|
} | undefined;
|
|
3115
3116
|
estimatedCost?: number | undefined;
|
|
3116
3117
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3117
|
-
usageScopeId?: string | undefined;
|
|
3118
3118
|
model?: string | undefined;
|
|
3119
3119
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3120
3120
|
toolCalls?: {
|
|
@@ -3161,6 +3161,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3161
3161
|
} | undefined;
|
|
3162
3162
|
})[] | null;
|
|
3163
3163
|
role: "system" | "user" | "assistant" | "tool";
|
|
3164
|
+
usageScopeId?: string | undefined;
|
|
3164
3165
|
id?: string | undefined;
|
|
3165
3166
|
name?: string | undefined;
|
|
3166
3167
|
timestamp?: number | undefined;
|
|
@@ -3175,7 +3176,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3175
3176
|
} | undefined;
|
|
3176
3177
|
estimatedCost?: number | undefined;
|
|
3177
3178
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3178
|
-
usageScopeId?: string | undefined;
|
|
3179
3179
|
model?: string | undefined;
|
|
3180
3180
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3181
3181
|
toolCalls?: {
|
|
@@ -3244,6 +3244,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3244
3244
|
} | undefined;
|
|
3245
3245
|
})[] | null;
|
|
3246
3246
|
role: "system" | "user" | "assistant" | "tool";
|
|
3247
|
+
usageScopeId?: string | undefined;
|
|
3247
3248
|
id?: string | undefined;
|
|
3248
3249
|
name?: string | undefined;
|
|
3249
3250
|
timestamp?: number | undefined;
|
|
@@ -3258,7 +3259,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3258
3259
|
} | undefined;
|
|
3259
3260
|
estimatedCost?: number | undefined;
|
|
3260
3261
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3261
|
-
usageScopeId?: string | undefined;
|
|
3262
3262
|
model?: string | undefined;
|
|
3263
3263
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3264
3264
|
toolCalls?: {
|
|
@@ -3314,6 +3314,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3314
3314
|
} | undefined;
|
|
3315
3315
|
})[] | null;
|
|
3316
3316
|
role: "system" | "user" | "assistant" | "tool";
|
|
3317
|
+
usageScopeId?: string | undefined;
|
|
3317
3318
|
id?: string | undefined;
|
|
3318
3319
|
name?: string | undefined;
|
|
3319
3320
|
timestamp?: number | undefined;
|
|
@@ -3328,7 +3329,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3328
3329
|
} | undefined;
|
|
3329
3330
|
estimatedCost?: number | undefined;
|
|
3330
3331
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3331
|
-
usageScopeId?: string | undefined;
|
|
3332
3332
|
model?: string | undefined;
|
|
3333
3333
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3334
3334
|
toolCalls?: {
|
|
@@ -3390,6 +3390,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3390
3390
|
} | undefined;
|
|
3391
3391
|
})[] | null;
|
|
3392
3392
|
role: "system" | "user" | "assistant" | "tool";
|
|
3393
|
+
usageScopeId?: string | undefined;
|
|
3393
3394
|
id?: string | undefined;
|
|
3394
3395
|
name?: string | undefined;
|
|
3395
3396
|
timestamp?: number | undefined;
|
|
@@ -3404,7 +3405,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3404
3405
|
} | undefined;
|
|
3405
3406
|
estimatedCost?: number | undefined;
|
|
3406
3407
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3407
|
-
usageScopeId?: string | undefined;
|
|
3408
3408
|
model?: string | undefined;
|
|
3409
3409
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3410
3410
|
toolCalls?: {
|
|
@@ -3465,6 +3465,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3465
3465
|
} | undefined;
|
|
3466
3466
|
})[] | null;
|
|
3467
3467
|
role: "system" | "user" | "assistant" | "tool";
|
|
3468
|
+
usageScopeId?: string | undefined;
|
|
3468
3469
|
id?: string | undefined;
|
|
3469
3470
|
name?: string | undefined;
|
|
3470
3471
|
timestamp?: number | undefined;
|
|
@@ -3479,7 +3480,6 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
3479
3480
|
} | undefined;
|
|
3480
3481
|
estimatedCost?: number | undefined;
|
|
3481
3482
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3482
|
-
usageScopeId?: string | undefined;
|
|
3483
3483
|
model?: string | undefined;
|
|
3484
3484
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3485
3485
|
toolCalls?: {
|