@synova-cloud/sdk 1.1.0 → 1.1.2

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 -72
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -119,21 +119,6 @@ const response = await client.prompts.execute('prm_abc123', {
119
119
  });
120
120
  ```
121
121
 
122
- #### With Metadata (Analytics)
123
-
124
- ```typescript
125
- const response = await client.prompts.execute('prm_abc123', {
126
- provider: 'openai',
127
- model: 'gpt-4o',
128
- variables: { query: 'Hello' },
129
- metadata: {
130
- userId: 'user_123',
131
- sessionId: 'sess_456',
132
- environment: 'production',
133
- },
134
- });
135
- ```
136
-
137
122
  #### With Conversation History
138
123
 
139
124
  ```typescript
@@ -149,28 +134,6 @@ const response = await client.prompts.execute('prm_chat456', {
149
134
  });
150
135
  ```
151
136
 
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
137
  #### Image Generation
175
138
 
176
139
  ```typescript
@@ -188,39 +151,6 @@ if (response.type === 'image') {
188
151
  }
189
152
  ```
190
153
 
191
- #### With Tool Calls
192
-
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
154
  ### Models
225
155
 
226
156
  #### List All Models
@@ -434,8 +364,6 @@ import type {
434
364
  ISynovaExecutionError,
435
365
  // Messages
436
366
  ISynovaMessage,
437
- ISynovaToolCall,
438
- ISynovaToolResult,
439
367
  TSynovaMessageRole,
440
368
  TSynovaResponseType,
441
369
  // 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.2",
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",