codemie-sdk 0.1.234 → 0.1.236

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/README.md CHANGED
@@ -1165,5 +1165,40 @@ Quick CLI example
1165
1165
  npx ts-node codemie-sdk/sdk/codemie-nodejs/examples/assistant_versions.ts <assistant_id> [version_number]
1166
1166
  ```
1167
1167
 
1168
+ ### Prompt Variables Support
1169
+ The SDK supports assistant-level prompt variables that the backend already exposes.
1170
+
1171
+ Example:
1172
+ ```typescript
1173
+ const params: AssistantCreateParams = {
1174
+ name: "My Assistant",
1175
+ description: "Assistant description",
1176
+ system_prompt: "Assistant instructions. Use {{project_name}} in responses.",
1177
+ toolkits: [],
1178
+ project: "my_project",
1179
+ llm_model_type: "gpt-4o",
1180
+ context: [],
1181
+ conversation_starters: [],
1182
+ mcp_servers: [],
1183
+ assistant_ids: [],
1184
+ prompt_variables: [
1185
+ { key: "project_name", default_value: "Delta", description: "Current project" },
1186
+ { key: "region", default_value: "eu" }
1187
+ ],
1188
+ };
1189
+ await client.assistants.create(params);
1190
+
1191
+ // Update
1192
+ await client.assistants.update("assistant-id", {
1193
+ ...params,
1194
+ prompt_variables: [
1195
+ { key: "project_name", default_value: "Delta-Updated" },
1196
+ { key: "region", default_value: "us" },
1197
+ ],
1198
+ });
1199
+ ```
1200
+
1201
+ Note: The backend validates duplicates; SDK passes them through and surfaces backend errors.
1202
+
1168
1203
  ## Support
1169
1204
  For providing credentials please contact AI/Run CodeMie Team: Vadym_Vlasenko@epam.com or Nikita_Levyankov@epam.com
package/dist/index.cjs CHANGED
@@ -149,6 +149,11 @@ var AssistantListParamsSchema = import_zod.z.object({
149
149
  per_page: import_zod.z.number().default(12),
150
150
  filters: import_zod.z.record(import_zod.z.unknown()).optional()
151
151
  }).readonly();
152
+ var PromptVariableSchema = import_zod.z.object({
153
+ key: import_zod.z.string(),
154
+ description: import_zod.z.string().optional(),
155
+ default_value: import_zod.z.string()
156
+ });
152
157
  var AssistantCreateParamsSchema = import_zod.z.object({
153
158
  name: import_zod.z.string(),
154
159
  description: import_zod.z.string(),
@@ -206,7 +211,8 @@ var AssistantCreateParamsSchema = import_zod.z.object({
206
211
  mcp_connect_auth_token: import_zod.z.any().optional()
207
212
  })
208
213
  ),
209
- assistant_ids: import_zod.z.array(import_zod.z.string())
214
+ assistant_ids: import_zod.z.array(import_zod.z.string()),
215
+ prompt_variables: import_zod.z.array(PromptVariableSchema).optional().default([])
210
216
  }).readonly();
211
217
  var AssistantUpdateParamsSchema = AssistantCreateParamsSchema;
212
218
  var AssistantChatParamsSchema = import_zod.z.object({