graphlit-client 1.0.20260301004 → 1.0.20260302002
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/client.d.ts +95 -2
- package/dist/client.js +140 -6
- package/dist/generated/graphql-documents.d.ts +13 -0
- package/dist/generated/graphql-documents.js +164 -2
- package/dist/generated/graphql-types.d.ts +407 -0
- package/dist/generated/graphql-types.js +10 -0
- package/dist/types/agent.d.ts +6 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1008,9 +1008,12 @@ declare class Graphlit {
|
|
|
1008
1008
|
* @param includeDetails - Whether to include details, optional.
|
|
1009
1009
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
1010
1010
|
* @param persona - The persona to use, optional.
|
|
1011
|
+
* @param instructions - Per-turn instructions to inject into guidance, optional.
|
|
1012
|
+
* @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
|
|
1013
|
+
* @param skills - Skill references to inject into the agent's context window, optional.
|
|
1011
1014
|
* @returns The formatted conversation.
|
|
1012
1015
|
*/
|
|
1013
|
-
formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: Types.ToolDefinitionInput[], systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string): Promise<Types.FormatConversationMutation>;
|
|
1016
|
+
formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: Types.ToolDefinitionInput[], systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string, skills?: Types.EntityReferenceInput[]): Promise<Types.FormatConversationMutation>;
|
|
1014
1017
|
/**
|
|
1015
1018
|
* Completes a conversation with an external LLM response.
|
|
1016
1019
|
* @param completion - The completion text from the external LLM.
|
|
@@ -1053,9 +1056,12 @@ declare class Graphlit {
|
|
|
1053
1056
|
* @param includeDetails - Whether to include details, optional.
|
|
1054
1057
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
1055
1058
|
* @param persona - The persona to use, optional.
|
|
1059
|
+
* @param instructions - Per-turn instructions to inject into guidance, optional.
|
|
1060
|
+
* @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
|
|
1061
|
+
* @param skills - Skill references to inject into the agent's context window, optional.
|
|
1056
1062
|
* @returns The conversation response.
|
|
1057
1063
|
*/
|
|
1058
|
-
promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, mimeType?: string, data?: string, tools?: Types.ToolDefinitionInput[], requireTool?: boolean, systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string): Promise<Types.PromptConversationMutation>;
|
|
1064
|
+
promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, mimeType?: string, data?: string, tools?: Types.ToolDefinitionInput[], requireTool?: boolean, systemPrompt?: string, includeDetails?: boolean, correlationId?: string, persona?: Types.EntityReferenceInput, instructions?: string, scratchpad?: string, skills?: Types.EntityReferenceInput[]): Promise<Types.PromptConversationMutation>;
|
|
1059
1065
|
/**
|
|
1060
1066
|
* Continues a conversation with tool responses.
|
|
1061
1067
|
* @param id - The conversation ID.
|
|
@@ -1369,6 +1375,93 @@ declare class Graphlit {
|
|
|
1369
1375
|
* @returns The matching persons.
|
|
1370
1376
|
*/
|
|
1371
1377
|
lookupPersons(linkedInUrl?: string, email?: string): Promise<Types.LookupPersonsQuery>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Creates a skill.
|
|
1380
|
+
* @param skill - The skill to create.
|
|
1381
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
1382
|
+
* @returns The created skill.
|
|
1383
|
+
*/
|
|
1384
|
+
createSkill(skill: Types.SkillInput, correlationId?: string): Promise<Types.CreateSkillMutation>;
|
|
1385
|
+
/**
|
|
1386
|
+
* Updates a skill.
|
|
1387
|
+
* @param skill - The skill to update.
|
|
1388
|
+
* @returns The updated skill.
|
|
1389
|
+
*/
|
|
1390
|
+
updateSkill(skill: Types.SkillUpdateInput): Promise<Types.UpdateSkillMutation>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Creates or updates a skill.
|
|
1393
|
+
* @param skill - The skill to create or update.
|
|
1394
|
+
* @returns The created or updated skill.
|
|
1395
|
+
*/
|
|
1396
|
+
upsertSkill(skill: Types.SkillInput): Promise<Types.UpsertSkillMutation>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Deletes a skill.
|
|
1399
|
+
* @param id - The ID of the skill to delete.
|
|
1400
|
+
* @returns The deleted skill.
|
|
1401
|
+
*/
|
|
1402
|
+
deleteSkill(id: string): Promise<Types.DeleteSkillMutation>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Deletes multiple skills.
|
|
1405
|
+
* @param ids - The IDs of the skills to delete.
|
|
1406
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
1407
|
+
* @returns The deleted skills.
|
|
1408
|
+
*/
|
|
1409
|
+
deleteSkills(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteSkillsMutation>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Deletes all skills based on the provided filter criteria.
|
|
1412
|
+
* @param filter - The filter criteria to apply when deleting skills.
|
|
1413
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
1414
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
1415
|
+
* @returns The result of the deletion.
|
|
1416
|
+
*/
|
|
1417
|
+
deleteAllSkills(filter?: Types.SkillFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllSkillsMutation>;
|
|
1418
|
+
/**
|
|
1419
|
+
* Enables a skill.
|
|
1420
|
+
* @param id - The ID of the skill to enable.
|
|
1421
|
+
* @returns The enabled skill.
|
|
1422
|
+
*/
|
|
1423
|
+
enableSkill(id: string): Promise<Types.EnableSkillMutation>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Disables a skill.
|
|
1426
|
+
* @param id - The ID of the skill to disable.
|
|
1427
|
+
* @returns The disabled skill.
|
|
1428
|
+
*/
|
|
1429
|
+
disableSkill(id: string): Promise<Types.DisableSkillMutation>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Lookup a skill given its ID.
|
|
1432
|
+
* @param id - ID of the skill.
|
|
1433
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
1434
|
+
* @returns The skill.
|
|
1435
|
+
*/
|
|
1436
|
+
getSkill(id: string, correlationId?: string): Promise<Types.GetSkillQuery>;
|
|
1437
|
+
/**
|
|
1438
|
+
* Retrieves skills based on the provided filter criteria.
|
|
1439
|
+
* @param filter - The filter criteria to apply when retrieving skills.
|
|
1440
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
1441
|
+
* @returns The skills.
|
|
1442
|
+
*/
|
|
1443
|
+
querySkills(filter?: Types.SkillFilter, correlationId?: string): Promise<Types.QuerySkillsQuery>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Counts skills based on the provided filter criteria.
|
|
1446
|
+
* @param filter - The filter criteria to apply when counting skills.
|
|
1447
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
1448
|
+
* @returns The count of skills.
|
|
1449
|
+
*/
|
|
1450
|
+
countSkills(filter?: Types.SkillFilter, correlationId?: string): Promise<Types.CountSkillsQuery>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Adds skills to one or more collections.
|
|
1453
|
+
* @param skills - The skills to add.
|
|
1454
|
+
* @param collections - The collections to add the skills to.
|
|
1455
|
+
* @returns The updated collections.
|
|
1456
|
+
*/
|
|
1457
|
+
addSkillsToCollections(skills: Types.EntityReferenceInput[], collections: Types.EntityReferenceInput[]): Promise<Types.AddSkillsToCollectionsMutation>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Removes skills from a collection.
|
|
1460
|
+
* @param skills - The skills to remove.
|
|
1461
|
+
* @param collection - The collection to remove the skills from.
|
|
1462
|
+
* @returns The updated collection.
|
|
1463
|
+
*/
|
|
1464
|
+
removeSkillsFromCollection(skills: Types.EntityReferenceInput[], collection: Types.EntityReferenceInput): Promise<Types.RemoveSkillsFromCollectionMutation>;
|
|
1372
1465
|
/**
|
|
1373
1466
|
* Prompts multiple specifications and returns the best response.
|
|
1374
1467
|
* @param prompt - The prompt to send to each specification.
|
package/dist/client.js
CHANGED
|
@@ -1863,9 +1863,12 @@ class Graphlit {
|
|
|
1863
1863
|
* @param includeDetails - Whether to include details, optional.
|
|
1864
1864
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
1865
1865
|
* @param persona - The persona to use, optional.
|
|
1866
|
+
* @param instructions - Per-turn instructions to inject into guidance, optional.
|
|
1867
|
+
* @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
|
|
1868
|
+
* @param skills - Skill references to inject into the agent's context window, optional.
|
|
1866
1869
|
* @returns The formatted conversation.
|
|
1867
1870
|
*/
|
|
1868
|
-
async formatConversation(prompt, id, specification, tools, systemPrompt, includeDetails, correlationId, persona, instructions) {
|
|
1871
|
+
async formatConversation(prompt, id, specification, tools, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad, skills) {
|
|
1869
1872
|
return this.mutateAndCheckError(Documents.FormatConversation, {
|
|
1870
1873
|
prompt: prompt,
|
|
1871
1874
|
id: id,
|
|
@@ -1876,6 +1879,8 @@ class Graphlit {
|
|
|
1876
1879
|
includeDetails: includeDetails,
|
|
1877
1880
|
correlationId: correlationId,
|
|
1878
1881
|
instructions: instructions,
|
|
1882
|
+
scratchpad: scratchpad,
|
|
1883
|
+
skills: skills,
|
|
1879
1884
|
});
|
|
1880
1885
|
}
|
|
1881
1886
|
/**
|
|
@@ -1943,9 +1948,12 @@ class Graphlit {
|
|
|
1943
1948
|
* @param includeDetails - Whether to include details, optional.
|
|
1944
1949
|
* @param correlationId - The tenant correlation identifier, optional.
|
|
1945
1950
|
* @param persona - The persona to use, optional.
|
|
1951
|
+
* @param instructions - Per-turn instructions to inject into guidance, optional.
|
|
1952
|
+
* @param scratchpad - Per-turn scratchpad text to inject, optional. Merged with conversation scratchpad.
|
|
1953
|
+
* @param skills - Skill references to inject into the agent's context window, optional.
|
|
1946
1954
|
* @returns The conversation response.
|
|
1947
1955
|
*/
|
|
1948
|
-
async promptConversation(prompt, id, specification, mimeType, data, tools, requireTool, systemPrompt, includeDetails, correlationId, persona, instructions) {
|
|
1956
|
+
async promptConversation(prompt, id, specification, mimeType, data, tools, requireTool, systemPrompt, includeDetails, correlationId, persona, instructions, scratchpad, skills) {
|
|
1949
1957
|
return this.mutateAndCheckError(Documents.PromptConversation, {
|
|
1950
1958
|
prompt: prompt,
|
|
1951
1959
|
id: id,
|
|
@@ -1959,6 +1967,8 @@ class Graphlit {
|
|
|
1959
1967
|
includeDetails: includeDetails,
|
|
1960
1968
|
correlationId: correlationId,
|
|
1961
1969
|
instructions: instructions,
|
|
1970
|
+
scratchpad: scratchpad,
|
|
1971
|
+
skills: skills,
|
|
1962
1972
|
});
|
|
1963
1973
|
}
|
|
1964
1974
|
/**
|
|
@@ -2425,6 +2435,126 @@ class Graphlit {
|
|
|
2425
2435
|
email: email,
|
|
2426
2436
|
});
|
|
2427
2437
|
}
|
|
2438
|
+
// ──────────────────────────────────────────────────────────────────────────
|
|
2439
|
+
// Skills
|
|
2440
|
+
// NOTE: Types (SkillInput, SkillUpdateInput, SkillFilter, etc.) and
|
|
2441
|
+
// Documents (CreateSkill, UpdateSkill, etc.) will be generated by codegen
|
|
2442
|
+
// once the API schema is published. Until then these methods will show
|
|
2443
|
+
// TypeScript errors — that is expected.
|
|
2444
|
+
// ──────────────────────────────────────────────────────────────────────────
|
|
2445
|
+
/**
|
|
2446
|
+
* Creates a skill.
|
|
2447
|
+
* @param skill - The skill to create.
|
|
2448
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
2449
|
+
* @returns The created skill.
|
|
2450
|
+
*/
|
|
2451
|
+
async createSkill(skill, correlationId) {
|
|
2452
|
+
return this.mutateAndCheckError(Documents.CreateSkill, { skill: skill, correlationId: correlationId });
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* Updates a skill.
|
|
2456
|
+
* @param skill - The skill to update.
|
|
2457
|
+
* @returns The updated skill.
|
|
2458
|
+
*/
|
|
2459
|
+
async updateSkill(skill) {
|
|
2460
|
+
return this.mutateAndCheckError(Documents.UpdateSkill, { skill: skill });
|
|
2461
|
+
}
|
|
2462
|
+
/**
|
|
2463
|
+
* Creates or updates a skill.
|
|
2464
|
+
* @param skill - The skill to create or update.
|
|
2465
|
+
* @returns The created or updated skill.
|
|
2466
|
+
*/
|
|
2467
|
+
async upsertSkill(skill) {
|
|
2468
|
+
return this.mutateAndCheckError(Documents.UpsertSkill, { skill: skill });
|
|
2469
|
+
}
|
|
2470
|
+
/**
|
|
2471
|
+
* Deletes a skill.
|
|
2472
|
+
* @param id - The ID of the skill to delete.
|
|
2473
|
+
* @returns The deleted skill.
|
|
2474
|
+
*/
|
|
2475
|
+
async deleteSkill(id) {
|
|
2476
|
+
return this.mutateAndCheckError(Documents.DeleteSkill, { id: id });
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* Deletes multiple skills.
|
|
2480
|
+
* @param ids - The IDs of the skills to delete.
|
|
2481
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
2482
|
+
* @returns The deleted skills.
|
|
2483
|
+
*/
|
|
2484
|
+
async deleteSkills(ids, isSynchronous) {
|
|
2485
|
+
return this.mutateAndCheckError(Documents.DeleteSkills, { ids: ids, isSynchronous: isSynchronous });
|
|
2486
|
+
}
|
|
2487
|
+
/**
|
|
2488
|
+
* Deletes all skills based on the provided filter criteria.
|
|
2489
|
+
* @param filter - The filter criteria to apply when deleting skills.
|
|
2490
|
+
* @param isSynchronous - Whether this mutation is synchronous.
|
|
2491
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
2492
|
+
* @returns The result of the deletion.
|
|
2493
|
+
*/
|
|
2494
|
+
async deleteAllSkills(filter, isSynchronous, correlationId) {
|
|
2495
|
+
return this.mutateAndCheckError(Documents.DeleteAllSkills, { filter: filter, isSynchronous: isSynchronous, correlationId: correlationId });
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
* Enables a skill.
|
|
2499
|
+
* @param id - The ID of the skill to enable.
|
|
2500
|
+
* @returns The enabled skill.
|
|
2501
|
+
*/
|
|
2502
|
+
async enableSkill(id) {
|
|
2503
|
+
return this.mutateAndCheckError(Documents.EnableSkill, { id: id });
|
|
2504
|
+
}
|
|
2505
|
+
/**
|
|
2506
|
+
* Disables a skill.
|
|
2507
|
+
* @param id - The ID of the skill to disable.
|
|
2508
|
+
* @returns The disabled skill.
|
|
2509
|
+
*/
|
|
2510
|
+
async disableSkill(id) {
|
|
2511
|
+
return this.mutateAndCheckError(Documents.DisableSkill, { id: id });
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Lookup a skill given its ID.
|
|
2515
|
+
* @param id - ID of the skill.
|
|
2516
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
2517
|
+
* @returns The skill.
|
|
2518
|
+
*/
|
|
2519
|
+
async getSkill(id, correlationId) {
|
|
2520
|
+
return this.queryAndCheckError(Documents.GetSkill, { id: id, correlationId: correlationId });
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Retrieves skills based on the provided filter criteria.
|
|
2524
|
+
* @param filter - The filter criteria to apply when retrieving skills.
|
|
2525
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
2526
|
+
* @returns The skills.
|
|
2527
|
+
*/
|
|
2528
|
+
async querySkills(filter, correlationId) {
|
|
2529
|
+
return this.queryAndCheckError(Documents.QuerySkills, { filter: filter, correlationId: correlationId });
|
|
2530
|
+
}
|
|
2531
|
+
/**
|
|
2532
|
+
* Counts skills based on the provided filter criteria.
|
|
2533
|
+
* @param filter - The filter criteria to apply when counting skills.
|
|
2534
|
+
* @param correlationId - The tenant correlation identifier, optional.
|
|
2535
|
+
* @returns The count of skills.
|
|
2536
|
+
*/
|
|
2537
|
+
async countSkills(filter, correlationId) {
|
|
2538
|
+
return this.queryAndCheckError(Documents.CountSkills, { filter: filter, correlationId: correlationId });
|
|
2539
|
+
}
|
|
2540
|
+
/**
|
|
2541
|
+
* Adds skills to one or more collections.
|
|
2542
|
+
* @param skills - The skills to add.
|
|
2543
|
+
* @param collections - The collections to add the skills to.
|
|
2544
|
+
* @returns The updated collections.
|
|
2545
|
+
*/
|
|
2546
|
+
async addSkillsToCollections(skills, collections) {
|
|
2547
|
+
return this.mutateAndCheckError(Documents.AddSkillsToCollections, { skills: skills, collections: collections });
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Removes skills from a collection.
|
|
2551
|
+
* @param skills - The skills to remove.
|
|
2552
|
+
* @param collection - The collection to remove the skills from.
|
|
2553
|
+
* @returns The updated collection.
|
|
2554
|
+
*/
|
|
2555
|
+
async removeSkillsFromCollection(skills, collection) {
|
|
2556
|
+
return this.mutateAndCheckError(Documents.RemoveSkillsFromCollection, { skills: skills, collection: collection });
|
|
2557
|
+
}
|
|
2428
2558
|
/**
|
|
2429
2559
|
* Prompts multiple specifications and returns the best response.
|
|
2430
2560
|
* @param prompt - The prompt to send to each specification.
|
|
@@ -5075,7 +5205,7 @@ class Graphlit {
|
|
|
5075
5205
|
});
|
|
5076
5206
|
// Start the streaming conversation
|
|
5077
5207
|
// fullSpec is guaranteed non-null here — the !fullSpec check above returns early
|
|
5078
|
-
await this.executeStreamingAgent(prompt, actualConversationId, fullSpec, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, options?.contextStrategy, options?.instructions);
|
|
5208
|
+
await this.executeStreamingAgent(prompt, actualConversationId, fullSpec, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, options?.contextStrategy, options?.instructions, options?.scratchpad, options?.skills);
|
|
5079
5209
|
}, abortSignal);
|
|
5080
5210
|
}
|
|
5081
5211
|
catch (error) {
|
|
@@ -5121,7 +5251,7 @@ class Graphlit {
|
|
|
5121
5251
|
/**
|
|
5122
5252
|
* Execute the streaming agent workflow with tool calling loop
|
|
5123
5253
|
*/
|
|
5124
|
-
async executeStreamingAgent(prompt, conversationId, specification, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, contextStrategy, instructions) {
|
|
5254
|
+
async executeStreamingAgent(prompt, conversationId, specification, tools, toolHandlers, uiAdapter, maxRounds, abortSignal, mimeType, data, correlationId, persona, contextStrategy, instructions, scratchpad, skills) {
|
|
5125
5255
|
// Collects artifact content IDs from tool handlers (e.g. code_execution).
|
|
5126
5256
|
// Handlers register async ingestion promises; we await all of them before
|
|
5127
5257
|
// completeConversation so the IDs are available without blocking the LLM.
|
|
@@ -5141,7 +5271,7 @@ class Graphlit {
|
|
|
5141
5271
|
conversationId,
|
|
5142
5272
|
});
|
|
5143
5273
|
// Format conversation once at the beginning
|
|
5144
|
-
const formatResponse = await this.formatConversation(prompt, conversationId, { id: specification.id }, tools, undefined, true, correlationId, persona, instructions);
|
|
5274
|
+
const formatResponse = await this.formatConversation(prompt, conversationId, { id: specification.id }, tools, undefined, true, correlationId, persona, instructions, scratchpad, skills);
|
|
5145
5275
|
const formattedMessage = formatResponse.formatConversation?.message;
|
|
5146
5276
|
const conversationHistory = formatResponse.formatConversation?.details?.messages;
|
|
5147
5277
|
if (!formattedMessage?.message) {
|
|
@@ -5952,6 +6082,7 @@ class Graphlit {
|
|
|
5952
6082
|
// Resolve or create Agent entity
|
|
5953
6083
|
let agentSpec = specification;
|
|
5954
6084
|
let agentFilter;
|
|
6085
|
+
let agentScratchpad;
|
|
5955
6086
|
if (agentId) {
|
|
5956
6087
|
const agentResponse = await this.getAgent(agentId, options?.correlationId);
|
|
5957
6088
|
const agent = agentResponse.agent;
|
|
@@ -5968,6 +6099,9 @@ class Graphlit {
|
|
|
5968
6099
|
if (agent.filter) {
|
|
5969
6100
|
agentFilter = agent.filter;
|
|
5970
6101
|
}
|
|
6102
|
+
if (agent.scratchpad) {
|
|
6103
|
+
agentScratchpad = agent.scratchpad;
|
|
6104
|
+
}
|
|
5971
6105
|
}
|
|
5972
6106
|
else {
|
|
5973
6107
|
// Create ephemeral agent
|
|
@@ -6134,7 +6268,7 @@ class Graphlit {
|
|
|
6134
6268
|
}
|
|
6135
6269
|
else {
|
|
6136
6270
|
// Formatted path: call formatConversation
|
|
6137
|
-
const formatResponse = await this.formatConversation(turn === 0 ? prompt : "Continue.", conversationId, agentSpec, allTools, undefined, true, options?.correlationId, options?.persona, turnInstructions);
|
|
6271
|
+
const formatResponse = await this.formatConversation(turn === 0 ? prompt : "Continue.", conversationId, agentSpec, allTools, undefined, true, options?.correlationId, options?.persona, turnInstructions, agentScratchpad, options?.skills);
|
|
6138
6272
|
const formattedMessage = formatResponse.formatConversation?.message;
|
|
6139
6273
|
const conversationHistory = formatResponse.formatConversation?.details?.messages;
|
|
6140
6274
|
const formatDetails = formatResponse.formatConversation?.details;
|
|
@@ -31,6 +31,7 @@ export declare const UpdateCategory: import("graphql").DocumentNode;
|
|
|
31
31
|
export declare const UpsertCategory: import("graphql").DocumentNode;
|
|
32
32
|
export declare const AddContentsToCollections: import("graphql").DocumentNode;
|
|
33
33
|
export declare const AddConversationsToCollections: import("graphql").DocumentNode;
|
|
34
|
+
export declare const AddSkillsToCollections: import("graphql").DocumentNode;
|
|
34
35
|
export declare const CountCollections: import("graphql").DocumentNode;
|
|
35
36
|
export declare const CreateCollection: import("graphql").DocumentNode;
|
|
36
37
|
export declare const DeleteAllCollections: import("graphql").DocumentNode;
|
|
@@ -40,6 +41,7 @@ export declare const GetCollection: import("graphql").DocumentNode;
|
|
|
40
41
|
export declare const QueryCollections: import("graphql").DocumentNode;
|
|
41
42
|
export declare const RemoveContentsFromCollection: import("graphql").DocumentNode;
|
|
42
43
|
export declare const RemoveConversationsFromCollection: import("graphql").DocumentNode;
|
|
44
|
+
export declare const RemoveSkillsFromCollection: import("graphql").DocumentNode;
|
|
43
45
|
export declare const UpdateCollection: import("graphql").DocumentNode;
|
|
44
46
|
export declare const CountConnectors: import("graphql").DocumentNode;
|
|
45
47
|
export declare const CreateConnector: import("graphql").DocumentNode;
|
|
@@ -389,6 +391,17 @@ export declare const QueryReposClusters: import("graphql").DocumentNode;
|
|
|
389
391
|
export declare const UpdateRepo: import("graphql").DocumentNode;
|
|
390
392
|
export declare const MapWeb: import("graphql").DocumentNode;
|
|
391
393
|
export declare const SearchWeb: import("graphql").DocumentNode;
|
|
394
|
+
export declare const CountSkills: import("graphql").DocumentNode;
|
|
395
|
+
export declare const CreateSkill: import("graphql").DocumentNode;
|
|
396
|
+
export declare const DeleteAllSkills: import("graphql").DocumentNode;
|
|
397
|
+
export declare const DeleteSkill: import("graphql").DocumentNode;
|
|
398
|
+
export declare const DeleteSkills: import("graphql").DocumentNode;
|
|
399
|
+
export declare const DisableSkill: import("graphql").DocumentNode;
|
|
400
|
+
export declare const EnableSkill: import("graphql").DocumentNode;
|
|
401
|
+
export declare const GetSkill: import("graphql").DocumentNode;
|
|
402
|
+
export declare const QuerySkills: import("graphql").DocumentNode;
|
|
403
|
+
export declare const UpdateSkill: import("graphql").DocumentNode;
|
|
404
|
+
export declare const UpsertSkill: import("graphql").DocumentNode;
|
|
392
405
|
export declare const CountSoftwares: import("graphql").DocumentNode;
|
|
393
406
|
export declare const CreateSoftware: import("graphql").DocumentNode;
|
|
394
407
|
export declare const DeleteAllSoftwares: import("graphql").DocumentNode;
|
|
@@ -934,6 +934,20 @@ export const AddConversationsToCollections = gql `
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
`;
|
|
937
|
+
export const AddSkillsToCollections = gql `
|
|
938
|
+
mutation AddSkillsToCollections($skills: [EntityReferenceInput!]!, $collections: [EntityReferenceInput!]!) {
|
|
939
|
+
addSkillsToCollections(skills: $skills, collections: $collections) {
|
|
940
|
+
id
|
|
941
|
+
name
|
|
942
|
+
state
|
|
943
|
+
type
|
|
944
|
+
skills {
|
|
945
|
+
id
|
|
946
|
+
name
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
`;
|
|
937
951
|
export const CountCollections = gql `
|
|
938
952
|
query CountCollections($filter: CollectionFilter, $correlationId: String) {
|
|
939
953
|
countCollections(filter: $filter, correlationId: $correlationId) {
|
|
@@ -1051,6 +1065,20 @@ export const RemoveConversationsFromCollection = gql `
|
|
|
1051
1065
|
}
|
|
1052
1066
|
}
|
|
1053
1067
|
`;
|
|
1068
|
+
export const RemoveSkillsFromCollection = gql `
|
|
1069
|
+
mutation RemoveSkillsFromCollection($skills: [EntityReferenceInput!]!, $collection: EntityReferenceInput!) {
|
|
1070
|
+
removeSkillsFromCollection(skills: $skills, collection: $collection) {
|
|
1071
|
+
id
|
|
1072
|
+
name
|
|
1073
|
+
state
|
|
1074
|
+
type
|
|
1075
|
+
skills {
|
|
1076
|
+
id
|
|
1077
|
+
name
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
`;
|
|
1054
1082
|
export const UpdateCollection = gql `
|
|
1055
1083
|
mutation UpdateCollection($collection: CollectionUpdateInput!) {
|
|
1056
1084
|
updateCollection(collection: $collection) {
|
|
@@ -4827,6 +4855,7 @@ export const CompleteConversation = gql `
|
|
|
4827
4855
|
formattedSources
|
|
4828
4856
|
formattedObservables
|
|
4829
4857
|
formattedInstructions
|
|
4858
|
+
formattedScratchpad
|
|
4830
4859
|
formattedTools
|
|
4831
4860
|
formattedPersona
|
|
4832
4861
|
specification
|
|
@@ -5174,6 +5203,7 @@ export const ContinueConversation = gql `
|
|
|
5174
5203
|
formattedSources
|
|
5175
5204
|
formattedObservables
|
|
5176
5205
|
formattedInstructions
|
|
5206
|
+
formattedScratchpad
|
|
5177
5207
|
formattedTools
|
|
5178
5208
|
formattedPersona
|
|
5179
5209
|
specification
|
|
@@ -5367,7 +5397,7 @@ export const DeleteConversations = gql `
|
|
|
5367
5397
|
}
|
|
5368
5398
|
`;
|
|
5369
5399
|
export const FormatConversation = gql `
|
|
5370
|
-
mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $tools: [ToolDefinitionInput!], $systemPrompt: String, $includeDetails: Boolean, $correlationId: String, $instructions: String) {
|
|
5400
|
+
mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $tools: [ToolDefinitionInput!], $systemPrompt: String, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String, $skills: [EntityReferenceInput!]) {
|
|
5371
5401
|
formatConversation(
|
|
5372
5402
|
prompt: $prompt
|
|
5373
5403
|
id: $id
|
|
@@ -5378,6 +5408,8 @@ export const FormatConversation = gql `
|
|
|
5378
5408
|
includeDetails: $includeDetails
|
|
5379
5409
|
correlationId: $correlationId
|
|
5380
5410
|
instructions: $instructions
|
|
5411
|
+
scratchpad: $scratchpad
|
|
5412
|
+
skills: $skills
|
|
5381
5413
|
) {
|
|
5382
5414
|
conversation {
|
|
5383
5415
|
id
|
|
@@ -5572,6 +5604,7 @@ export const FormatConversation = gql `
|
|
|
5572
5604
|
formattedSources
|
|
5573
5605
|
formattedObservables
|
|
5574
5606
|
formattedInstructions
|
|
5607
|
+
formattedScratchpad
|
|
5575
5608
|
formattedTools
|
|
5576
5609
|
formattedPersona
|
|
5577
5610
|
specification
|
|
@@ -6292,7 +6325,7 @@ export const Prompt = gql `
|
|
|
6292
6325
|
}
|
|
6293
6326
|
`;
|
|
6294
6327
|
export const PromptConversation = gql `
|
|
6295
|
-
mutation PromptConversation($prompt: String!, $mimeType: String, $data: String, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $systemPrompt: String, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $includeDetails: Boolean, $correlationId: String, $instructions: String) {
|
|
6328
|
+
mutation PromptConversation($prompt: String!, $mimeType: String, $data: String, $id: ID, $specification: EntityReferenceInput, $persona: EntityReferenceInput, $systemPrompt: String, $tools: [ToolDefinitionInput!], $requireTool: Boolean, $includeDetails: Boolean, $correlationId: String, $instructions: String, $scratchpad: String, $skills: [EntityReferenceInput!]) {
|
|
6296
6329
|
promptConversation(
|
|
6297
6330
|
prompt: $prompt
|
|
6298
6331
|
id: $id
|
|
@@ -6306,6 +6339,8 @@ export const PromptConversation = gql `
|
|
|
6306
6339
|
includeDetails: $includeDetails
|
|
6307
6340
|
correlationId: $correlationId
|
|
6308
6341
|
instructions: $instructions
|
|
6342
|
+
scratchpad: $scratchpad
|
|
6343
|
+
skills: $skills
|
|
6309
6344
|
) {
|
|
6310
6345
|
conversation {
|
|
6311
6346
|
id
|
|
@@ -6500,6 +6535,7 @@ export const PromptConversation = gql `
|
|
|
6500
6535
|
formattedSources
|
|
6501
6536
|
formattedObservables
|
|
6502
6537
|
formattedInstructions
|
|
6538
|
+
formattedScratchpad
|
|
6503
6539
|
formattedTools
|
|
6504
6540
|
formattedPersona
|
|
6505
6541
|
specification
|
|
@@ -16445,6 +16481,132 @@ export const SearchWeb = gql `
|
|
|
16445
16481
|
}
|
|
16446
16482
|
}
|
|
16447
16483
|
`;
|
|
16484
|
+
export const CountSkills = gql `
|
|
16485
|
+
query CountSkills($filter: SkillFilter, $correlationId: String) {
|
|
16486
|
+
countSkills(filter: $filter, correlationId: $correlationId) {
|
|
16487
|
+
count
|
|
16488
|
+
}
|
|
16489
|
+
}
|
|
16490
|
+
`;
|
|
16491
|
+
export const CreateSkill = gql `
|
|
16492
|
+
mutation CreateSkill($skill: SkillInput!, $correlationId: String) {
|
|
16493
|
+
createSkill(skill: $skill, correlationId: $correlationId) {
|
|
16494
|
+
id
|
|
16495
|
+
name
|
|
16496
|
+
state
|
|
16497
|
+
skillOwner
|
|
16498
|
+
}
|
|
16499
|
+
}
|
|
16500
|
+
`;
|
|
16501
|
+
export const DeleteAllSkills = gql `
|
|
16502
|
+
mutation DeleteAllSkills($filter: SkillFilter, $isSynchronous: Boolean, $correlationId: String) {
|
|
16503
|
+
deleteAllSkills(
|
|
16504
|
+
filter: $filter
|
|
16505
|
+
isSynchronous: $isSynchronous
|
|
16506
|
+
correlationId: $correlationId
|
|
16507
|
+
) {
|
|
16508
|
+
id
|
|
16509
|
+
state
|
|
16510
|
+
}
|
|
16511
|
+
}
|
|
16512
|
+
`;
|
|
16513
|
+
export const DeleteSkill = gql `
|
|
16514
|
+
mutation DeleteSkill($id: ID!) {
|
|
16515
|
+
deleteSkill(id: $id) {
|
|
16516
|
+
id
|
|
16517
|
+
state
|
|
16518
|
+
}
|
|
16519
|
+
}
|
|
16520
|
+
`;
|
|
16521
|
+
export const DeleteSkills = gql `
|
|
16522
|
+
mutation DeleteSkills($ids: [ID!]!, $isSynchronous: Boolean) {
|
|
16523
|
+
deleteSkills(ids: $ids, isSynchronous: $isSynchronous) {
|
|
16524
|
+
id
|
|
16525
|
+
state
|
|
16526
|
+
}
|
|
16527
|
+
}
|
|
16528
|
+
`;
|
|
16529
|
+
export const DisableSkill = gql `
|
|
16530
|
+
mutation DisableSkill($id: ID!) {
|
|
16531
|
+
disableSkill(id: $id) {
|
|
16532
|
+
id
|
|
16533
|
+
state
|
|
16534
|
+
}
|
|
16535
|
+
}
|
|
16536
|
+
`;
|
|
16537
|
+
export const EnableSkill = gql `
|
|
16538
|
+
mutation EnableSkill($id: ID!) {
|
|
16539
|
+
enableSkill(id: $id) {
|
|
16540
|
+
id
|
|
16541
|
+
state
|
|
16542
|
+
}
|
|
16543
|
+
}
|
|
16544
|
+
`;
|
|
16545
|
+
export const GetSkill = gql `
|
|
16546
|
+
query GetSkill($id: ID!, $correlationId: String) {
|
|
16547
|
+
skill(id: $id, correlationId: $correlationId) {
|
|
16548
|
+
id
|
|
16549
|
+
name
|
|
16550
|
+
creationDate
|
|
16551
|
+
modifiedDate
|
|
16552
|
+
owner {
|
|
16553
|
+
id
|
|
16554
|
+
}
|
|
16555
|
+
state
|
|
16556
|
+
correlationId
|
|
16557
|
+
text
|
|
16558
|
+
skillOwner
|
|
16559
|
+
collections {
|
|
16560
|
+
id
|
|
16561
|
+
name
|
|
16562
|
+
}
|
|
16563
|
+
}
|
|
16564
|
+
}
|
|
16565
|
+
`;
|
|
16566
|
+
export const QuerySkills = gql `
|
|
16567
|
+
query QuerySkills($filter: SkillFilter, $correlationId: String) {
|
|
16568
|
+
skills(filter: $filter, correlationId: $correlationId) {
|
|
16569
|
+
results {
|
|
16570
|
+
id
|
|
16571
|
+
name
|
|
16572
|
+
creationDate
|
|
16573
|
+
modifiedDate
|
|
16574
|
+
relevance
|
|
16575
|
+
owner {
|
|
16576
|
+
id
|
|
16577
|
+
}
|
|
16578
|
+
state
|
|
16579
|
+
correlationId
|
|
16580
|
+
text
|
|
16581
|
+
skillOwner
|
|
16582
|
+
collections {
|
|
16583
|
+
id
|
|
16584
|
+
name
|
|
16585
|
+
}
|
|
16586
|
+
}
|
|
16587
|
+
}
|
|
16588
|
+
}
|
|
16589
|
+
`;
|
|
16590
|
+
export const UpdateSkill = gql `
|
|
16591
|
+
mutation UpdateSkill($skill: SkillUpdateInput!) {
|
|
16592
|
+
updateSkill(skill: $skill) {
|
|
16593
|
+
id
|
|
16594
|
+
name
|
|
16595
|
+
state
|
|
16596
|
+
skillOwner
|
|
16597
|
+
}
|
|
16598
|
+
}
|
|
16599
|
+
`;
|
|
16600
|
+
export const UpsertSkill = gql `
|
|
16601
|
+
mutation UpsertSkill($skill: SkillInput!) {
|
|
16602
|
+
upsertSkill(skill: $skill) {
|
|
16603
|
+
id
|
|
16604
|
+
name
|
|
16605
|
+
state
|
|
16606
|
+
skillOwner
|
|
16607
|
+
}
|
|
16608
|
+
}
|
|
16609
|
+
`;
|
|
16448
16610
|
export const CountSoftwares = gql `
|
|
16449
16611
|
query CountSoftwares($filter: SoftwareFilter, $correlationId: String) {
|
|
16450
16612
|
countSoftwares(filter: $filter, correlationId: $correlationId) {
|
|
@@ -2409,6 +2409,10 @@ export type Collection = {
|
|
|
2409
2409
|
owner: Owner;
|
|
2410
2410
|
/** The relevance score of the collection. */
|
|
2411
2411
|
relevance?: Maybe<Scalars['Float']['output']>;
|
|
2412
|
+
/** The count of the skills contained by the collection. */
|
|
2413
|
+
skillCount?: Maybe<Scalars['Int']['output']>;
|
|
2414
|
+
/** The skills contained by the collection. */
|
|
2415
|
+
skills?: Maybe<Array<Maybe<Skill>>>;
|
|
2412
2416
|
/** The state of the collection (i.e. created, finished). */
|
|
2413
2417
|
state: EntityState;
|
|
2414
2418
|
/** The collection type. */
|
|
@@ -3711,6 +3715,8 @@ export type Conversation = {
|
|
|
3711
3715
|
persona?: Maybe<Persona>;
|
|
3712
3716
|
/** The relevance score of the conversation. */
|
|
3713
3717
|
relevance?: Maybe<Scalars['Float']['output']>;
|
|
3718
|
+
/** The conversation scratchpad, for storing harness working memory as raw text. */
|
|
3719
|
+
scratchpad?: Maybe<Scalars['String']['output']>;
|
|
3714
3720
|
/** The LLM specification used by this conversation. */
|
|
3715
3721
|
specification?: Maybe<Specification>;
|
|
3716
3722
|
/** The state of the conversation (i.e. created, finished). */
|
|
@@ -3753,6 +3759,10 @@ export type ConversationDetails = {
|
|
|
3753
3759
|
formattedObservables?: Maybe<Scalars['String']['output']>;
|
|
3754
3760
|
/** The formatted persona prompt. */
|
|
3755
3761
|
formattedPersona?: Maybe<Scalars['String']['output']>;
|
|
3762
|
+
/** The formatted scratchpad. */
|
|
3763
|
+
formattedScratchpad?: Maybe<Scalars['String']['output']>;
|
|
3764
|
+
/** The formatted skills content. */
|
|
3765
|
+
formattedSkills?: Maybe<Scalars['String']['output']>;
|
|
3756
3766
|
/** The formatted sources. */
|
|
3757
3767
|
formattedSources?: Maybe<Scalars['String']['output']>;
|
|
3758
3768
|
/** The formatted LLM tools. */
|
|
@@ -3864,6 +3874,8 @@ export type ConversationInput = {
|
|
|
3864
3874
|
name: Scalars['String']['input'];
|
|
3865
3875
|
/** The persona used by this conversation, optional. */
|
|
3866
3876
|
persona?: InputMaybe<EntityReferenceInput>;
|
|
3877
|
+
/** The conversation scratchpad, for storing harness working memory as raw text. */
|
|
3878
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
3867
3879
|
/** The LLM specification used by this conversation, optional. */
|
|
3868
3880
|
specification?: InputMaybe<EntityReferenceInput>;
|
|
3869
3881
|
/** The tool calling definitions. */
|
|
@@ -4166,6 +4178,8 @@ export type ConversationUpdateInput = {
|
|
|
4166
4178
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
4167
4179
|
/** The persona used by this conversation, optional. */
|
|
4168
4180
|
persona?: InputMaybe<EntityReferenceInput>;
|
|
4181
|
+
/** The conversation scratchpad, for storing harness working memory as raw text. */
|
|
4182
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
4169
4183
|
/** The LLM specification used by this conversation, optional. */
|
|
4170
4184
|
specification?: InputMaybe<EntityReferenceInput>;
|
|
4171
4185
|
/** The tool calling definitions. */
|
|
@@ -5704,6 +5718,13 @@ export type EntityFeedPropertiesUpdateInput = {
|
|
|
5704
5718
|
/** The limit of items to be read from feed, defaults to 100. */
|
|
5705
5719
|
readLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
5706
5720
|
};
|
|
5721
|
+
/** Entity owner */
|
|
5722
|
+
export declare enum EntityOwners {
|
|
5723
|
+
/** Owned by project */
|
|
5724
|
+
Project = "PROJECT",
|
|
5725
|
+
/** Owned by system */
|
|
5726
|
+
System = "SYSTEM"
|
|
5727
|
+
}
|
|
5707
5728
|
/** Represents an entity reference. */
|
|
5708
5729
|
export type EntityReference = {
|
|
5709
5730
|
__typename?: 'EntityReference';
|
|
@@ -5914,6 +5935,8 @@ export declare enum EntityTypes {
|
|
|
5914
5935
|
Repo = "REPO",
|
|
5915
5936
|
/** Cloud storage site */
|
|
5916
5937
|
Site = "SITE",
|
|
5938
|
+
/** Skill */
|
|
5939
|
+
Skill = "SKILL",
|
|
5917
5940
|
/** Software */
|
|
5918
5941
|
Software = "SOFTWARE",
|
|
5919
5942
|
/** Model specification */
|
|
@@ -13849,6 +13872,8 @@ export type Mutation = {
|
|
|
13849
13872
|
addContentsToCollections?: Maybe<Array<Maybe<Collection>>>;
|
|
13850
13873
|
/** Adds conversations to one or more collections. */
|
|
13851
13874
|
addConversationsToCollections?: Maybe<Array<Maybe<Collection>>>;
|
|
13875
|
+
/** Adds skills to one or more collections. */
|
|
13876
|
+
addSkillsToCollections?: Maybe<Array<Maybe<Collection>>>;
|
|
13852
13877
|
/** Approves content, and resumes workflow from the prepared stage (without re-ingesting or re-running the storage gate). */
|
|
13853
13878
|
approveContent?: Maybe<Content>;
|
|
13854
13879
|
/** Ask questions about the Graphlit API or SDKs. Can create code samples for any API call. */
|
|
@@ -13927,6 +13952,8 @@ export type Mutation = {
|
|
|
13927
13952
|
createProduct?: Maybe<Product>;
|
|
13928
13953
|
/** Creates a new repo. */
|
|
13929
13954
|
createRepo?: Maybe<Repo>;
|
|
13955
|
+
/** Creates a new skill. */
|
|
13956
|
+
createSkill?: Maybe<Skill>;
|
|
13930
13957
|
/** Creates a new software. */
|
|
13931
13958
|
createSoftware?: Maybe<Software>;
|
|
13932
13959
|
/** Creates a new LLM specification. */
|
|
@@ -14005,6 +14032,8 @@ export type Mutation = {
|
|
|
14005
14032
|
deleteAllProducts?: Maybe<Array<Maybe<Product>>>;
|
|
14006
14033
|
/** Bulk deletes repos based on the provided filter criteria. */
|
|
14007
14034
|
deleteAllRepos?: Maybe<Array<Maybe<Repo>>>;
|
|
14035
|
+
/** Bulk deletes skills based on the provided filter criteria. */
|
|
14036
|
+
deleteAllSkills?: Maybe<Array<Maybe<Skill>>>;
|
|
14008
14037
|
/** Bulk deletes software based on the provided filter criteria. */
|
|
14009
14038
|
deleteAllSoftwares?: Maybe<Array<Maybe<Software>>>;
|
|
14010
14039
|
/** Bulk deletes specifications based on the provided filter criteria. */
|
|
@@ -14129,6 +14158,10 @@ export type Mutation = {
|
|
|
14129
14158
|
deleteRepo?: Maybe<Repo>;
|
|
14130
14159
|
/** Bulk deletes repos. */
|
|
14131
14160
|
deleteRepos?: Maybe<Array<Maybe<Repo>>>;
|
|
14161
|
+
/** Deletes a skill. */
|
|
14162
|
+
deleteSkill?: Maybe<Skill>;
|
|
14163
|
+
/** Bulk deletes skills. */
|
|
14164
|
+
deleteSkills?: Maybe<Array<Maybe<Skill>>>;
|
|
14132
14165
|
/** Deletes a software. */
|
|
14133
14166
|
deleteSoftware?: Maybe<Software>;
|
|
14134
14167
|
/** Bulk deletes software. */
|
|
@@ -14157,6 +14190,8 @@ export type Mutation = {
|
|
|
14157
14190
|
disableAlert?: Maybe<Alert>;
|
|
14158
14191
|
/** Disables a feed. */
|
|
14159
14192
|
disableFeed?: Maybe<Feed>;
|
|
14193
|
+
/** Disables a skill. */
|
|
14194
|
+
disableSkill?: Maybe<Skill>;
|
|
14160
14195
|
/** Disables a user. */
|
|
14161
14196
|
disableUser?: Maybe<User>;
|
|
14162
14197
|
/** Distribute to an external service. */
|
|
@@ -14167,6 +14202,8 @@ export type Mutation = {
|
|
|
14167
14202
|
enableAlert?: Maybe<Alert>;
|
|
14168
14203
|
/** Enables a feed. */
|
|
14169
14204
|
enableFeed?: Maybe<Feed>;
|
|
14205
|
+
/** Enables a skill. */
|
|
14206
|
+
enableSkill?: Maybe<Skill>;
|
|
14170
14207
|
/** Enables a user. */
|
|
14171
14208
|
enableUser?: Maybe<User>;
|
|
14172
14209
|
/** Enriches organizations matching the filter criteria using the specified enrichment connector. */
|
|
@@ -14237,6 +14274,8 @@ export type Mutation = {
|
|
|
14237
14274
|
removeContentsFromCollection?: Maybe<Collection>;
|
|
14238
14275
|
/** Removes conversations from a collection. */
|
|
14239
14276
|
removeConversationsFromCollection?: Maybe<Collection>;
|
|
14277
|
+
/** Removes skills from a collection. */
|
|
14278
|
+
removeSkillsFromCollection?: Maybe<Collection>;
|
|
14240
14279
|
/** Research contents via web research based on provided filter criteria. */
|
|
14241
14280
|
researchContents?: Maybe<StringResult>;
|
|
14242
14281
|
/** Resolves duplicate entities into a single primary entity using LLM reasoning. Returns clusters of suggested groupings if resolution is not executed. */
|
|
@@ -14343,6 +14382,8 @@ export type Mutation = {
|
|
|
14343
14382
|
updateProject?: Maybe<Project>;
|
|
14344
14383
|
/** Updates a repo. */
|
|
14345
14384
|
updateRepo?: Maybe<Repo>;
|
|
14385
|
+
/** Updates an existing skill. */
|
|
14386
|
+
updateSkill?: Maybe<Skill>;
|
|
14346
14387
|
/** Updates a software. */
|
|
14347
14388
|
updateSoftware?: Maybe<Software>;
|
|
14348
14389
|
/** Updates an existing LLM specification. */
|
|
@@ -14363,6 +14404,8 @@ export type Mutation = {
|
|
|
14363
14404
|
upsertEmotion?: Maybe<Emotion>;
|
|
14364
14405
|
/** Upserts a label. */
|
|
14365
14406
|
upsertLabel?: Maybe<Label>;
|
|
14407
|
+
/** Upserts a skill. */
|
|
14408
|
+
upsertSkill?: Maybe<Skill>;
|
|
14366
14409
|
/** Upserts an LLM specification. */
|
|
14367
14410
|
upsertSpecification?: Maybe<Specification>;
|
|
14368
14411
|
/** Upserts a view. */
|
|
@@ -14382,6 +14425,10 @@ export type MutationAddConversationsToCollectionsArgs = {
|
|
|
14382
14425
|
collections: Array<EntityReferenceInput>;
|
|
14383
14426
|
conversations: Array<EntityReferenceInput>;
|
|
14384
14427
|
};
|
|
14428
|
+
export type MutationAddSkillsToCollectionsArgs = {
|
|
14429
|
+
collections: Array<EntityReferenceInput>;
|
|
14430
|
+
skills: Array<EntityReferenceInput>;
|
|
14431
|
+
};
|
|
14385
14432
|
export type MutationApproveContentArgs = {
|
|
14386
14433
|
id: Scalars['ID']['input'];
|
|
14387
14434
|
};
|
|
@@ -14518,6 +14565,10 @@ export type MutationCreateProductArgs = {
|
|
|
14518
14565
|
export type MutationCreateRepoArgs = {
|
|
14519
14566
|
repo: RepoInput;
|
|
14520
14567
|
};
|
|
14568
|
+
export type MutationCreateSkillArgs = {
|
|
14569
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
14570
|
+
skill: SkillInput;
|
|
14571
|
+
};
|
|
14521
14572
|
export type MutationCreateSoftwareArgs = {
|
|
14522
14573
|
software: SoftwareInput;
|
|
14523
14574
|
};
|
|
@@ -14697,6 +14748,11 @@ export type MutationDeleteAllReposArgs = {
|
|
|
14697
14748
|
filter?: InputMaybe<RepoFilter>;
|
|
14698
14749
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
14699
14750
|
};
|
|
14751
|
+
export type MutationDeleteAllSkillsArgs = {
|
|
14752
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
14753
|
+
filter?: InputMaybe<SkillFilter>;
|
|
14754
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
14755
|
+
};
|
|
14700
14756
|
export type MutationDeleteAllSoftwaresArgs = {
|
|
14701
14757
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
14702
14758
|
filter?: InputMaybe<SoftwareFilter>;
|
|
@@ -14919,6 +14975,13 @@ export type MutationDeleteReposArgs = {
|
|
|
14919
14975
|
ids: Array<Scalars['ID']['input']>;
|
|
14920
14976
|
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
14921
14977
|
};
|
|
14978
|
+
export type MutationDeleteSkillArgs = {
|
|
14979
|
+
id: Scalars['ID']['input'];
|
|
14980
|
+
};
|
|
14981
|
+
export type MutationDeleteSkillsArgs = {
|
|
14982
|
+
ids: Array<Scalars['ID']['input']>;
|
|
14983
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
14984
|
+
};
|
|
14922
14985
|
export type MutationDeleteSoftwareArgs = {
|
|
14923
14986
|
id: Scalars['ID']['input'];
|
|
14924
14987
|
};
|
|
@@ -14972,6 +15035,9 @@ export type MutationDisableAlertArgs = {
|
|
|
14972
15035
|
export type MutationDisableFeedArgs = {
|
|
14973
15036
|
id: Scalars['ID']['input'];
|
|
14974
15037
|
};
|
|
15038
|
+
export type MutationDisableSkillArgs = {
|
|
15039
|
+
id: Scalars['ID']['input'];
|
|
15040
|
+
};
|
|
14975
15041
|
export type MutationDisableUserArgs = {
|
|
14976
15042
|
id: Scalars['ID']['input'];
|
|
14977
15043
|
};
|
|
@@ -14993,6 +15059,9 @@ export type MutationEnableAlertArgs = {
|
|
|
14993
15059
|
export type MutationEnableFeedArgs = {
|
|
14994
15060
|
id: Scalars['ID']['input'];
|
|
14995
15061
|
};
|
|
15062
|
+
export type MutationEnableSkillArgs = {
|
|
15063
|
+
id: Scalars['ID']['input'];
|
|
15064
|
+
};
|
|
14996
15065
|
export type MutationEnableUserArgs = {
|
|
14997
15066
|
id: Scalars['ID']['input'];
|
|
14998
15067
|
};
|
|
@@ -15045,6 +15114,8 @@ export type MutationFormatConversationArgs = {
|
|
|
15045
15114
|
instructions?: InputMaybe<Scalars['String']['input']>;
|
|
15046
15115
|
persona?: InputMaybe<EntityReferenceInput>;
|
|
15047
15116
|
prompt: Scalars['String']['input'];
|
|
15117
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
15118
|
+
skills?: InputMaybe<Array<EntityReferenceInput>>;
|
|
15048
15119
|
specification?: InputMaybe<EntityReferenceInput>;
|
|
15049
15120
|
systemPrompt?: InputMaybe<Scalars['String']['input']>;
|
|
15050
15121
|
tools?: InputMaybe<Array<ToolDefinitionInput>>;
|
|
@@ -15172,6 +15243,8 @@ export type MutationPromptConversationArgs = {
|
|
|
15172
15243
|
persona?: InputMaybe<EntityReferenceInput>;
|
|
15173
15244
|
prompt: Scalars['String']['input'];
|
|
15174
15245
|
requireTool?: InputMaybe<Scalars['Boolean']['input']>;
|
|
15246
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
15247
|
+
skills?: InputMaybe<Array<EntityReferenceInput>>;
|
|
15175
15248
|
specification?: InputMaybe<EntityReferenceInput>;
|
|
15176
15249
|
systemPrompt?: InputMaybe<Scalars['String']['input']>;
|
|
15177
15250
|
tools?: InputMaybe<Array<ToolDefinitionInput>>;
|
|
@@ -15234,6 +15307,10 @@ export type MutationRemoveConversationsFromCollectionArgs = {
|
|
|
15234
15307
|
collection: EntityReferenceInput;
|
|
15235
15308
|
conversations: Array<EntityReferenceInput>;
|
|
15236
15309
|
};
|
|
15310
|
+
export type MutationRemoveSkillsFromCollectionArgs = {
|
|
15311
|
+
collection: EntityReferenceInput;
|
|
15312
|
+
skills: Array<EntityReferenceInput>;
|
|
15313
|
+
};
|
|
15237
15314
|
export type MutationResearchContentsArgs = {
|
|
15238
15315
|
connector: ContentPublishingConnectorInput;
|
|
15239
15316
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -15455,6 +15532,9 @@ export type MutationUpdateProjectArgs = {
|
|
|
15455
15532
|
export type MutationUpdateRepoArgs = {
|
|
15456
15533
|
repo: RepoUpdateInput;
|
|
15457
15534
|
};
|
|
15535
|
+
export type MutationUpdateSkillArgs = {
|
|
15536
|
+
skill: SkillUpdateInput;
|
|
15537
|
+
};
|
|
15458
15538
|
export type MutationUpdateSoftwareArgs = {
|
|
15459
15539
|
software: SoftwareUpdateInput;
|
|
15460
15540
|
};
|
|
@@ -15488,6 +15568,9 @@ export type MutationUpsertLabelArgs = {
|
|
|
15488
15568
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
15489
15569
|
label: LabelInput;
|
|
15490
15570
|
};
|
|
15571
|
+
export type MutationUpsertSkillArgs = {
|
|
15572
|
+
skill: SkillInput;
|
|
15573
|
+
};
|
|
15491
15574
|
export type MutationUpsertSpecificationArgs = {
|
|
15492
15575
|
specification: SpecificationInput;
|
|
15493
15576
|
};
|
|
@@ -18522,6 +18605,8 @@ export type Query = {
|
|
|
18522
18605
|
countProducts?: Maybe<CountResult>;
|
|
18523
18606
|
/** Counts repos based on the provided filter criteria. */
|
|
18524
18607
|
countRepos?: Maybe<CountResult>;
|
|
18608
|
+
/** Counts skills based on the provided filter criteria. */
|
|
18609
|
+
countSkills?: Maybe<CountResult>;
|
|
18525
18610
|
/** Counts software based on the provided filter criteria. */
|
|
18526
18611
|
countSoftwares?: Maybe<CountResult>;
|
|
18527
18612
|
/** Counts specifications based on the provided filter criteria. */
|
|
@@ -18708,6 +18793,10 @@ export type Query = {
|
|
|
18708
18793
|
sharePointFolders?: Maybe<SharePointFolderResults>;
|
|
18709
18794
|
/** Retrieves available SharePoint document libraries. */
|
|
18710
18795
|
sharePointLibraries?: Maybe<SharePointLibraryResults>;
|
|
18796
|
+
/** Lookup a skill given its ID. */
|
|
18797
|
+
skill?: Maybe<Skill>;
|
|
18798
|
+
/** Retrieves skills based on the provided filter criteria. */
|
|
18799
|
+
skills?: Maybe<SkillResults>;
|
|
18711
18800
|
/** Retrieves available Slack channels. */
|
|
18712
18801
|
slackChannels?: Maybe<StringResults>;
|
|
18713
18802
|
/** Lookup software given its ID. */
|
|
@@ -18956,6 +19045,10 @@ export type QueryCountReposArgs = {
|
|
|
18956
19045
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
18957
19046
|
filter?: InputMaybe<RepoFilter>;
|
|
18958
19047
|
};
|
|
19048
|
+
export type QueryCountSkillsArgs = {
|
|
19049
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
19050
|
+
filter?: InputMaybe<SkillFilter>;
|
|
19051
|
+
};
|
|
18959
19052
|
export type QueryCountSoftwaresArgs = {
|
|
18960
19053
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
18961
19054
|
filter?: InputMaybe<SoftwareFilter>;
|
|
@@ -19364,6 +19457,14 @@ export type QuerySharePointFoldersArgs = {
|
|
|
19364
19457
|
export type QuerySharePointLibrariesArgs = {
|
|
19365
19458
|
properties: SharePointLibrariesInput;
|
|
19366
19459
|
};
|
|
19460
|
+
export type QuerySkillArgs = {
|
|
19461
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
19462
|
+
id: Scalars['ID']['input'];
|
|
19463
|
+
};
|
|
19464
|
+
export type QuerySkillsArgs = {
|
|
19465
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
19466
|
+
filter?: InputMaybe<SkillFilter>;
|
|
19467
|
+
};
|
|
19367
19468
|
export type QuerySlackChannelsArgs = {
|
|
19368
19469
|
properties: SlackChannelsInput;
|
|
19369
19470
|
};
|
|
@@ -20693,6 +20794,99 @@ export declare enum SiteTypes {
|
|
|
20693
20794
|
/** Watch cloud storage site */
|
|
20694
20795
|
Watch = "WATCH"
|
|
20695
20796
|
}
|
|
20797
|
+
/** Represents a skill. */
|
|
20798
|
+
export type Skill = {
|
|
20799
|
+
__typename?: 'Skill';
|
|
20800
|
+
/** The collections this skill belongs to. */
|
|
20801
|
+
collections?: Maybe<Array<Maybe<Collection>>>;
|
|
20802
|
+
/** The tenant correlation identifier. */
|
|
20803
|
+
correlationId?: Maybe<Scalars['String']['output']>;
|
|
20804
|
+
/** The creation date of the skill. */
|
|
20805
|
+
creationDate: Scalars['DateTime']['output'];
|
|
20806
|
+
/** The description of the skill. */
|
|
20807
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
20808
|
+
/** The ID of the skill. */
|
|
20809
|
+
id: Scalars['ID']['output'];
|
|
20810
|
+
/** The modified date of the skill. */
|
|
20811
|
+
modifiedDate?: Maybe<Scalars['DateTime']['output']>;
|
|
20812
|
+
/** The name of the skill. */
|
|
20813
|
+
name: Scalars['String']['output'];
|
|
20814
|
+
/** The owner of the skill. */
|
|
20815
|
+
owner: Owner;
|
|
20816
|
+
/** The relevance score of the skill. */
|
|
20817
|
+
relevance?: Maybe<Scalars['Float']['output']>;
|
|
20818
|
+
/** The skill owner. */
|
|
20819
|
+
skillOwner?: Maybe<EntityOwners>;
|
|
20820
|
+
/** The state of the skill (i.e. created, finished). */
|
|
20821
|
+
state: EntityState;
|
|
20822
|
+
/** The Markdown text body of the skill. */
|
|
20823
|
+
text: Scalars['String']['output'];
|
|
20824
|
+
};
|
|
20825
|
+
/** Represents a filter for skills. */
|
|
20826
|
+
export type SkillFilter = {
|
|
20827
|
+
/** Filter by collections. */
|
|
20828
|
+
collections?: InputMaybe<Array<EntityReferenceFilter>>;
|
|
20829
|
+
/** Filter by creation date recent timespan. For example, a timespan of one day will return skill(s) created in the last 24 hours. */
|
|
20830
|
+
createdInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
|
|
20831
|
+
/** Filter skill(s) by their creation date range. */
|
|
20832
|
+
creationDateRange?: InputMaybe<DateRangeFilter>;
|
|
20833
|
+
/** The sort direction for query results. */
|
|
20834
|
+
direction?: InputMaybe<OrderDirectionTypes>;
|
|
20835
|
+
/** Filter by whether the skill belongs to any collections. */
|
|
20836
|
+
hasCollections?: InputMaybe<Scalars['Boolean']['input']>;
|
|
20837
|
+
/** Filter skill(s) by their unique ID. */
|
|
20838
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
20839
|
+
/** Limit the number of skill(s) to be returned. Defaults to 100. */
|
|
20840
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
20841
|
+
/** Filter skill(s) by their modified date range. */
|
|
20842
|
+
modifiedDateRange?: InputMaybe<DateRangeFilter>;
|
|
20843
|
+
/** Filter by modified date recent timespan. For example, a timespan of one day will return skill(s) modified in the last 24 hours. */
|
|
20844
|
+
modifiedInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
|
|
20845
|
+
/** Filter skill(s) by their name. */
|
|
20846
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
20847
|
+
/** Skip the specified number of skill(s) from the beginning of the result set. Only supported on keyword search. */
|
|
20848
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
20849
|
+
/** The sort order for query results. */
|
|
20850
|
+
orderBy?: InputMaybe<OrderByTypes>;
|
|
20851
|
+
/** The relevance score threshold for vector and hybrid search. Results below this threshold will be filtered out. Hybrid search defaults to 0.006. Vector search defaults to 0.54, or 0.78 for OpenAI Ada-002, or 0.61 for Google embedding models. Not applicable to keyword search. */
|
|
20852
|
+
relevanceThreshold?: InputMaybe<Scalars['Float']['input']>;
|
|
20853
|
+
/** Filter skill(s) by searching for similar text. */
|
|
20854
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
20855
|
+
/** Filter by skill owners. */
|
|
20856
|
+
skillOwners?: InputMaybe<Array<EntityOwners>>;
|
|
20857
|
+
/** Filter skill(s) by their states. */
|
|
20858
|
+
states?: InputMaybe<Array<EntityState>>;
|
|
20859
|
+
};
|
|
20860
|
+
/** Represents a skill. */
|
|
20861
|
+
export type SkillInput = {
|
|
20862
|
+
/** The collections to add this skill to. */
|
|
20863
|
+
collections?: InputMaybe<Array<EntityReferenceInput>>;
|
|
20864
|
+
/** The description of the skill. */
|
|
20865
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
20866
|
+
/** The name of the skill. */
|
|
20867
|
+
name: Scalars['String']['input'];
|
|
20868
|
+
/** The skill owner. */
|
|
20869
|
+
skillOwner?: InputMaybe<EntityOwners>;
|
|
20870
|
+
/** The Markdown text body of the skill. */
|
|
20871
|
+
text: Scalars['String']['input'];
|
|
20872
|
+
};
|
|
20873
|
+
/** Represents skill query results. */
|
|
20874
|
+
export type SkillResults = {
|
|
20875
|
+
__typename?: 'SkillResults';
|
|
20876
|
+
/** The list of skill query results. */
|
|
20877
|
+
results?: Maybe<Array<Skill>>;
|
|
20878
|
+
};
|
|
20879
|
+
/** Represents a skill. */
|
|
20880
|
+
export type SkillUpdateInput = {
|
|
20881
|
+
/** The description of the skill. */
|
|
20882
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
20883
|
+
/** The ID of the skill to update. */
|
|
20884
|
+
id: Scalars['ID']['input'];
|
|
20885
|
+
/** The name of the skill. */
|
|
20886
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
20887
|
+
/** The Markdown text body of the skill. */
|
|
20888
|
+
text?: InputMaybe<Scalars['String']['input']>;
|
|
20889
|
+
};
|
|
20696
20890
|
export declare enum SlackAuthenticationTypes {
|
|
20697
20891
|
Connector = "CONNECTOR",
|
|
20698
20892
|
Token = "TOKEN"
|
|
@@ -23886,6 +24080,25 @@ export type AddConversationsToCollectionsMutation = {
|
|
|
23886
24080
|
} | null> | null;
|
|
23887
24081
|
} | null> | null;
|
|
23888
24082
|
};
|
|
24083
|
+
export type AddSkillsToCollectionsMutationVariables = Exact<{
|
|
24084
|
+
skills: Array<EntityReferenceInput> | EntityReferenceInput;
|
|
24085
|
+
collections: Array<EntityReferenceInput> | EntityReferenceInput;
|
|
24086
|
+
}>;
|
|
24087
|
+
export type AddSkillsToCollectionsMutation = {
|
|
24088
|
+
__typename?: 'Mutation';
|
|
24089
|
+
addSkillsToCollections?: Array<{
|
|
24090
|
+
__typename?: 'Collection';
|
|
24091
|
+
id: string;
|
|
24092
|
+
name: string;
|
|
24093
|
+
state: EntityState;
|
|
24094
|
+
type?: CollectionTypes | null;
|
|
24095
|
+
skills?: Array<{
|
|
24096
|
+
__typename?: 'Skill';
|
|
24097
|
+
id: string;
|
|
24098
|
+
name: string;
|
|
24099
|
+
} | null> | null;
|
|
24100
|
+
} | null> | null;
|
|
24101
|
+
};
|
|
23889
24102
|
export type CountCollectionsQueryVariables = Exact<{
|
|
23890
24103
|
filter?: InputMaybe<CollectionFilter>;
|
|
23891
24104
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -24038,6 +24251,25 @@ export type RemoveConversationsFromCollectionMutation = {
|
|
|
24038
24251
|
} | null> | null;
|
|
24039
24252
|
} | null;
|
|
24040
24253
|
};
|
|
24254
|
+
export type RemoveSkillsFromCollectionMutationVariables = Exact<{
|
|
24255
|
+
skills: Array<EntityReferenceInput> | EntityReferenceInput;
|
|
24256
|
+
collection: EntityReferenceInput;
|
|
24257
|
+
}>;
|
|
24258
|
+
export type RemoveSkillsFromCollectionMutation = {
|
|
24259
|
+
__typename?: 'Mutation';
|
|
24260
|
+
removeSkillsFromCollection?: {
|
|
24261
|
+
__typename?: 'Collection';
|
|
24262
|
+
id: string;
|
|
24263
|
+
name: string;
|
|
24264
|
+
state: EntityState;
|
|
24265
|
+
type?: CollectionTypes | null;
|
|
24266
|
+
skills?: Array<{
|
|
24267
|
+
__typename?: 'Skill';
|
|
24268
|
+
id: string;
|
|
24269
|
+
name: string;
|
|
24270
|
+
} | null> | null;
|
|
24271
|
+
} | null;
|
|
24272
|
+
};
|
|
24041
24273
|
export type UpdateCollectionMutationVariables = Exact<{
|
|
24042
24274
|
collection: CollectionUpdateInput;
|
|
24043
24275
|
}>;
|
|
@@ -28314,6 +28546,7 @@ export type CompleteConversationMutation = {
|
|
|
28314
28546
|
formattedSources?: string | null;
|
|
28315
28547
|
formattedObservables?: string | null;
|
|
28316
28548
|
formattedInstructions?: string | null;
|
|
28549
|
+
formattedScratchpad?: string | null;
|
|
28317
28550
|
formattedTools?: string | null;
|
|
28318
28551
|
formattedPersona?: string | null;
|
|
28319
28552
|
specification?: string | null;
|
|
@@ -28689,6 +28922,7 @@ export type ContinueConversationMutation = {
|
|
|
28689
28922
|
formattedSources?: string | null;
|
|
28690
28923
|
formattedObservables?: string | null;
|
|
28691
28924
|
formattedInstructions?: string | null;
|
|
28925
|
+
formattedScratchpad?: string | null;
|
|
28692
28926
|
formattedTools?: string | null;
|
|
28693
28927
|
formattedPersona?: string | null;
|
|
28694
28928
|
specification?: string | null;
|
|
@@ -28915,6 +29149,8 @@ export type FormatConversationMutationVariables = Exact<{
|
|
|
28915
29149
|
includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
|
|
28916
29150
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
28917
29151
|
instructions?: InputMaybe<Scalars['String']['input']>;
|
|
29152
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
29153
|
+
skills?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
|
28918
29154
|
}>;
|
|
28919
29155
|
export type FormatConversationMutation = {
|
|
28920
29156
|
__typename?: 'Mutation';
|
|
@@ -29131,6 +29367,7 @@ export type FormatConversationMutation = {
|
|
|
29131
29367
|
formattedSources?: string | null;
|
|
29132
29368
|
formattedObservables?: string | null;
|
|
29133
29369
|
formattedInstructions?: string | null;
|
|
29370
|
+
formattedScratchpad?: string | null;
|
|
29134
29371
|
formattedTools?: string | null;
|
|
29135
29372
|
formattedPersona?: string | null;
|
|
29136
29373
|
specification?: string | null;
|
|
@@ -29960,6 +30197,8 @@ export type PromptConversationMutationVariables = Exact<{
|
|
|
29960
30197
|
includeDetails?: InputMaybe<Scalars['Boolean']['input']>;
|
|
29961
30198
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
29962
30199
|
instructions?: InputMaybe<Scalars['String']['input']>;
|
|
30200
|
+
scratchpad?: InputMaybe<Scalars['String']['input']>;
|
|
30201
|
+
skills?: InputMaybe<Array<EntityReferenceInput> | EntityReferenceInput>;
|
|
29963
30202
|
}>;
|
|
29964
30203
|
export type PromptConversationMutation = {
|
|
29965
30204
|
__typename?: 'Mutation';
|
|
@@ -30176,6 +30415,7 @@ export type PromptConversationMutation = {
|
|
|
30176
30415
|
formattedSources?: string | null;
|
|
30177
30416
|
formattedObservables?: string | null;
|
|
30178
30417
|
formattedInstructions?: string | null;
|
|
30418
|
+
formattedScratchpad?: string | null;
|
|
30179
30419
|
formattedTools?: string | null;
|
|
30180
30420
|
formattedPersona?: string | null;
|
|
30181
30421
|
specification?: string | null;
|
|
@@ -42104,6 +42344,173 @@ export type SearchWebQuery = {
|
|
|
42104
42344
|
}> | null;
|
|
42105
42345
|
} | null;
|
|
42106
42346
|
};
|
|
42347
|
+
export type CountSkillsQueryVariables = Exact<{
|
|
42348
|
+
filter?: InputMaybe<SkillFilter>;
|
|
42349
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
42350
|
+
}>;
|
|
42351
|
+
export type CountSkillsQuery = {
|
|
42352
|
+
__typename?: 'Query';
|
|
42353
|
+
countSkills?: {
|
|
42354
|
+
__typename?: 'CountResult';
|
|
42355
|
+
count?: any | null;
|
|
42356
|
+
} | null;
|
|
42357
|
+
};
|
|
42358
|
+
export type CreateSkillMutationVariables = Exact<{
|
|
42359
|
+
skill: SkillInput;
|
|
42360
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
42361
|
+
}>;
|
|
42362
|
+
export type CreateSkillMutation = {
|
|
42363
|
+
__typename?: 'Mutation';
|
|
42364
|
+
createSkill?: {
|
|
42365
|
+
__typename?: 'Skill';
|
|
42366
|
+
id: string;
|
|
42367
|
+
name: string;
|
|
42368
|
+
state: EntityState;
|
|
42369
|
+
skillOwner?: EntityOwners | null;
|
|
42370
|
+
} | null;
|
|
42371
|
+
};
|
|
42372
|
+
export type DeleteAllSkillsMutationVariables = Exact<{
|
|
42373
|
+
filter?: InputMaybe<SkillFilter>;
|
|
42374
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
42375
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
42376
|
+
}>;
|
|
42377
|
+
export type DeleteAllSkillsMutation = {
|
|
42378
|
+
__typename?: 'Mutation';
|
|
42379
|
+
deleteAllSkills?: Array<{
|
|
42380
|
+
__typename?: 'Skill';
|
|
42381
|
+
id: string;
|
|
42382
|
+
state: EntityState;
|
|
42383
|
+
} | null> | null;
|
|
42384
|
+
};
|
|
42385
|
+
export type DeleteSkillMutationVariables = Exact<{
|
|
42386
|
+
id: Scalars['ID']['input'];
|
|
42387
|
+
}>;
|
|
42388
|
+
export type DeleteSkillMutation = {
|
|
42389
|
+
__typename?: 'Mutation';
|
|
42390
|
+
deleteSkill?: {
|
|
42391
|
+
__typename?: 'Skill';
|
|
42392
|
+
id: string;
|
|
42393
|
+
state: EntityState;
|
|
42394
|
+
} | null;
|
|
42395
|
+
};
|
|
42396
|
+
export type DeleteSkillsMutationVariables = Exact<{
|
|
42397
|
+
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
42398
|
+
isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
|
|
42399
|
+
}>;
|
|
42400
|
+
export type DeleteSkillsMutation = {
|
|
42401
|
+
__typename?: 'Mutation';
|
|
42402
|
+
deleteSkills?: Array<{
|
|
42403
|
+
__typename?: 'Skill';
|
|
42404
|
+
id: string;
|
|
42405
|
+
state: EntityState;
|
|
42406
|
+
} | null> | null;
|
|
42407
|
+
};
|
|
42408
|
+
export type DisableSkillMutationVariables = Exact<{
|
|
42409
|
+
id: Scalars['ID']['input'];
|
|
42410
|
+
}>;
|
|
42411
|
+
export type DisableSkillMutation = {
|
|
42412
|
+
__typename?: 'Mutation';
|
|
42413
|
+
disableSkill?: {
|
|
42414
|
+
__typename?: 'Skill';
|
|
42415
|
+
id: string;
|
|
42416
|
+
state: EntityState;
|
|
42417
|
+
} | null;
|
|
42418
|
+
};
|
|
42419
|
+
export type EnableSkillMutationVariables = Exact<{
|
|
42420
|
+
id: Scalars['ID']['input'];
|
|
42421
|
+
}>;
|
|
42422
|
+
export type EnableSkillMutation = {
|
|
42423
|
+
__typename?: 'Mutation';
|
|
42424
|
+
enableSkill?: {
|
|
42425
|
+
__typename?: 'Skill';
|
|
42426
|
+
id: string;
|
|
42427
|
+
state: EntityState;
|
|
42428
|
+
} | null;
|
|
42429
|
+
};
|
|
42430
|
+
export type GetSkillQueryVariables = Exact<{
|
|
42431
|
+
id: Scalars['ID']['input'];
|
|
42432
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
42433
|
+
}>;
|
|
42434
|
+
export type GetSkillQuery = {
|
|
42435
|
+
__typename?: 'Query';
|
|
42436
|
+
skill?: {
|
|
42437
|
+
__typename?: 'Skill';
|
|
42438
|
+
id: string;
|
|
42439
|
+
name: string;
|
|
42440
|
+
creationDate: any;
|
|
42441
|
+
modifiedDate?: any | null;
|
|
42442
|
+
state: EntityState;
|
|
42443
|
+
correlationId?: string | null;
|
|
42444
|
+
text: string;
|
|
42445
|
+
skillOwner?: EntityOwners | null;
|
|
42446
|
+
owner: {
|
|
42447
|
+
__typename?: 'Owner';
|
|
42448
|
+
id: string;
|
|
42449
|
+
};
|
|
42450
|
+
collections?: Array<{
|
|
42451
|
+
__typename?: 'Collection';
|
|
42452
|
+
id: string;
|
|
42453
|
+
name: string;
|
|
42454
|
+
} | null> | null;
|
|
42455
|
+
} | null;
|
|
42456
|
+
};
|
|
42457
|
+
export type QuerySkillsQueryVariables = Exact<{
|
|
42458
|
+
filter?: InputMaybe<SkillFilter>;
|
|
42459
|
+
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
42460
|
+
}>;
|
|
42461
|
+
export type QuerySkillsQuery = {
|
|
42462
|
+
__typename?: 'Query';
|
|
42463
|
+
skills?: {
|
|
42464
|
+
__typename?: 'SkillResults';
|
|
42465
|
+
results?: Array<{
|
|
42466
|
+
__typename?: 'Skill';
|
|
42467
|
+
id: string;
|
|
42468
|
+
name: string;
|
|
42469
|
+
creationDate: any;
|
|
42470
|
+
modifiedDate?: any | null;
|
|
42471
|
+
relevance?: number | null;
|
|
42472
|
+
state: EntityState;
|
|
42473
|
+
correlationId?: string | null;
|
|
42474
|
+
text: string;
|
|
42475
|
+
skillOwner?: EntityOwners | null;
|
|
42476
|
+
owner: {
|
|
42477
|
+
__typename?: 'Owner';
|
|
42478
|
+
id: string;
|
|
42479
|
+
};
|
|
42480
|
+
collections?: Array<{
|
|
42481
|
+
__typename?: 'Collection';
|
|
42482
|
+
id: string;
|
|
42483
|
+
name: string;
|
|
42484
|
+
} | null> | null;
|
|
42485
|
+
}> | null;
|
|
42486
|
+
} | null;
|
|
42487
|
+
};
|
|
42488
|
+
export type UpdateSkillMutationVariables = Exact<{
|
|
42489
|
+
skill: SkillUpdateInput;
|
|
42490
|
+
}>;
|
|
42491
|
+
export type UpdateSkillMutation = {
|
|
42492
|
+
__typename?: 'Mutation';
|
|
42493
|
+
updateSkill?: {
|
|
42494
|
+
__typename?: 'Skill';
|
|
42495
|
+
id: string;
|
|
42496
|
+
name: string;
|
|
42497
|
+
state: EntityState;
|
|
42498
|
+
skillOwner?: EntityOwners | null;
|
|
42499
|
+
} | null;
|
|
42500
|
+
};
|
|
42501
|
+
export type UpsertSkillMutationVariables = Exact<{
|
|
42502
|
+
skill: SkillInput;
|
|
42503
|
+
}>;
|
|
42504
|
+
export type UpsertSkillMutation = {
|
|
42505
|
+
__typename?: 'Mutation';
|
|
42506
|
+
upsertSkill?: {
|
|
42507
|
+
__typename?: 'Skill';
|
|
42508
|
+
id: string;
|
|
42509
|
+
name: string;
|
|
42510
|
+
state: EntityState;
|
|
42511
|
+
skillOwner?: EntityOwners | null;
|
|
42512
|
+
} | null;
|
|
42513
|
+
};
|
|
42107
42514
|
export type CountSoftwaresQueryVariables = Exact<{
|
|
42108
42515
|
filter?: InputMaybe<SoftwareFilter>;
|
|
42109
42516
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -919,6 +919,14 @@ export var EntityExtractionServiceTypes;
|
|
|
919
919
|
*/
|
|
920
920
|
EntityExtractionServiceTypes["OpenAiImage"] = "OPEN_AI_IMAGE";
|
|
921
921
|
})(EntityExtractionServiceTypes || (EntityExtractionServiceTypes = {}));
|
|
922
|
+
/** Entity owner */
|
|
923
|
+
export var EntityOwners;
|
|
924
|
+
(function (EntityOwners) {
|
|
925
|
+
/** Owned by project */
|
|
926
|
+
EntityOwners["Project"] = "PROJECT";
|
|
927
|
+
/** Owned by system */
|
|
928
|
+
EntityOwners["System"] = "SYSTEM";
|
|
929
|
+
})(EntityOwners || (EntityOwners = {}));
|
|
922
930
|
/** Entity resolution strategy */
|
|
923
931
|
export var EntityResolutionStrategyTypes;
|
|
924
932
|
(function (EntityResolutionStrategyTypes) {
|
|
@@ -1064,6 +1072,8 @@ export var EntityTypes;
|
|
|
1064
1072
|
EntityTypes["Repo"] = "REPO";
|
|
1065
1073
|
/** Cloud storage site */
|
|
1066
1074
|
EntityTypes["Site"] = "SITE";
|
|
1075
|
+
/** Skill */
|
|
1076
|
+
EntityTypes["Skill"] = "SKILL";
|
|
1067
1077
|
/** Software */
|
|
1068
1078
|
EntityTypes["Software"] = "SOFTWARE";
|
|
1069
1079
|
/** Model specification */
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -68,6 +68,10 @@ export interface StreamAgentOptions {
|
|
|
68
68
|
contextStrategy?: ContextStrategy;
|
|
69
69
|
/** Harness-injected instructions appended to the formatted conversation (e.g. wind-down, stuck intervention). */
|
|
70
70
|
instructions?: string;
|
|
71
|
+
/** Harness-injected scratchpad text, merged with conversation scratchpad. Placed right before user-prompt. */
|
|
72
|
+
scratchpad?: string;
|
|
73
|
+
/** Skill references to inject into the agent's context window. Retrieved via querySkills, passed by reference. */
|
|
74
|
+
skills?: EntityReferenceInput[];
|
|
71
75
|
}
|
|
72
76
|
export interface ToolCallResult {
|
|
73
77
|
id: string;
|
|
@@ -144,6 +148,8 @@ export interface RunAgentOptions {
|
|
|
144
148
|
smoothingEnabled?: boolean;
|
|
145
149
|
chunkingStrategy?: "character" | "word" | "sentence";
|
|
146
150
|
smoothingDelay?: number;
|
|
151
|
+
/** Skill references to inject into the agent's context window. Retrieved via querySkills, passed by reference. */
|
|
152
|
+
skills?: EntityReferenceInput[];
|
|
147
153
|
}
|
|
148
154
|
/** Quality assessment scores from LLM-as-judge post-run evaluation. */
|
|
149
155
|
export interface QualityAssessment {
|