@inkeep/agents-run-api 0.1.3 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +5 -5
  3. package/SUPPLEMENTAL_TERMS.md +40 -0
  4. package/dist/chunk-HO5J26MO.js +234 -0
  5. package/dist/conversations-ZQXUNCNE.js +1 -0
  6. package/dist/index.cjs +9048 -0
  7. package/dist/index.d.cts +15 -0
  8. package/dist/index.d.ts +13 -21
  9. package/dist/index.js +8702 -27
  10. package/package.json +9 -8
  11. package/dist/AgentExecutionServer.d.ts +0 -28
  12. package/dist/AgentExecutionServer.d.ts.map +0 -1
  13. package/dist/AgentExecutionServer.js +0 -41
  14. package/dist/__tests__/setup.d.ts +0 -4
  15. package/dist/__tests__/setup.d.ts.map +0 -1
  16. package/dist/__tests__/setup.js +0 -80
  17. package/dist/__tests__/utils/testProject.d.ts +0 -18
  18. package/dist/__tests__/utils/testProject.d.ts.map +0 -1
  19. package/dist/__tests__/utils/testProject.js +0 -26
  20. package/dist/__tests__/utils/testRequest.d.ts +0 -8
  21. package/dist/__tests__/utils/testRequest.d.ts.map +0 -1
  22. package/dist/__tests__/utils/testRequest.js +0 -32
  23. package/dist/__tests__/utils/testTenant.d.ts +0 -64
  24. package/dist/__tests__/utils/testTenant.d.ts.map +0 -1
  25. package/dist/__tests__/utils/testTenant.js +0 -71
  26. package/dist/a2a/client.d.ts +0 -182
  27. package/dist/a2a/client.d.ts.map +0 -1
  28. package/dist/a2a/client.js +0 -645
  29. package/dist/a2a/handlers.d.ts +0 -4
  30. package/dist/a2a/handlers.d.ts.map +0 -1
  31. package/dist/a2a/handlers.js +0 -656
  32. package/dist/a2a/transfer.d.ts +0 -18
  33. package/dist/a2a/transfer.d.ts.map +0 -1
  34. package/dist/a2a/transfer.js +0 -22
  35. package/dist/a2a/types.d.ts +0 -63
  36. package/dist/a2a/types.d.ts.map +0 -1
  37. package/dist/a2a/types.js +0 -1
  38. package/dist/agents/Agent.d.ts +0 -154
  39. package/dist/agents/Agent.d.ts.map +0 -1
  40. package/dist/agents/Agent.js +0 -1110
  41. package/dist/agents/ModelFactory.d.ts +0 -62
  42. package/dist/agents/ModelFactory.d.ts.map +0 -1
  43. package/dist/agents/ModelFactory.js +0 -208
  44. package/dist/agents/SystemPromptBuilder.d.ts +0 -14
  45. package/dist/agents/SystemPromptBuilder.d.ts.map +0 -1
  46. package/dist/agents/SystemPromptBuilder.js +0 -62
  47. package/dist/agents/ToolSessionManager.d.ts +0 -61
  48. package/dist/agents/ToolSessionManager.d.ts.map +0 -1
  49. package/dist/agents/ToolSessionManager.js +0 -143
  50. package/dist/agents/artifactTools.d.ts +0 -30
  51. package/dist/agents/artifactTools.d.ts.map +0 -1
  52. package/dist/agents/artifactTools.js +0 -463
  53. package/dist/agents/generateTaskHandler.d.ts +0 -41
  54. package/dist/agents/generateTaskHandler.d.ts.map +0 -1
  55. package/dist/agents/generateTaskHandler.js +0 -350
  56. package/dist/agents/relationTools.d.ts +0 -35
  57. package/dist/agents/relationTools.d.ts.map +0 -1
  58. package/dist/agents/relationTools.js +0 -246
  59. package/dist/agents/types.d.ts +0 -23
  60. package/dist/agents/types.d.ts.map +0 -1
  61. package/dist/agents/types.js +0 -1
  62. package/dist/agents/versions/V1Config.d.ts +0 -21
  63. package/dist/agents/versions/V1Config.d.ts.map +0 -1
  64. package/dist/agents/versions/V1Config.js +0 -285
  65. package/dist/app.d.ts +0 -12
  66. package/dist/app.d.ts.map +0 -1
  67. package/dist/app.js +0 -216
  68. package/dist/data/agentGraph.d.ts +0 -4
  69. package/dist/data/agentGraph.d.ts.map +0 -1
  70. package/dist/data/agentGraph.js +0 -73
  71. package/dist/data/agents.d.ts +0 -4
  72. package/dist/data/agents.d.ts.map +0 -1
  73. package/dist/data/agents.js +0 -78
  74. package/dist/data/conversations.d.ts +0 -59
  75. package/dist/data/conversations.d.ts.map +0 -1
  76. package/dist/data/conversations.js +0 -216
  77. package/dist/data/db/clean.d.ts +0 -6
  78. package/dist/data/db/clean.d.ts.map +0 -1
  79. package/dist/data/db/clean.js +0 -77
  80. package/dist/data/db/dbClient.d.ts +0 -3
  81. package/dist/data/db/dbClient.d.ts.map +0 -1
  82. package/dist/data/db/dbClient.js +0 -13
  83. package/dist/env.d.ts +0 -45
  84. package/dist/env.d.ts.map +0 -1
  85. package/dist/env.js +0 -64
  86. package/dist/handlers/executionHandler.d.ts +0 -36
  87. package/dist/handlers/executionHandler.d.ts.map +0 -1
  88. package/dist/handlers/executionHandler.js +0 -399
  89. package/dist/index.d.ts.map +0 -1
  90. package/dist/instrumentation.d.ts +0 -13
  91. package/dist/instrumentation.d.ts.map +0 -1
  92. package/dist/instrumentation.js +0 -66
  93. package/dist/logger.d.ts +0 -4
  94. package/dist/logger.d.ts.map +0 -1
  95. package/dist/logger.js +0 -32
  96. package/dist/middleware/api-key-auth.d.ts +0 -22
  97. package/dist/middleware/api-key-auth.d.ts.map +0 -1
  98. package/dist/middleware/api-key-auth.js +0 -139
  99. package/dist/middleware/index.d.ts +0 -2
  100. package/dist/middleware/index.d.ts.map +0 -1
  101. package/dist/middleware/index.js +0 -1
  102. package/dist/openapi.d.ts +0 -2
  103. package/dist/openapi.d.ts.map +0 -1
  104. package/dist/openapi.js +0 -36
  105. package/dist/routes/agents.d.ts +0 -10
  106. package/dist/routes/agents.d.ts.map +0 -1
  107. package/dist/routes/agents.js +0 -158
  108. package/dist/routes/chat.d.ts +0 -10
  109. package/dist/routes/chat.d.ts.map +0 -1
  110. package/dist/routes/chat.js +0 -307
  111. package/dist/routes/chatDataStream.d.ts +0 -10
  112. package/dist/routes/chatDataStream.d.ts.map +0 -1
  113. package/dist/routes/chatDataStream.js +0 -179
  114. package/dist/routes/mcp.d.ts +0 -10
  115. package/dist/routes/mcp.d.ts.map +0 -1
  116. package/dist/routes/mcp.js +0 -500
  117. package/dist/server.d.ts +0 -5
  118. package/dist/server.d.ts.map +0 -1
  119. package/dist/server.js +0 -61
  120. package/dist/tracer.d.ts +0 -24
  121. package/dist/tracer.d.ts.map +0 -1
  122. package/dist/tracer.js +0 -107
  123. package/dist/types/chat.d.ts +0 -25
  124. package/dist/types/chat.d.ts.map +0 -1
  125. package/dist/types/chat.js +0 -1
  126. package/dist/types/execution-context.d.ts +0 -14
  127. package/dist/types/execution-context.d.ts.map +0 -1
  128. package/dist/types/execution-context.js +0 -14
  129. package/dist/utils/agent-operations.d.ts +0 -92
  130. package/dist/utils/agent-operations.d.ts.map +0 -1
  131. package/dist/utils/agent-operations.js +0 -78
  132. package/dist/utils/artifact-component-schema.d.ts +0 -29
  133. package/dist/utils/artifact-component-schema.d.ts.map +0 -1
  134. package/dist/utils/artifact-component-schema.js +0 -119
  135. package/dist/utils/artifact-parser.d.ts +0 -71
  136. package/dist/utils/artifact-parser.d.ts.map +0 -1
  137. package/dist/utils/artifact-parser.js +0 -251
  138. package/dist/utils/cleanup.d.ts +0 -19
  139. package/dist/utils/cleanup.d.ts.map +0 -1
  140. package/dist/utils/cleanup.js +0 -66
  141. package/dist/utils/data-component-schema.d.ts +0 -6
  142. package/dist/utils/data-component-schema.d.ts.map +0 -1
  143. package/dist/utils/data-component-schema.js +0 -43
  144. package/dist/utils/graph-session.d.ts +0 -200
  145. package/dist/utils/graph-session.d.ts.map +0 -1
  146. package/dist/utils/graph-session.js +0 -1016
  147. package/dist/utils/incremental-stream-parser.d.ts +0 -57
  148. package/dist/utils/incremental-stream-parser.d.ts.map +0 -1
  149. package/dist/utils/incremental-stream-parser.js +0 -289
  150. package/dist/utils/response-formatter.d.ts +0 -27
  151. package/dist/utils/response-formatter.d.ts.map +0 -1
  152. package/dist/utils/response-formatter.js +0 -160
  153. package/dist/utils/stream-helpers.d.ts +0 -174
  154. package/dist/utils/stream-helpers.d.ts.map +0 -1
  155. package/dist/utils/stream-helpers.js +0 -466
  156. package/dist/utils/stream-registry.d.ts +0 -18
  157. package/dist/utils/stream-registry.d.ts.map +0 -1
  158. package/dist/utils/stream-registry.js +0 -33
