@inkeep/agents-core 0.0.0-chat-to-edit-20251119071712

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 (57) hide show
  1. package/LICENSE.md +56 -0
  2. package/README.md +458 -0
  3. package/SUPPLEMENTAL_TERMS.md +40 -0
  4. package/dist/auth-detection-CGqhPDnj.d.cts +435 -0
  5. package/dist/auth-detection-CGqhPDnj.d.ts +435 -0
  6. package/dist/chunk-7CLFCY6J.js +36 -0
  7. package/dist/chunk-A6JWG7FI.js +1689 -0
  8. package/dist/chunk-CMNLBV2A.js +39 -0
  9. package/dist/chunk-E6R6PML7.js +19 -0
  10. package/dist/chunk-OP3KPT4T.js +442 -0
  11. package/dist/chunk-TLSKVSBR.js +1234 -0
  12. package/dist/chunk-WG46C2WU.js +394 -0
  13. package/dist/chunk-YECQCT5N.js +223 -0
  14. package/dist/chunk-YFHT5M2R.js +18 -0
  15. package/dist/client-exports.cjs +3421 -0
  16. package/dist/client-exports.d.cts +292 -0
  17. package/dist/client-exports.d.ts +292 -0
  18. package/dist/client-exports.js +178 -0
  19. package/dist/constants/models.cjs +40 -0
  20. package/dist/constants/models.d.cts +42 -0
  21. package/dist/constants/models.d.ts +42 -0
  22. package/dist/constants/models.js +1 -0
  23. package/dist/db/schema.cjs +1686 -0
  24. package/dist/db/schema.d.cts +7 -0
  25. package/dist/db/schema.d.ts +7 -0
  26. package/dist/db/schema.js +1 -0
  27. package/dist/index.cjs +229792 -0
  28. package/dist/index.d.cts +5138 -0
  29. package/dist/index.d.ts +5138 -0
  30. package/dist/index.js +224908 -0
  31. package/dist/props-validation-BMR1qNiy.d.cts +15 -0
  32. package/dist/props-validation-BMR1qNiy.d.ts +15 -0
  33. package/dist/schema-C90zXlqp.d.ts +8012 -0
  34. package/dist/schema-keglUDw0.d.cts +8012 -0
  35. package/dist/types/index.cjs +64 -0
  36. package/dist/types/index.d.cts +175 -0
  37. package/dist/types/index.d.ts +175 -0
  38. package/dist/types/index.js +2 -0
  39. package/dist/utility-CXEG5391.d.cts +17265 -0
  40. package/dist/utility-CXEG5391.d.ts +17265 -0
  41. package/dist/utils/schema-conversion.cjs +236 -0
  42. package/dist/utils/schema-conversion.d.cts +26 -0
  43. package/dist/utils/schema-conversion.d.ts +26 -0
  44. package/dist/utils/schema-conversion.js +1 -0
  45. package/dist/validation/index.cjs +3521 -0
  46. package/dist/validation/index.d.cts +279 -0
  47. package/dist/validation/index.d.ts +279 -0
  48. package/dist/validation/index.js +2 -0
  49. package/drizzle/0000_exotic_mysterio.sql +398 -0
  50. package/drizzle/0001_greedy_the_phantom.sql +4 -0
  51. package/drizzle/0002_add_evaluation_features.sql +252 -0
  52. package/drizzle/0003_brave_micromax.sql +2 -0
  53. package/drizzle/meta/0000_snapshot.json +2519 -0
  54. package/drizzle/meta/0001_snapshot.json +2892 -0
  55. package/drizzle/meta/0002_snapshot.json +4485 -0
  56. package/drizzle/meta/_journal.json +34 -0
  57. package/package.json +133 -0
