@halot/sdk 1.0.4 → 1.0.5
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/zero-g/compute.js +14 -0
- package/package.json +1 -1
package/dist/zero-g/compute.js
CHANGED
|
@@ -129,6 +129,11 @@ class ZeroGComputeService {
|
|
|
129
129
|
: 'None';
|
|
130
130
|
if (input.promptTemplate) {
|
|
131
131
|
const rendered = input.promptTemplate
|
|
132
|
+
.replaceAll('{{serviceId}}', input.service.serviceId)
|
|
133
|
+
.replaceAll('{{serviceName}}', input.service.name)
|
|
134
|
+
.replaceAll('{{serviceDescription}}', input.service.description)
|
|
135
|
+
.replaceAll('{{serviceCategory}}', input.service.category)
|
|
136
|
+
.replaceAll('{{trustLevel}}', input.service.trustLevel)
|
|
132
137
|
.replaceAll('{{input}}', JSON.stringify(input.input, null, 2))
|
|
133
138
|
.replaceAll('{{acceptanceCriteria}}', JSON.stringify(input.service.acceptanceCriteria, null, 2))
|
|
134
139
|
.replaceAll('{{result}}', JSON.stringify(input.result, null, 2))
|
|
@@ -153,6 +158,15 @@ class ZeroGComputeService {
|
|
|
153
158
|
].join('\n');
|
|
154
159
|
}
|
|
155
160
|
return [
|
|
161
|
+
'Service:',
|
|
162
|
+
JSON.stringify({
|
|
163
|
+
serviceId: input.service.serviceId,
|
|
164
|
+
name: input.service.name,
|
|
165
|
+
description: input.service.description,
|
|
166
|
+
category: input.service.category,
|
|
167
|
+
trustLevel: input.service.trustLevel,
|
|
168
|
+
}, null, 2),
|
|
169
|
+
'',
|
|
156
170
|
'Job input:',
|
|
157
171
|
JSON.stringify(input.input, null, 2),
|
|
158
172
|
'',
|