package/LICENSE.md CHANGED
@@ -1,3 +1,10 @@
1
+ <!--
2
+ AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
3
+ Source: ./LICENSE.md
4
+ This file is automatically copied from the root LICENSE.md during build.
5
+ Any changes should be made to the root LICENSE.md file.
6
+ -->
7
+
1
8
  # Inkeep SDK – Elastic License 2.0 with Supplemental Terms
2
9
 
3
10
  NOTE: The Inkeep SDK is licensed under the Elastic License 2.0 (ELv2), subject to Supplemental Terms included in [SUPPLEMENTAL_TERMS.md](SUPPLEMENTAL_TERMS.md). In the event of conflict, the Supplemental Terms control.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Inkeep Execution API
1
+ # Inkeep Agents Run API
2
2
 
3
- The Execution API is responsible for runtime agent operations, including Agent-to-Agent (A2A) communication, chat completions, and MCP (Model Context Protocol) tool integrations.
3
+ The Agents Run API is responsible for runtime agent operations, including Agent-to-Agent (A2A) communication, chat completions, and MCP (Model Context Protocol) tool integrations.
4
4
 
5
5
  ## Overview
6
6
 
@@ -82,8 +82,8 @@ The API uses environment-based configuration with defaults for local development
82
82
 
83
83
  ## Integration