package/LICENSE.md ADDED
@@ -0,0 +1,56 @@
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
+
8
+ # Inkeep SDK – Elastic License 2.0 with Supplemental Terms
9
+
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.
11
+
12
+ # Elastic License 2.0
13
+
14
+ ## Acceptance
15
+ By using the software, you agree to all of the terms and conditions below.
16
+
17
+ ## Copyright License
18
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below.
19
+
20
+ ## Limitations
21
+ You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
22
+
23
+ You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
24
+
25
+ You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
26
+
27
+ ## Patents
28
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
29
+
30
+ ## Notices
31
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
32
+
33
+ If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
34
+
35
+ ## No Other Rights
36
+ These terms do not imply any licenses other than those expressly granted in these terms.
37
+
38
+ ## Termination
39
+ If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
40
+
41
+ ## No Liability
42
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
43
+
44
+ ## Definitions
45
+ The **licensor** is the entity offering these terms, and the **software** is the software the licensor makes available under these terms, including any portion of it.
46
+
47
+ **you** refers to the individual or entity agreeing to these terms.
48
+
49
+ **your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
50
+
51
+ **your licenses** are all the licenses granted to you for the software under these terms.
52
+
53
+ **use** means anything you do with the software requiring one of your licenses.
54
+
55
+ **trademark** means trademarks, service marks, and similar rights.
56
+
package/README.md ADDED
@@ -0,0 +1,458 @@
1
+ # @inkeep/agents-core
2
+
3
+ Core database schema, types, validation, and data access layer for the Inkeep Agent Framework.
4
+
5
+ ## Overview
6
+
7
+ This package serves as the single source of truth for:
8
+ - **Database Schema**: Drizzle ORM schema definitions
9
+ - **Type System**: TypeScript types inferred from schemas
10
+ - **Validation**: Zod schemas for runtime validation
11
+ - **Data Access**: Functional data access layer with dependency injection
12
+ - **Migrations**: Database migration management
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pnpm add @inkeep/agents-core
18
+ ```
19
+
20
+ ## Architecture
21
+
22
+ ### Schema as Source of Truth
23
+
24
+ The Drizzle schema (`src/db/index.ts`) is the authoritative source for all database structure. From this schema:
25
+ 1. Database tables are generated
26
+ 2. Zod validation schemas are derived
27
+ 3. TypeScript types are inferred
28
+ 4. SQL migrations are created
29
+
30
+ ### Functional Data Access Pattern
31
+
32
+ All data access functions follow a consistent functional pattern with dependency injection:
33
+
34
+ ```typescript
35
+ export const getAgentById = (db: DatabaseClient) => async (params: {
36
+ tenantId: string;
37
+ projectId: string;
38
+ subAgentId: string;
39
+ }) => {
40
+ // Implementation
41
+ };
42
+ ```
43
+
44
+ This pattern enables:
45
+ - Easy testing with mock databases
46
+ - Flexible database configuration
47
+ - Clean separation of concerns
48
+ - Composable data operations
49
+
50
+ ## Usage
51
+
52
+ ### Database Client
53
+
54
+ ```typescript
55
+ import { createDatabaseClient } from '@inkeep/agents-core/data-access';
56
+
57
+ // Production database
58
+ const db = createDatabaseClient({
59
+ url: 'file:./production.db',
60
+ authToken: process.env.DATABASE_AUTH_TOKEN,
61
+ });
62
+
63
+ // In-memory database for testing
64
+ const testDb = createInMemoryDatabaseClient();
65
+ ```
66
+
67
+ ### Data Access
68
+
69
+ ```typescript
70
+ import { getAgentById, createAgent, updateAgent } from '@inkeep/agents-core/data-access';
71
+
72
+ // Create function with database dependency
73
+ const getAgent = getAgentById(db);
74
+
75
+ // Use the function
76
+ const agent = await getAgent({
77
+ tenantId: 'tenant-1',
78
+ projectId: 'project-1',
79
+ subAgentId: 'agent-1'
80
+ });
81
+ ```
82
+
83
+ ### Validation
84
+
85
+ ```typescript
86
+ import { AgentInsertSchema, AgentUpdateSchema } from '@inkeep/agents-core/validation';
87
+
88
+ // Validate input data
89
+ const validatedData = AgentInsertSchema.parse({
90
+ id: 'agent-1',
91
+ tenantId: 'tenant-1',
92
+ projectId: 'project-1',
93
+ name: 'Support Agent',
94
+ description: 'Handles customer support',
95
+ instructions: 'Be helpful and professional'
96
+ });
97
+
98
+ // Partial validation for updates
99
+ const updateData = AgentUpdateSchema.parse({
100
+ name: 'Updated Agent Name'
101
+ });
102
+ ```
103
+
104
+ ### Types
105
+
106
+ ```typescript
107
+ import type {
108
+ AgentInsert,
109
+ AgentSelect,
110
+ TaskInsert,
111
+ ConversationSelect
112
+ } from '@inkeep/agents-core/validation';
113
+
114
+ // Use types in your application
115
+ function processAgent(agent: AgentSelect) {
116
+ console.log(agent.name);
117
+ }
118
+ ```
119
+
120
+ ## Database Migrations
121
+
122
+ ### Generate Migrations
123
+
124
+ After modifying the schema in `src/db/index.ts`:
125
+
126
+ ```bash
127
+ # Generate SQL migration files
128
+ pnpm db:generate
129
+
130
+ # Preview changes
131
+ pnpm db:check
132
+ ```
133
+
134
+ ### Apply Migrations
135
+
136
+ ```bash
137
+ # Run migrations
138
+ pnpm db:migrate
139
+ ```
140
+
141
+ ### Database Studio
142
+
143
+ ```bash
144
+ # Open Drizzle Studio for database inspection
145
+ pnpm db:studio
146
+ ```
147
+
148
+ ## Testing
149
+
150
+ The package includes comprehensive tests for all components:
151
+
152
+ ```bash
153
+ # Run tests
154
+ pnpm test
155
+
156
+ # Run tests with coverage
157
+ pnpm test:coverage
158
+
159
+ # Watch mode
160
+ pnpm test:watch
161
+ ```
162
+
163
+ Tests use in-memory SQLite databases for isolation and speed.
164
+
165
+
166
+ ## Multi-Service Architecture
167
+
168
+ This package is designed to support a multi-service architecture:
169
+
170
+ ### Agents Manage API
171
+ Handles CRUD operations and entity management:
172
+ - Creating/updating agents
173
+ - Managing agent relationships
174
+ - Configuring tools
175
+ - Database migrations
176
+
177
+ ### Agents Run API
178
+ Handles runtime operations:
179
+ - Processing conversations
180
+ - Executing tasks
181
+ - Agent communication
182
+ - Tool invocation
183
+
184
+ Both services share the same database schema and data access layer from this core package.
185
+
186
+ ## Development
187
+
188
+ ```bash
189
+ # Install dependencies
190
+ pnpm install
191
+
192
+ # Build the package
193
+ pnpm build
194
+
195
+ # Development mode (watch)
196
+ pnpm dev
197
+
198
+ # Linting and formatting
199
+ pnpm lint
200
+ pnpm format
201
+
202
+ # Type checking
203
+ pnpm typecheck
204
+ ```
205
+
206
+ ## Contributing
207
+
208
+ ### Adding a New Entity to the Database Schema
209
+
210
+ When adding a new entity to the Inkeep Agent Framework, follow these steps to ensure proper integration across the schema, validation, and data access layers:
211
+
212
+ #### Step 1: Define the Drizzle Schema
213
+
214
+ Add your table definition to `src/db/index.ts`:
215
+
216
+ ```typescript
217
+ // Example: Adding a "workflows" table
218
+ export const workflows = sqliteTable(
219
+ 'workflows',
220
+ {
221
+ id: text('id').notNull().primaryKey(),
222
+ tenantId: text('tenant_id').notNull(),
223
+ projectId: text('project_id').notNull(),
224
+ name: text('name').notNull(),
225
+ description: text('description'),
226
+ config: text('config', { mode: 'json' }),
227
+ status: text('status').notNull().default('draft'),
228
+ createdAt: text('created_at')
229
+ .notNull()
230
+ .default(sql`(datetime('now'))`),
231
+ updatedAt: text('updated_at')
232
+ .notNull()
233
+ .default(sql`(datetime('now'))`),
234
+ },
235
+ (table) => ({
236
+ tenantProjectIdx: index('workflows_tenant_project_idx')
237
+ .on(table.tenantId, table.projectId),
238
+ })
239
+ );
240
+ ```
241
+
242
+ #### Step 2: Add Relationships (if applicable)
243
+
244
+ Define any relationships with existing tables:
245
+
246
+ ```typescript
247
+ export const workflowRelations = relations(workflows, ({ one, many }) => ({
248
+ // Example: A workflow belongs to an agent
249
+ agent: one(agents, {
250
+ fields: [workflows.agentId],
251
+ references: [agents.id],
252
+ }),
253
+ // Example: A workflow can have many tasks
254
+ tasks: many(tasks),
255
+ }));
256
+ ```
257
+
258
+ #### Step 3: Create Validation Schemas
259
+
260
+ Add validation schemas to `src/validation/schemas.ts`:
261
+
262
+ ```typescript
263
+ // Select schema (for reading from database)
264
+ export const WorkflowSelectSchema = createSelectSchema(workflows);
265
+
266
+ // Insert schema (for creating new records)
267
+ export const WorkflowInsertSchema = createInsertSchema(workflows).extend({
268
+ id: resourceIdSchema,
269
+ config: z.object({
270
+ // Define your config structure
271
+ triggers: z.array(z.string()).optional(),
272
+ actions: z.array(z.string()).optional(),
273
+ }).optional(),
274
+ });
275
+
276
+ // Update schema (for partial updates)
277
+ export const WorkflowUpdateSchema = WorkflowInsertSchema.partial().omit({
278
+ id: true,
279
+ tenantId: true,
280
+ projectId: true,
281
+ });
282
+
283
+ // API schemas (without tenant/project IDs for external APIs)
284
+ export const WorkflowApiSelectSchema = createApiSchema(WorkflowSelectSchema);
285
+ export const WorkflowApiInsertSchema = createApiInsertSchema(WorkflowInsertSchema);
286
+ export const WorkflowApiUpdateSchema = createApiUpdateSchema(WorkflowUpdateSchema);
287
+ ```
288
+
289
+ ### Step 3.5: Add Types
290
+
291
+ Add types to `src/types/entities`
292
+
293
+ ```typescript
294
+ export type WorkflowSelect = z.infer<typeof WorkflowSelectSchema>;
295
+ export type WorkflowInsert = z.infer<typeof WorkflowInsertSchema>;
296
+ export type WorkflowUpdate = z.infer<typeof WorkflowUpdateSchema>;
297
+ export type WorkflowApiSelect = z.infer<typeof WorkflowApiSelectSchema>;
298
+ export type WorkflowApiInsert = z.infer<typeof WorkflowApiInsertSchema>;
299
+ export type WorkflowApiUpdate = z.infer<typeof WorkflowApiUpdateSchema>;
300
+ ```
301
+
302
+ add any types not directly inferred from the drizzle schema to `src/types/utility.ts`
303
+
304
+ #### Step 4: Create Data Access Functions
305
+
306
+ Create a new file `src/data-access/workflows.ts`:
307
+
308
+ ```typescript
309
+ import { eq, and } from 'drizzle-orm';
310
+ import { workflows } from '../db/index';
311
+ import type { DatabaseClient } from './client';
312
+
313
+ // Get workflow by ID
314
+ export const getWorkflowById = (db: DatabaseClient) => async (params: {
315
+ tenantId: string;
316
+ projectId: string;
317
+ workflowId: string;
318
+ }) => {
319
+ return db.query.workflows.findFirst({
320
+ where: and(
321
+ eq(workflows.tenantId, params.tenantId),
322
+ eq(workflows.projectId, params.projectId),
323
+ eq(workflows.id, params.workflowId)
324
+ ),
325
+ });
326
+ };
327
+
328
+ // List workflows
329
+ export const listWorkflows = (db: DatabaseClient) => async (params: {
330
+ tenantId: string;
331
+ projectId: string;
332
+ }) => {
333
+ return db.query.workflows.findMany({
334
+ where: and(
335
+ eq(workflows.tenantId, params.tenantId),
336
+ eq(workflows.projectId, params.projectId)
337
+ ),
338
+ orderBy: (workflows, { desc }) => [desc(workflows.createdAt)],
339
+ });
340
+ };
341
+
342
+ // Create workflow
343
+ export const createWorkflow = (db: DatabaseClient) => async (params: {
344
+ tenantId: string;
345
+ projectId: string;
346
+ data: any;
347
+ }) => {
348
+ const [result] = await db.insert(workflows).values({
349
+ ...params.data,
350
+ tenantId: params.tenantId,
351
+ projectId: params.projectId,
352
+ }).returning();
353
+ return result;
354
+ };
355
+
356
+ // Update workflow
357
+ export const updateWorkflow = (db: DatabaseClient) => async (params: {
358
+ tenantId: string;
359
+ projectId: string;
360
+ workflowId: string;
361
+ data: any;
362
+ }) => {
363
+ const [result] = await db
364
+ .update(workflows)
365
+ .set({
366
+ ...params.data,
367
+ updatedAt: new Date().toISOString(),
368
+ })
369
+ .where(
370
+ and(
371
+ eq(workflows.tenantId, params.tenantId),
372
+ eq(workflows.projectId, params.projectId),
373
+ eq(workflows.id, params.workflowId)
374
+ )
375
+ )
376
+ .returning();
377
+ return result;
378
+ };
379
+
380
+ // Delete workflow
381
+ export const deleteWorkflow = (db: DatabaseClient) => async (params: {
382
+ tenantId: string;
383
+ projectId: string;
384
+ workflowId: string;
385
+ }) => {
386
+ await db.delete(workflows).where(
387
+ and(
388
+ eq(workflows.tenantId, params.tenantId),
389
+ eq(workflows.projectId, params.projectId),
390
+ eq(workflows.id, params.workflowId)
391
+ )
392
+ );
393
+ return true;
394
+ };
395
+ ```
396
+
397
+ #### Step 5: Export from Index Files
398
+
399
+ Update the relevant index files to export your new schemas and functions:
400
+
401
+ In `src/data-access/index.ts`:
402
+ ```typescript
403
+ export * from './workflows';
404
+ ```
405
+
406
+ #### Step 6: Generate and Apply Migrations
407
+
408
+ ```bash
409
+ # Generate SQL migration for your new table
410
+ pnpm db:generate
411
+
412
+ # Apply migration to database
413
+ pnpm db:migrate
414
+ ```
415
+
416
+ #### Step 7: Write Tests
417
+
418
+ Create test files for your new entity:
419
+
420
+ 1. **Unit tests** in `src/__tests__/validation/workflows.test.ts`:
421
+ - Test schema validation
422
+ - Test edge cases and constraints
423
+
424
+ 2. **Integration tests** in `src/__tests__/integration/workflows.test.ts`:
425
+ - Test CRUD operations with real database
426
+ - Test relationships with other entities
427
+ - Test tenant isolation
428
+
429
+ Example integration test:
430
+ ```typescript
431
+ describe('Workflow Integration Tests', () => {
432
+ let db: DatabaseClient;
433
+
434
+ beforeEach(() => {
435
+ db = createInMemoryDatabaseClient();
436
+ });
437
+
438
+ it('should create and retrieve a workflow', async () => {
439
+ const workflowData = {
440
+ id: 'test-workflow',
441
+ tenantId: 'test-tenant',
442
+ projectId: 'test-project',
443
+ name: 'Test Workflow',
444
+ description: 'A test workflow',
445
+ status: 'draft',
446
+ };
447
+
448
+ const created = await createWorkflow(db)({
449
+ tenantId: workflowData.tenantId,
450
+ projectId: workflowData.projectId,
451
+ data: workflowData,
452
+ });
453
+
454
+ expect(created.name).toBe(workflowData.name);
455
+ });
456
+ });
457
+ ```
458
+
@@ -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.