@skmtc/core 0.0.511 → 0.0.512

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.
@@ -1 +1 @@
1
- {"version":3,"file":"handleEnrichment.d.ts","sourceRoot":"","sources":["../../src/run/handleEnrichment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAetE,eAAO,MAAM,gBAAgB,GAAU,cAAc,0DAIlD,iBAAiB,CAAC,cAAc,CAAC,oBAyCnC,CAAA;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,GAAG,EAAE,CAAC,EACN,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
1
+ {"version":3,"file":"handleEnrichment.d.ts","sourceRoot":"","sources":["../../src/run/handleEnrichment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAetE,eAAO,MAAM,gBAAgB,GAAU,cAAc,0DAIlD,iBAAiB,CAAC,cAAc,CAAC,oBAuBnC,CAAA;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,GAAG,EAAE,CAAC,EACN,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
@@ -24,25 +24,7 @@ export const handleEnrichment = async ({ prompt, content, responseSchema: zodRes
24
24
  maxOutputTokens: 8192,
25
25
  responseMimeType: 'application/json',
26
26
  responseSchema: removeProperties(responseSchema, 'additionalProperties')
27
- },
28
- history: [
29
- {
30
- role: 'user',
31
- parts: [
32
- {
33
- text: "Below is part of an openapi schema.\\n- Does the provided endpoint return paginated data\\n- If it does, please provide an object path to access the response list\n\nPaginatedAbilitySummaryList:\n type: object\n properties:\n count:\n type: integer\n example: 123\n next:\n type: string\n nullable: true\n format: uri\n example: http://api.example.org/accounts/?offset=400&limit=100\n previous:\n type: string\n nullable: true\n format: uri\n example: http://api.example.org/accounts/?offset=200&limit=100\n results:\n type: array\n items:\n $ref: '#/components/schemas/AbilitySummary'"
34
- }
35
- ]
36
- },
37
- {
38
- role: 'model',
39
- parts: [
40
- { text: '```json\n' },
41
- { text: '{"isPaginated": true, "pathToList": "results"}' },
42
- { text: '\n```' }
43
- ]
44
- }
45
- ]
27
+ }
46
28
  });
47
29
  const result = await chatSession.sendMessage(`${prompt}\n\n${content}`);
48
30
  return result.response.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.511",
3
+ "version": "0.0.512",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"handleEnrichment.d.ts","sourceRoot":"","sources":["../../src/run/handleEnrichment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAetE,eAAO,MAAM,gBAAgB,GAAU,cAAc,0DAIlD,iBAAiB,CAAC,cAAc,CAAC,oBAyCnC,CAAA;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,GAAG,EAAE,CAAC,EACN,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
1
+ {"version":3,"file":"handleEnrichment.d.ts","sourceRoot":"","sources":["../../src/run/handleEnrichment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAetE,eAAO,MAAM,gBAAgB,GAAU,cAAc,0DAIlD,iBAAiB,CAAC,cAAc,CAAC,oBAuBnC,CAAA;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5D,GAAG,EAAE,CAAC,EACN,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
@@ -51,25 +51,7 @@ const handleEnrichment = async ({ prompt, content, responseSchema: zodResponseSc
51
51
  maxOutputTokens: 8192,
52
52
  responseMimeType: 'application/json',
53
53
  responseSchema: removeProperties(responseSchema, 'additionalProperties')
54
- },
55
- history: [
56
- {
57
- role: 'user',
58
- parts: [
59
- {
60
- text: "Below is part of an openapi schema.\\n- Does the provided endpoint return paginated data\\n- If it does, please provide an object path to access the response list\n\nPaginatedAbilitySummaryList:\n type: object\n properties:\n count:\n type: integer\n example: 123\n next:\n type: string\n nullable: true\n format: uri\n example: http://api.example.org/accounts/?offset=400&limit=100\n previous:\n type: string\n nullable: true\n format: uri\n example: http://api.example.org/accounts/?offset=200&limit=100\n results:\n type: array\n items:\n $ref: '#/components/schemas/AbilitySummary'"
61
- }
62
- ]
63
- },
64
- {
65
- role: 'model',
66
- parts: [
67
- { text: '```json\n' },
68
- { text: '{"isPaginated": true, "pathToList": "results"}' },
69
- { text: '\n```' }
70
- ]
71
- }
72
- ]
54
+ }
73
55
  });
74
56
  const result = await chatSession.sendMessage(`${prompt}\n\n${content}`);
75
57
  return result.response.text();