84
84
 
85
- ### With Management API
86
- The Execution API reads agent configurations and relationships created by the Management API but doesn't modify them during runtime.
85
+ ### With Agents Manage API
86
+ The Agents Run API reads agent configurations and relationships created by the Agents Manage API but doesn't modify them during runtime.
87
87
 
88
88
  ### With MCP Tools
89
89
  Supports multiple MCP transport types:
@@ -114,4 +114,4 @@ The API implements comprehensive error handling:
114
114
  - **API Key Authentication**: Configurable authentication methods
115
115
  - **Input Validation**: Request sanitization and type checking
116
116
  - **CORS**: Configurable cross-origin policies
117
- - **Rate Limiting**: Configurable request throttling
117
+ - **Rate Limiting**: Configurable request throttling
@@ -0,0 +1,40 @@
1
+ <!--
2
+ AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
3
+ Source: ./SUPPLEMENTAL_TERMS.md
4
+ This file is automatically copied from the root SUPPLEMENTAL_TERMS.md during build.
5
+ Any changes should be made to the root SUPPLEMENTAL_TERMS.md file.
6
+ -->
7
+
8
+ # Inkeep SDK – Elastic License 2.0 with Supplemental Terms
9
+
10
+ The Inkeep [SDK] (the "Software") is licensed under the Elastic License 2.0 ("ELv2"), available at [https://www.elastic.co/licensing/elastic-license](https://www.elastic.co/licensing/elastic-license), subject to the supplemental terms below. By using the Software, you, your company, and your licensees agree to both ELv2 and these Supplemental Terms – for purposes of these Supplemental Terms, references to "you" have the same meaning as in ELv2 and include your company and contractors acting on your behalf. In the event of conflict, these Supplemental Terms control.
11
+
12
+ Any copy or redistribution of the Software must include both the ELv2 license reference and these Supplemental Terms.
13
+
14
+ ## 1. Restrictions
15
+
16
+ ### 1.1
17
+ You may not use the Software, directly or indirectly, to offer, enable, operate, or provide any Agent Builder.
18
+
19
+ ### 1.2
20
+ You may not repackage, rebrand, or otherwise expose the Software's agent-creation or orchestration functionality for third-party use, including in specialized or verticalized offerings that present substantially similar functionality to the Software.
21
+
22
+ ### 1.3
23
+ For clarity, the foregoing restrictions do not prohibit your use of the Software as Embedded Assistants or Professional Services, provided neither allow third parties to create, configure, train, orchestrate, deploy, or manage their own agents or agent workflows.
24
+
25
+ ## 2. Definitions
26
+
27
+ ### 2.1 Inkeep
28
+ **"Inkeep"** means Inkeep, Inc., a Delaware corporation with principal offices at 169 Madison Ave, Ste 2544, New York, NY, 10016, the licensor (as defined in ELv2) of the Software.
29
+
30
+ ### 2.2 Agent Builder
31
+ **"Agent Builder"** means any hosted or on-premise product, platform, UI or API that allows third parties (e.g., customers, developers, or community users other than your personnel) to create, configure, compose, train, orchestrate, deploy, or manage their own Agents using the Software, or that otherwise exposes a substantial set of the Agent-creation and orchestration functionality of the Software.
32
+
33
+ ### 2.3 Agents
34
+ **"Agents"** means autonomous, semi-autonomous, or automated systems — including assistants, copilots, workflows, orchestrations, or other systems powered by or incorporating artificial intelligence, machine learning, large language models, or related technologies.
35
+
36
+ ### 2.4 Embedded Assistant
37
+ **"Embedded Assistant"** means embedding the Software in your own products or services to power a specific assistant/copilot/agent experience for you or your end users (e.g., a support bot in your app or an internal helpdesk agent), where end users do not receive access to any substantial set of the Software's agent-creation or orchestration features.
38
+
39
+ ### 2.5 Professional Services
40
+ **"Professional Services"** means using the Software to deliver a bespoke solution to a single client where only your personnel operate the Software, the client receives access solely to the resulting assistant within the client's environment and not to the agent-creation/orchestration features of the Software, and no multi-tenant or self-service builder is provided.
@@ -0,0 +1,234 @@
1
+ import { createDatabaseClient, createMessage, getConversationHistory } from '@inkeep/agents-core';
2
+ import { nanoid } from 'nanoid';
3
+ import fs from 'fs';
4
+ import path from 'path';
5
+ import * as dotenv from 'dotenv';
6
+ import { z } from 'zod';
7
+
8
+ var __defProp = Object.defineProperty;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
11
+ dotenv.config({ quiet: true });
12
+ z.enum(["development", "production"]).default("development");
13
+ var environmentSchema = z.enum(["development", "pentest", "production", "test"]);
14
+ var criticalEnv = z.object({
15
+ ENVIRONMENT: environmentSchema
16
+ }).parse(process.env);
17
+ var loadEnvFile = () => {
18
+ const envPath = path.resolve(process.cwd(), `.env.${criticalEnv.ENVIRONMENT}.nonsecret`);
19
+ if (fs.existsSync(envPath)) {
20
+ const envConfig = dotenv.parse(fs.readFileSync(envPath));
21
+ for (const k in envConfig) {
22
+ if (!(k in process.env)) {
23
+ process.env[k] = envConfig[k];
24
+ }
25
+ }
26
+ }
27
+ };
28
+ loadEnvFile();
29
+ var envSchema = z.object({
30
+ NODE_ENV: z.enum(["development", "production", "test"]).optional(),
31
+ ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional().default("development"),
32
+ DB_FILE_NAME: z.string().default("file:../local.db"),
33
+ AGENTS_RUN_API_URL: z.string().optional().default("http://localhost:3003"),
34
+ LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
35
+ NANGO_SECRET_KEY: z.string().optional(),
36
+ OPENAI_API_KEY: z.string().optional(),
37
+ ANTHROPIC_API_KEY: z.string(),
38
+ INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z.string().optional(),
39
+ OTEL_MAX_EXPORT_BATCH_SIZE: z.coerce.number().optional()
40
+ });
41
+ var parseEnv = () => {
42
+ try {
43
+ const parsedEnv = envSchema.parse(process.env);
44
+ return parsedEnv;
45
+ } catch (error) {
46
+ if (error instanceof z.ZodError) {
47
+ const missingVars = error.issues.map((issue) => issue.path.join("."));
48
+ throw new Error(
49
+ `\u274C Invalid environment variables: ${missingVars.join(", ")}
50
+ ${error.message}`
51
+ );
52
+ }
53
+ throw error;
54
+ }
55
+ };
56
+ var env = parseEnv();
57
+
58
+ // src/data/db/dbClient.ts
59
+ var getDbUrl = () => {
60
+ if (env.ENVIRONMENT === "test") {
61
+ return ":memory:";
62
+ }
63
+ return env.DB_FILE_NAME;
64
+ };
65
+ var dbClient = createDatabaseClient({ url: getDbUrl() });
66
+ var dbClient_default = dbClient;
67
+
68
+ // src/data/conversations.ts
69
+ function createDefaultConversationHistoryConfig(mode = "full") {
70
+ return {
71
+ mode,
72
+ limit: 50,
73
+ includeInternal: true,
74
+ messageTypes: ["chat"],
75
+ maxOutputTokens: 4e3
76
+ };
77
+ }
78
+ function extractA2AMessageText(parts) {
79
+ return parts.filter((part) => part.kind === "text" && part.text).map((part) => part.text).join("");
80
+ }
81
+ async function saveA2AMessageResponse(response, params) {
82
+ if (response.error) {
83
+ throw new Error(response.error.message);
84
+ }
85
+ let messageText = "";
86
+ if (response.result.kind === "message") {
87
+ messageText = extractA2AMessageText(response.result.parts);
88
+ } else if (response.result.kind === "task") {
89
+ if (response.result.artifacts && response.result.artifacts.length > 0) {
90
+ const firstArtifact = response.result.artifacts[0];
91
+ if (firstArtifact.parts) {
92
+ messageText = extractA2AMessageText(firstArtifact.parts);
93
+ }
94
+ }
95
+ } else if (typeof response.result === "string") {
96
+ messageText = response.result;
97
+ }
98
+ if (!messageText || messageText.trim() === "") {
99
+ return null;
100
+ }
101
+ return await createMessage(dbClient_default)({
102
+ id: nanoid(),
103
+ tenantId: params.tenantId,
104
+ projectId: params.projectId,
105
+ conversationId: params.conversationId,
106
+ role: "agent",
107
+ content: {
108
+ text: messageText
109
+ },
110
+ visibility: params.visibility,
111
+ messageType: params.messageType,
112
+ fromAgentId: params.fromAgentId,
113
+ toAgentId: params.toAgentId,
114
+ fromExternalAgentId: params.fromExternalAgentId,
115
+ toExternalAgentId: params.toExternalAgentId,
116
+ a2aTaskId: params.a2aTaskId,
117
+ a2aSessionId: params.a2aSessionId,
118
+ metadata: params.metadata
119
+ });
120
+ }
121
+ async function getScopedHistory({
122
+ tenantId,
123
+ projectId,
124
+ conversationId,
125
+ filters,
126
+ options
127
+ }) {
128
+ try {
129
+ const messages = await getConversationHistory(dbClient_default)({
130
+ scopes: { tenantId, projectId },
131
+ conversationId,
132
+ options
133
+ });
134
+ if (!filters || !filters.agentId && !filters.taskId) {
135
+ return messages;
136
+ }
137
+ const relevantMessages = messages.filter((msg) => {
138
+ if (msg.role === "user") return true;
139
+ let matchesAgent = true;
140
+ let matchesTask = true;
141
+ if (filters.agentId) {
142
+ matchesAgent = msg.role === "agent" && msg.visibility === "user-facing" || msg.toAgentId === filters.agentId || msg.fromAgentId === filters.agentId;
143
+ }
144
+ if (filters.taskId) {
145
+ matchesTask = msg.taskId === filters.taskId || msg.a2aTaskId === filters.taskId;
146
+ }
147
+ if (filters.agentId && filters.taskId) {
148
+ return matchesAgent && matchesTask;
149
+ }
150
+ if (filters.agentId) {
151
+ return matchesAgent;
152
+ }
153
+ if (filters.taskId) {
154
+ return matchesTask;
155
+ }
156
+ return false;
157
+ });
158
+ return relevantMessages;
159
+ } catch (error) {
160
+ console.error("Failed to fetch scoped messages:", error);
161
+ return [];
162
+ }
163
+ }
164
+ async function getUserFacingHistory(tenantId, projectId, conversationId, limit = 50) {
165
+ return await getConversationHistory(dbClient_default)({
166
+ scopes: { tenantId, projectId },
167
+ conversationId,
168
+ options: {
169
+ limit,
170
+ includeInternal: false,
171
+ messageTypes: ["chat"]
172
+ }
173
+ });
174
+ }
175
+ async function getFullConversationContext(tenantId, projectId, conversationId, maxTokens) {
176
+ return await getConversationHistory(dbClient_default)({
177
+ scopes: { tenantId, projectId },
178
+ conversationId,
179
+ options: {
180
+ limit: 100,
181
+ includeInternal: true,
182
+ maxOutputTokens: maxTokens
183
+ }
184
+ });
185
+ }
186
+ async function getFormattedConversationHistory({
187
+ tenantId,
188
+ projectId,
189
+ conversationId,
190
+ currentMessage,
191
+ options,
192
+ filters
193
+ }) {
194
+ const historyOptions = options ?? { includeInternal: true };
195
+ const conversationHistory = await getScopedHistory({
196
+ tenantId,
197
+ projectId,
198
+ conversationId,
199
+ filters,
200
+ options: historyOptions
201
+ });
202
+ let messagesToFormat = conversationHistory;
203
+ if (currentMessage && conversationHistory.length > 0) {
204
+ const lastMessage = conversationHistory[conversationHistory.length - 1];
205
+ if (lastMessage.content.text === currentMessage) {
206
+ messagesToFormat = conversationHistory.slice(0, -1);
207
+ }
208
+ }
209
+ if (!messagesToFormat.length) {
210
+ return "";
211
+ }
212
+ const formattedHistory = messagesToFormat.map((msg) => {
213
+ let roleLabel;
214
+ if (msg.role === "user") {
215
+ roleLabel = "user";
216
+ } else if (msg.role === "agent" && (msg.messageType === "a2a-request" || msg.messageType === "a2a-response")) {
217
+ const fromAgent = msg.fromAgentId || msg.fromExternalAgentId || "unknown";
218
+ const toAgent = msg.toAgentId || msg.toExternalAgentId || "unknown";
219
+ roleLabel = `${fromAgent} to ${toAgent}`;
220
+ } else if (msg.role === "agent" && msg.messageType === "chat") {
221
+ const fromAgent = msg.fromAgentId || "unknown";
222
+ roleLabel = `${fromAgent} to User`;
223
+ } else {
224
+ roleLabel = msg.role || "system";
225
+ }
226
+ return `${roleLabel}: """${msg.content.text}"""`;
227
+ }).join("\n");
228
+ return `<conversation_history>
229
+ ${formattedHistory}
230
+ </conversation_history>
231
+ `;
232
+ }
233
+
234
+ export { __publicField, createDefaultConversationHistoryConfig, dbClient_default, env, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse };
@@ -0,0 +1 @@
1
+ export { createDefaultConversationHistoryConfig, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-HO5J26MO.js';