@dexto/server 1.4.0 → 1.5.1
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 +1 -1
- package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
- package/dist/hono/__tests__/test-fixtures.js +1 -1
- package/dist/hono/index.cjs +41 -5
- package/dist/hono/index.d.ts +470 -456
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/index.js +41 -5
- package/dist/hono/routes/a2a-jsonrpc.cjs +3 -3
- package/dist/hono/routes/a2a-jsonrpc.d.ts +4 -1
- package/dist/hono/routes/a2a-jsonrpc.d.ts.map +1 -1
- package/dist/hono/routes/a2a-jsonrpc.js +3 -3
- package/dist/hono/routes/a2a-tasks.cjs +5 -5
- package/dist/hono/routes/a2a-tasks.d.ts +13 -10
- package/dist/hono/routes/a2a-tasks.d.ts.map +1 -1
- package/dist/hono/routes/a2a-tasks.js +5 -5
- package/dist/hono/routes/agents.cjs +25 -35
- package/dist/hono/routes/agents.d.ts +6 -407
- package/dist/hono/routes/agents.d.ts.map +1 -1
- package/dist/hono/routes/agents.js +25 -35
- package/dist/hono/routes/approvals.cjs +2 -2
- package/dist/hono/routes/approvals.d.ts +4 -1
- package/dist/hono/routes/approvals.d.ts.map +1 -1
- package/dist/hono/routes/approvals.js +2 -2
- package/dist/hono/routes/discovery.cjs +68 -0
- package/dist/hono/routes/discovery.d.ts +53 -0
- package/dist/hono/routes/discovery.d.ts.map +1 -0
- package/dist/hono/routes/discovery.js +44 -0
- package/dist/hono/routes/greeting.cjs +2 -2
- package/dist/hono/routes/greeting.d.ts +2 -2
- package/dist/hono/routes/greeting.d.ts.map +1 -1
- package/dist/hono/routes/greeting.js +2 -2
- package/dist/hono/routes/health.d.ts +2 -2
- package/dist/hono/routes/health.d.ts.map +1 -1
- package/dist/hono/routes/key.cjs +110 -0
- package/dist/hono/routes/key.d.ts +48 -0
- package/dist/hono/routes/key.d.ts.map +1 -0
- package/dist/hono/routes/key.js +90 -0
- package/dist/hono/routes/llm.cjs +12 -34
- package/dist/hono/routes/llm.d.ts +179 -25
- package/dist/hono/routes/llm.d.ts.map +1 -1
- package/dist/hono/routes/llm.js +12 -35
- package/dist/hono/routes/mcp.cjs +8 -8
- package/dist/hono/routes/mcp.d.ts +2 -2
- package/dist/hono/routes/mcp.d.ts.map +1 -1
- package/dist/hono/routes/mcp.js +8 -8
- package/dist/hono/routes/memory.cjs +5 -5
- package/dist/hono/routes/memory.d.ts +8 -5
- package/dist/hono/routes/memory.d.ts.map +1 -1
- package/dist/hono/routes/memory.js +5 -5
- package/dist/hono/routes/messages.cjs +4 -4
- package/dist/hono/routes/messages.d.ts +12 -12
- package/dist/hono/routes/messages.d.ts.map +1 -1
- package/dist/hono/routes/messages.js +4 -4
- package/dist/hono/routes/models.cjs +319 -0
- package/dist/hono/routes/models.d.ts +107 -0
- package/dist/hono/routes/models.d.ts.map +1 -0
- package/dist/hono/routes/models.js +305 -0
- package/dist/hono/routes/openrouter.cjs +153 -0
- package/dist/hono/routes/openrouter.d.ts +54 -0
- package/dist/hono/routes/openrouter.d.ts.map +1 -0
- package/dist/hono/routes/openrouter.js +134 -0
- package/dist/hono/routes/prompts.cjs +5 -5
- package/dist/hono/routes/prompts.d.ts +4 -1
- package/dist/hono/routes/prompts.d.ts.map +1 -1
- package/dist/hono/routes/prompts.js +5 -5
- package/dist/hono/routes/queue.cjs +4 -4
- package/dist/hono/routes/queue.d.ts +4 -1
- package/dist/hono/routes/queue.d.ts.map +1 -1
- package/dist/hono/routes/queue.js +4 -4
- package/dist/hono/routes/resources.cjs +3 -3
- package/dist/hono/routes/resources.d.ts +2 -2
- package/dist/hono/routes/resources.d.ts.map +1 -1
- package/dist/hono/routes/resources.js +3 -3
- package/dist/hono/routes/search.cjs +2 -2
- package/dist/hono/routes/search.d.ts +6 -3
- package/dist/hono/routes/search.d.ts.map +1 -1
- package/dist/hono/routes/search.js +2 -2
- package/dist/hono/routes/sessions.cjs +9 -9
- package/dist/hono/routes/sessions.d.ts +3 -3
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +9 -9
- package/dist/hono/routes/tools.cjs +126 -0
- package/dist/hono/routes/tools.d.ts +42 -0
- package/dist/hono/routes/tools.d.ts.map +1 -0
- package/dist/hono/routes/tools.js +102 -0
- package/dist/hono/routes/webhooks.cjs +4 -4
- package/dist/hono/routes/webhooks.d.ts +4 -1
- package/dist/hono/routes/webhooks.d.ts.map +1 -1
- package/dist/hono/routes/webhooks.js +4 -4
- package/dist/hono/schemas/responses.d.ts +47 -41
- package/dist/hono/schemas/responses.d.ts.map +1 -1
- package/dist/hono/start-server.cjs +102 -0
- package/dist/hono/start-server.d.ts +61 -0
- package/dist/hono/start-server.d.ts.map +1 -0
- package/dist/hono/start-server.js +78 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
2
|
+
const JsonSchemaProperty = z.object({
|
|
3
|
+
type: z.enum(["string", "number", "integer", "boolean", "object", "array"]).optional().describe("Property type"),
|
|
4
|
+
description: z.string().optional().describe("Property description"),
|
|
5
|
+
enum: z.array(z.union([z.string(), z.number(), z.boolean()])).optional().describe("Enum values"),
|
|
6
|
+
default: z.any().optional().describe("Default value")
|
|
7
|
+
}).passthrough().describe("JSON Schema property definition");
|
|
8
|
+
const ToolInputSchema = z.object({
|
|
9
|
+
type: z.literal("object").optional().describe('Schema type, always "object" when present'),
|
|
10
|
+
properties: z.record(JsonSchemaProperty).optional().describe("Property definitions"),
|
|
11
|
+
required: z.array(z.string()).optional().describe("Required property names")
|
|
12
|
+
}).passthrough().describe("JSON Schema for tool input parameters");
|
|
13
|
+
const ToolInfoSchema = z.object({
|
|
14
|
+
id: z.string().describe("Tool identifier"),
|
|
15
|
+
name: z.string().describe("Tool name"),
|
|
16
|
+
description: z.string().describe("Tool description"),
|
|
17
|
+
source: z.enum(["internal", "custom", "mcp"]).describe("Source of the tool (internal, custom, or mcp)"),
|
|
18
|
+
serverName: z.string().optional().describe("MCP server name (if source is mcp)"),
|
|
19
|
+
inputSchema: ToolInputSchema.optional().describe("JSON Schema for tool input parameters")
|
|
20
|
+
}).strict().describe("Tool information");
|
|
21
|
+
const AllToolsResponseSchema = z.object({
|
|
22
|
+
tools: z.array(ToolInfoSchema).describe("Array of all available tools"),
|
|
23
|
+
totalCount: z.number().describe("Total number of tools"),
|
|
24
|
+
internalCount: z.number().describe("Number of internal tools"),
|
|
25
|
+
customCount: z.number().describe("Number of custom tools"),
|
|
26
|
+
mcpCount: z.number().describe("Number of MCP tools")
|
|
27
|
+
}).strict().describe("All available tools from all sources");
|
|
28
|
+
function createToolsRouter(getAgent) {
|
|
29
|
+
const app = new OpenAPIHono();
|
|
30
|
+
const allToolsRoute = createRoute({
|
|
31
|
+
method: "get",
|
|
32
|
+
path: "/tools",
|
|
33
|
+
summary: "List All Tools",
|
|
34
|
+
description: "Retrieves all available tools from all sources (internal, custom, and MCP servers)",
|
|
35
|
+
tags: ["tools"],
|
|
36
|
+
responses: {
|
|
37
|
+
200: {
|
|
38
|
+
description: "All tools",
|
|
39
|
+
content: { "application/json": { schema: AllToolsResponseSchema } }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return app.openapi(allToolsRoute, async (ctx) => {
|
|
44
|
+
const agent = await getAgent(ctx);
|
|
45
|
+
const allTools = await agent.getAllTools();
|
|
46
|
+
const mcpToolsWithServerInfo = agent.getAllMcpToolsWithServerInfo();
|
|
47
|
+
const toolList = [];
|
|
48
|
+
let internalCount = 0;
|
|
49
|
+
let customCount = 0;
|
|
50
|
+
let mcpCount = 0;
|
|
51
|
+
for (const [toolName, toolInfo] of Object.entries(allTools)) {
|
|
52
|
+
let source;
|
|
53
|
+
let serverName;
|
|
54
|
+
if (toolName.startsWith("mcp--")) {
|
|
55
|
+
const mcpToolName = toolName.substring(5);
|
|
56
|
+
const mcpToolInfo = mcpToolsWithServerInfo.get(mcpToolName);
|
|
57
|
+
if (mcpToolInfo) {
|
|
58
|
+
source = "mcp";
|
|
59
|
+
serverName = mcpToolInfo.serverName;
|
|
60
|
+
mcpCount++;
|
|
61
|
+
} else {
|
|
62
|
+
source = "mcp";
|
|
63
|
+
mcpCount++;
|
|
64
|
+
}
|
|
65
|
+
} else if (toolName.startsWith("internal--")) {
|
|
66
|
+
source = "internal";
|
|
67
|
+
internalCount++;
|
|
68
|
+
} else if (toolName.startsWith("custom--")) {
|
|
69
|
+
source = "custom";
|
|
70
|
+
customCount++;
|
|
71
|
+
} else {
|
|
72
|
+
source = "internal";
|
|
73
|
+
internalCount++;
|
|
74
|
+
}
|
|
75
|
+
toolList.push({
|
|
76
|
+
id: toolName,
|
|
77
|
+
name: toolName,
|
|
78
|
+
description: toolInfo.description || "No description available",
|
|
79
|
+
source,
|
|
80
|
+
serverName,
|
|
81
|
+
inputSchema: toolInfo.parameters
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
toolList.sort((a, b) => {
|
|
85
|
+
const sourceOrder = { internal: 0, custom: 1, mcp: 2 };
|
|
86
|
+
if (a.source !== b.source) {
|
|
87
|
+
return sourceOrder[a.source] - sourceOrder[b.source];
|
|
88
|
+
}
|
|
89
|
+
return a.name.localeCompare(b.name);
|
|
90
|
+
});
|
|
91
|
+
return ctx.json({
|
|
92
|
+
tools: toolList,
|
|
93
|
+
totalCount: toolList.length,
|
|
94
|
+
internalCount,
|
|
95
|
+
customCount,
|
|
96
|
+
mcpCount
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
createToolsRouter
|
|
102
|
+
};
|
|
@@ -148,7 +148,7 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
return app.openapi(registerRoute, async (ctx) => {
|
|
151
|
-
const agent = getAgent();
|
|
151
|
+
const agent = await getAgent(ctx);
|
|
152
152
|
const { url, secret, description } = ctx.req.valid("json");
|
|
153
153
|
const webhookId = `wh_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
154
154
|
const webhook = {
|
|
@@ -193,8 +193,8 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
193
193
|
createdAt: webhook.createdAt
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
}).openapi(deleteRoute, (ctx) => {
|
|
197
|
-
const agent = getAgent();
|
|
196
|
+
}).openapi(deleteRoute, async (ctx) => {
|
|
197
|
+
const agent = await getAgent(ctx);
|
|
198
198
|
const { webhookId } = ctx.req.valid("param");
|
|
199
199
|
const removed = webhookSubscriber.removeWebhook(webhookId);
|
|
200
200
|
if (!removed) {
|
|
@@ -203,7 +203,7 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
203
203
|
agent.logger.info(`Webhook removed: ${webhookId}`);
|
|
204
204
|
return ctx.json({ status: "removed", webhookId });
|
|
205
205
|
}).openapi(testRoute, async (ctx) => {
|
|
206
|
-
const agent = getAgent();
|
|
206
|
+
const agent = await getAgent(ctx);
|
|
207
207
|
const { webhookId } = ctx.req.valid("param");
|
|
208
208
|
const webhook = webhookSubscriber.getWebhook(webhookId);
|
|
209
209
|
if (!webhook) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OpenAPIHono } from '@hono/zod-openapi';
|
|
2
2
|
import type { DextoAgent } from '@dexto/core';
|
|
3
3
|
import { WebhookEventSubscriber } from '../../events/webhook-subscriber.js';
|
|
4
|
-
|
|
4
|
+
import type { Context } from 'hono';
|
|
5
|
+
type GetAgentFn = (ctx: Context) => DextoAgent | Promise<DextoAgent>;
|
|
6
|
+
export declare function createWebhooksRouter(getAgent: GetAgentFn, webhookSubscriber: WebhookEventSubscriber): OpenAPIHono<import("hono").Env, {
|
|
5
7
|
"/webhooks": {
|
|
6
8
|
$post: {
|
|
7
9
|
input: {
|
|
@@ -124,4 +126,5 @@ export declare function createWebhooksRouter(getAgent: () => DextoAgent, webhook
|
|
|
124
126
|
};
|
|
125
127
|
};
|
|
126
128
|
}, "/">;
|
|
129
|
+
export {};
|
|
127
130
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAkCrE,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,UAAU,EACpB,iBAAiB,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0N5C"}
|
|
@@ -125,7 +125,7 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
return app.openapi(registerRoute, async (ctx) => {
|
|
128
|
-
const agent = getAgent();
|
|
128
|
+
const agent = await getAgent(ctx);
|
|
129
129
|
const { url, secret, description } = ctx.req.valid("json");
|
|
130
130
|
const webhookId = `wh_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
131
131
|
const webhook = {
|
|
@@ -170,8 +170,8 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
170
170
|
createdAt: webhook.createdAt
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
}).openapi(deleteRoute, (ctx) => {
|
|
174
|
-
const agent = getAgent();
|
|
173
|
+
}).openapi(deleteRoute, async (ctx) => {
|
|
174
|
+
const agent = await getAgent(ctx);
|
|
175
175
|
const { webhookId } = ctx.req.valid("param");
|
|
176
176
|
const removed = webhookSubscriber.removeWebhook(webhookId);
|
|
177
177
|
if (!removed) {
|
|
@@ -180,7 +180,7 @@ function createWebhooksRouter(getAgent, webhookSubscriber) {
|
|
|
180
180
|
agent.logger.info(`Webhook removed: ${webhookId}`);
|
|
181
181
|
return ctx.json({ status: "removed", webhookId });
|
|
182
182
|
}).openapi(testRoute, async (ctx) => {
|
|
183
|
-
const agent = getAgent();
|
|
183
|
+
const agent = await getAgent(ctx);
|
|
184
184
|
const { webhookId } = ctx.req.valid("param");
|
|
185
185
|
const webhook = webhookSubscriber.getWebhook(webhookId);
|
|
186
186
|
if (!webhook) {
|
|
@@ -380,7 +380,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
380
380
|
totalTokens?: number | undefined;
|
|
381
381
|
}>>;
|
|
382
382
|
model: z.ZodOptional<z.ZodString>;
|
|
383
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
|
|
383
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
|
|
384
384
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
385
385
|
id: z.ZodString;
|
|
386
386
|
type: z.ZodLiteral<"function">;
|
|
@@ -451,7 +451,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
451
451
|
totalTokens?: number | undefined;
|
|
452
452
|
} | undefined;
|
|
453
453
|
model?: string | undefined;
|
|
454
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
454
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
455
455
|
toolCalls?: {
|
|
456
456
|
function: {
|
|
457
457
|
name: string;
|
|
@@ -501,7 +501,7 @@ export declare const InternalMessageSchema: z.ZodObject<{
|
|
|
501
501
|
totalTokens?: number | undefined;
|
|
502
502
|
} | undefined;
|
|
503
503
|
model?: string | undefined;
|
|
504
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
504
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
505
505
|
toolCalls?: {
|
|
506
506
|
function: {
|
|
507
507
|
name: string;
|
|
@@ -521,68 +521,74 @@ export type ToolCall = z.output<typeof ToolCallSchema>;
|
|
|
521
521
|
export type TokenUsage = z.output<typeof TokenUsageSchema>;
|
|
522
522
|
export type InternalMessage = z.output<typeof InternalMessageSchema>;
|
|
523
523
|
export declare const LLMConfigResponseSchema: z.ZodObject<Omit<{
|
|
524
|
-
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
|
|
524
|
+
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>;
|
|
525
525
|
model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
526
|
-
apiKey: z.ZodEffects<z.ZodString, string, string
|
|
526
|
+
apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
527
527
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
528
528
|
baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
|
|
529
529
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
530
530
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
531
531
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
532
532
|
allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
533
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
533
534
|
}, "apiKey"> & {
|
|
534
535
|
hasApiKey: z.ZodOptional<z.ZodBoolean>;
|
|
535
536
|
}, "strict", z.ZodTypeAny, {
|
|
536
537
|
model: string;
|
|
537
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
538
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
538
539
|
maxIterations: number;
|
|
539
540
|
baseURL?: string | undefined;
|
|
540
541
|
maxInputTokens?: number | undefined;
|
|
541
542
|
maxOutputTokens?: number | undefined;
|
|
542
543
|
temperature?: number | undefined;
|
|
543
544
|
allowedMediaTypes?: string[] | undefined;
|
|
545
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
544
546
|
hasApiKey?: boolean | undefined;
|
|
545
547
|
}, {
|
|
546
548
|
model: string;
|
|
547
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
549
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
548
550
|
maxIterations?: number | undefined;
|
|
549
551
|
baseURL?: string | undefined;
|
|
550
552
|
maxInputTokens?: number | undefined;
|
|
551
553
|
maxOutputTokens?: number | undefined;
|
|
552
554
|
temperature?: number | undefined;
|
|
553
555
|
allowedMediaTypes?: string[] | undefined;
|
|
556
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
554
557
|
hasApiKey?: boolean | undefined;
|
|
555
558
|
}>;
|
|
556
559
|
export declare const LLMConfigSchema: z.ZodObject<{
|
|
557
|
-
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>;
|
|
560
|
+
provider: z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>;
|
|
558
561
|
model: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
559
|
-
apiKey: z.ZodEffects<z.ZodString, string, string
|
|
562
|
+
apiKey: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
560
563
|
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
561
564
|
baseURL: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string | undefined, string>>;
|
|
562
565
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
563
566
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
564
567
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
565
568
|
allowedMediaTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
569
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
|
|
566
570
|
}, "strict", z.ZodTypeAny, {
|
|
567
571
|
model: string;
|
|
568
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
569
|
-
apiKey: string;
|
|
572
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
570
573
|
maxIterations: number;
|
|
574
|
+
apiKey?: string | undefined;
|
|
571
575
|
baseURL?: string | undefined;
|
|
572
576
|
maxInputTokens?: number | undefined;
|
|
573
577
|
maxOutputTokens?: number | undefined;
|
|
574
578
|
temperature?: number | undefined;
|
|
575
579
|
allowedMediaTypes?: string[] | undefined;
|
|
580
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
576
581
|
}, {
|
|
577
582
|
model: string;
|
|
578
|
-
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere";
|
|
579
|
-
apiKey
|
|
583
|
+
provider: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama";
|
|
584
|
+
apiKey?: string | undefined;
|
|
580
585
|
maxIterations?: number | undefined;
|
|
581
586
|
baseURL?: string | undefined;
|
|
582
587
|
maxInputTokens?: number | undefined;
|
|
583
588
|
maxOutputTokens?: number | undefined;
|
|
584
589
|
temperature?: number | undefined;
|
|
585
590
|
allowedMediaTypes?: string[] | undefined;
|
|
591
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
586
592
|
}>;
|
|
587
593
|
export type LLMConfigResponse = z.output<typeof LLMConfigResponseSchema>;
|
|
588
594
|
export { AgentCardSchema, type AgentCard } from '@dexto/core';
|
|
@@ -727,7 +733,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
727
733
|
totalTokens?: number | undefined;
|
|
728
734
|
}>>;
|
|
729
735
|
model: z.ZodOptional<z.ZodString>;
|
|
730
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
|
|
736
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
|
|
731
737
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
732
738
|
id: z.ZodString;
|
|
733
739
|
type: z.ZodLiteral<"function">;
|
|
@@ -798,7 +804,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
798
804
|
totalTokens?: number | undefined;
|
|
799
805
|
} | undefined;
|
|
800
806
|
model?: string | undefined;
|
|
801
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
807
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
802
808
|
toolCalls?: {
|
|
803
809
|
function: {
|
|
804
810
|
name: string;
|
|
@@ -848,7 +854,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
848
854
|
totalTokens?: number | undefined;
|
|
849
855
|
} | undefined;
|
|
850
856
|
model?: string | undefined;
|
|
851
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
857
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
852
858
|
toolCalls?: {
|
|
853
859
|
function: {
|
|
854
860
|
name: string;
|
|
@@ -903,7 +909,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
903
909
|
totalTokens?: number | undefined;
|
|
904
910
|
} | undefined;
|
|
905
911
|
model?: string | undefined;
|
|
906
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
912
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
907
913
|
toolCalls?: {
|
|
908
914
|
function: {
|
|
909
915
|
name: string;
|
|
@@ -959,7 +965,7 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
959
965
|
totalTokens?: number | undefined;
|
|
960
966
|
} | undefined;
|
|
961
967
|
model?: string | undefined;
|
|
962
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
968
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
963
969
|
toolCalls?: {
|
|
964
970
|
function: {
|
|
965
971
|
name: string;
|
|
@@ -1098,7 +1104,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1098
1104
|
totalTokens?: number | undefined;
|
|
1099
1105
|
}>>;
|
|
1100
1106
|
model: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
|
|
1107
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
|
|
1102
1108
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1103
1109
|
id: z.ZodString;
|
|
1104
1110
|
type: z.ZodLiteral<"function">;
|
|
@@ -1169,7 +1175,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1169
1175
|
totalTokens?: number | undefined;
|
|
1170
1176
|
} | undefined;
|
|
1171
1177
|
model?: string | undefined;
|
|
1172
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1178
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1173
1179
|
toolCalls?: {
|
|
1174
1180
|
function: {
|
|
1175
1181
|
name: string;
|
|
@@ -1219,7 +1225,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1219
1225
|
totalTokens?: number | undefined;
|
|
1220
1226
|
} | undefined;
|
|
1221
1227
|
model?: string | undefined;
|
|
1222
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1228
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1223
1229
|
toolCalls?: {
|
|
1224
1230
|
function: {
|
|
1225
1231
|
name: string;
|
|
@@ -1274,7 +1280,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1274
1280
|
totalTokens?: number | undefined;
|
|
1275
1281
|
} | undefined;
|
|
1276
1282
|
model?: string | undefined;
|
|
1277
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1283
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1278
1284
|
toolCalls?: {
|
|
1279
1285
|
function: {
|
|
1280
1286
|
name: string;
|
|
@@ -1330,7 +1336,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1330
1336
|
totalTokens?: number | undefined;
|
|
1331
1337
|
} | undefined;
|
|
1332
1338
|
model?: string | undefined;
|
|
1333
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1339
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1334
1340
|
toolCalls?: {
|
|
1335
1341
|
function: {
|
|
1336
1342
|
name: string;
|
|
@@ -1408,7 +1414,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1408
1414
|
totalTokens?: number | undefined;
|
|
1409
1415
|
} | undefined;
|
|
1410
1416
|
model?: string | undefined;
|
|
1411
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1417
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1412
1418
|
toolCalls?: {
|
|
1413
1419
|
function: {
|
|
1414
1420
|
name: string;
|
|
@@ -1473,7 +1479,7 @@ export declare const SessionSearchResultSchema: z.ZodObject<{
|
|
|
1473
1479
|
totalTokens?: number | undefined;
|
|
1474
1480
|
} | undefined;
|
|
1475
1481
|
model?: string | undefined;
|
|
1476
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1482
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1477
1483
|
toolCalls?: {
|
|
1478
1484
|
function: {
|
|
1479
1485
|
name: string;
|
|
@@ -1611,7 +1617,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1611
1617
|
totalTokens?: number | undefined;
|
|
1612
1618
|
}>>;
|
|
1613
1619
|
model: z.ZodOptional<z.ZodString>;
|
|
1614
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
|
|
1620
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
|
|
1615
1621
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1616
1622
|
id: z.ZodString;
|
|
1617
1623
|
type: z.ZodLiteral<"function">;
|
|
@@ -1682,7 +1688,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1682
1688
|
totalTokens?: number | undefined;
|
|
1683
1689
|
} | undefined;
|
|
1684
1690
|
model?: string | undefined;
|
|
1685
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1691
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1686
1692
|
toolCalls?: {
|
|
1687
1693
|
function: {
|
|
1688
1694
|
name: string;
|
|
@@ -1732,7 +1738,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1732
1738
|
totalTokens?: number | undefined;
|
|
1733
1739
|
} | undefined;
|
|
1734
1740
|
model?: string | undefined;
|
|
1735
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1741
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1736
1742
|
toolCalls?: {
|
|
1737
1743
|
function: {
|
|
1738
1744
|
name: string;
|
|
@@ -1787,7 +1793,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1787
1793
|
totalTokens?: number | undefined;
|
|
1788
1794
|
} | undefined;
|
|
1789
1795
|
model?: string | undefined;
|
|
1790
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1796
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1791
1797
|
toolCalls?: {
|
|
1792
1798
|
function: {
|
|
1793
1799
|
name: string;
|
|
@@ -1843,7 +1849,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1843
1849
|
totalTokens?: number | undefined;
|
|
1844
1850
|
} | undefined;
|
|
1845
1851
|
model?: string | undefined;
|
|
1846
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1852
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1847
1853
|
toolCalls?: {
|
|
1848
1854
|
function: {
|
|
1849
1855
|
name: string;
|
|
@@ -1905,7 +1911,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1905
1911
|
totalTokens?: number | undefined;
|
|
1906
1912
|
} | undefined;
|
|
1907
1913
|
model?: string | undefined;
|
|
1908
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1914
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1909
1915
|
toolCalls?: {
|
|
1910
1916
|
function: {
|
|
1911
1917
|
name: string;
|
|
@@ -1966,7 +1972,7 @@ export declare const MessageSearchResponseSchema: z.ZodObject<{
|
|
|
1966
1972
|
totalTokens?: number | undefined;
|
|
1967
1973
|
} | undefined;
|
|
1968
1974
|
model?: string | undefined;
|
|
1969
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
1975
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
1970
1976
|
toolCalls?: {
|
|
1971
1977
|
function: {
|
|
1972
1978
|
name: string;
|
|
@@ -2109,7 +2115,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2109
2115
|
totalTokens?: number | undefined;
|
|
2110
2116
|
}>>;
|
|
2111
2117
|
model: z.ZodOptional<z.ZodString>;
|
|
2112
|
-
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere"]>>;
|
|
2118
|
+
provider: z.ZodOptional<z.ZodEnum<["openai", "openai-compatible", "anthropic", "google", "groq", "xai", "cohere", "openrouter", "litellm", "glama", "vertex", "bedrock", "local", "ollama"]>>;
|
|
2113
2119
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2114
2120
|
id: z.ZodString;
|
|
2115
2121
|
type: z.ZodLiteral<"function">;
|
|
@@ -2180,7 +2186,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2180
2186
|
totalTokens?: number | undefined;
|
|
2181
2187
|
} | undefined;
|
|
2182
2188
|
model?: string | undefined;
|
|
2183
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2189
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2184
2190
|
toolCalls?: {
|
|
2185
2191
|
function: {
|
|
2186
2192
|
name: string;
|
|
@@ -2230,7 +2236,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2230
2236
|
totalTokens?: number | undefined;
|
|
2231
2237
|
} | undefined;
|
|
2232
2238
|
model?: string | undefined;
|
|
2233
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2239
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2234
2240
|
toolCalls?: {
|
|
2235
2241
|
function: {
|
|
2236
2242
|
name: string;
|
|
@@ -2285,7 +2291,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2285
2291
|
totalTokens?: number | undefined;
|
|
2286
2292
|
} | undefined;
|
|
2287
2293
|
model?: string | undefined;
|
|
2288
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2294
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2289
2295
|
toolCalls?: {
|
|
2290
2296
|
function: {
|
|
2291
2297
|
name: string;
|
|
@@ -2341,7 +2347,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2341
2347
|
totalTokens?: number | undefined;
|
|
2342
2348
|
} | undefined;
|
|
2343
2349
|
model?: string | undefined;
|
|
2344
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2350
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2345
2351
|
toolCalls?: {
|
|
2346
2352
|
function: {
|
|
2347
2353
|
name: string;
|
|
@@ -2419,7 +2425,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2419
2425
|
totalTokens?: number | undefined;
|
|
2420
2426
|
} | undefined;
|
|
2421
2427
|
model?: string | undefined;
|
|
2422
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2428
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2423
2429
|
toolCalls?: {
|
|
2424
2430
|
function: {
|
|
2425
2431
|
name: string;
|
|
@@ -2484,7 +2490,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2484
2490
|
totalTokens?: number | undefined;
|
|
2485
2491
|
} | undefined;
|
|
2486
2492
|
model?: string | undefined;
|
|
2487
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2493
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2488
2494
|
toolCalls?: {
|
|
2489
2495
|
function: {
|
|
2490
2496
|
name: string;
|
|
@@ -2555,7 +2561,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2555
2561
|
totalTokens?: number | undefined;
|
|
2556
2562
|
} | undefined;
|
|
2557
2563
|
model?: string | undefined;
|
|
2558
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2564
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2559
2565
|
toolCalls?: {
|
|
2560
2566
|
function: {
|
|
2561
2567
|
name: string;
|
|
@@ -2625,7 +2631,7 @@ export declare const SessionSearchResponseSchema: z.ZodObject<{
|
|
|
2625
2631
|
totalTokens?: number | undefined;
|
|
2626
2632
|
} | undefined;
|
|
2627
2633
|
model?: string | undefined;
|
|
2628
|
-
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | undefined;
|
|
2634
|
+
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | undefined;
|
|
2629
2635
|
toolCalls?: {
|
|
2630
2636
|
function: {
|
|
2631
2637
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/hono/schemas/responses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAM3E,eAAO,MAAM,cAAc;;;;;;;;;EAMO,CAAC;AAEnC,eAAO,MAAM,eAAe;;;;;;;;;;;;EAOO,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAQO,CAAC;AAEnC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B0C,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO2C,CAAC;AAE1E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeqB,CAAC;AAEjD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAaU,CAAC;AAExC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;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