@synova-cloud/sdk 1.1.0 → 1.1.1

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 (2) hide show
  1. package/README.md +0 -55
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -149,28 +149,6 @@ const response = await client.prompts.execute('prm_chat456', {
149
149
  });
150
150
  ```
151
151
 
152
- #### With Structured Output (JSON Schema)
153
-
154
- ```typescript
155
- const response = await client.prompts.execute('prm_extract789', {
156
- provider: 'openai',
157
- model: 'gpt-4o',
158
- variables: { text: 'John Doe, age 30, from New York' },
159
- responseSchema: {
160
- type: 'object',
161
- properties: {
162
- name: { type: 'string' },
163
- age: { type: 'number' },
164
- city: { type: 'string' },
165
- },
166
- required: ['name', 'age', 'city'],
167
- },
168
- });
169
-
170
- // Access parsed object directly
171
- console.log(response.object); // { name: 'John Doe', age: 30, city: 'New York' }
172
- ```
173
-
174
152
  #### Image Generation
175
153
 
176
154
  ```typescript
@@ -190,37 +168,6 @@ if (response.type === 'image') {
190
168
 
191
169
  #### With Tool Calls
192
170
 
193
- ```typescript
194
- const response = await client.prompts.execute('prm_assistant012', {
195
- provider: 'openai',
196
- model: 'gpt-4o',
197
- variables: { query: 'What is the weather in Tokyo?' },
198
- });
199
-
200
- if (response.type === 'tool_calls') {
201
- for (const toolCall of response.toolCalls) {
202
- console.log(`Tool: ${toolCall.name}`);
203
- console.log(`Arguments: ${JSON.stringify(toolCall.arguments)}`);
204
-
205
- // Execute your tool
206
- const result = await executeMyTool(toolCall.name, toolCall.arguments);
207
-
208
- // Continue conversation with tool results
209
- const finalResponse = await client.prompts.execute('prm_assistant012', {
210
- provider: 'openai',
211
- model: 'gpt-4o',
212
- messages: [
213
- { role: 'user', content: 'What is the weather in Tokyo?' },
214
- { role: 'assistant', toolCalls: [toolCall] },
215
- { role: 'tool', toolResults: [{ toolCallId: toolCall.id, content: JSON.stringify(result) }] },
216
- ],
217
- });
218
-
219
- console.log(finalResponse.content);
220
- }
221
- }
222
- ```
223
-
224
171
  ### Models
225
172
 
226
173
  #### List All Models
@@ -434,8 +381,6 @@ import type {
434
381
  ISynovaExecutionError,
435
382
  // Messages
436
383
  ISynovaMessage,
437
- ISynovaToolCall,
438
- ISynovaToolResult,
439
384
  TSynovaMessageRole,
440
385
  TSynovaResponseType,
441
386
  // Files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synova-cloud/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Official Node.js SDK for Synova Cloud API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -46,12 +46,12 @@
46
46
  "author": "Synova Cloud",
47
47
  "homepage": "https://synova.cloud",
48
48
  "bugs": {
49
- "url": "https://github.com/synova-cloud/synova-cloud-sdk-node/issues"
49
+ "url": "https://github.com/synova-cloud/synova-cloud-node-sdk/issues"
50
50
  },
51
51
  "license": "MIT",
52
52
  "repository": {
53
53
  "type": "git",
54
- "url": "https://github.com/synova-cloud/synova-cloud-sdk-node.git"
54
+ "url": "https://github.com/synova-cloud/synova-cloud-node-sdk.git"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=18"
@@ -60,6 +60,7 @@
60
60
  "@eslint/js": "^9.39.1",
61
61
  "@semantic-release/changelog": "^6.0.3",
62
62
  "@semantic-release/git": "^10.0.1",
63
+ "@semantic-release/npm": "^13.1.3",
63
64
  "@types/node": "^20.10.0",
64
65
  "@typescript-eslint/eslint-plugin": "^8.48.0",
65
66
  "@typescript-eslint/parser": "^8.48.0",
@@ -67,7 +68,7 @@
67
68
  "eslint-config-prettier": "^10.1.8",
68
69
  "eslint-plugin-prettier": "^5.5.4",
69
70
  "prettier": "^3.6.2",
70
- "semantic-release": "^24.0.0",
71
+ "semantic-release": "^25.0.2",
71
72
  "tsup": "^8.0.0",
72
73
  "typescript": "^5.3.0",
73
74
  "typescript-eslint": "^8.48.0",