Skip to content

Commit c34f0b4

Browse files
authored
Merge pull request #13 from Alchemyst-ai/release-please--branches--main--changes--next--components--sdk
release: 0.9.0
2 parents b740b53 + 1219299 commit c34f0b4

9 files changed

Lines changed: 53 additions & 42 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.8.1"
2+
".": "0.9.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alchemyst-ai%2Falchemyst-ai-sdk-17acc86e90b7e5144765b920da4f19b65dd5d97a8bcd0b104e029a103ebbd76e.yml
3-
openapi_spec_hash: 49f1b913c3cb7b279766e8dfa78b6237
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alchemyst-ai%2Falchemyst-ai-sdk-e8e44e0e972cd2e130110834826053d128e088f8c94fa824b4e8f0498cc3ff7a.yml
3+
openapi_spec_hash: 23b2524dd290e587b543601546731842
44
config_hash: 5aa39dd4797ce0dacbe19c69fcf11be6

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.9.0 (2026-01-06)
4+
5+
Full Changelog: [v0.8.1...v0.9.0](https://github.com/Alchemyst-ai/alchemyst-sdk/compare/v0.8.1...v0.9.0)
6+
7+
### Features
8+
9+
* **api:** api update ([aa314a6](https://github.com/Alchemyst-ai/alchemyst-sdk/commit/aa314a6b95cb82cbf30763327ecdf43832ee6c62))
10+
311
## 0.8.1 (2026-01-06)
412

513
Full Changelog: [v0.8.1...v0.8.1](https://github.com/Alchemyst-ai/alchemyst-sdk/compare/v0.8.1...v0.8.1)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alchemystai/sdk",
3-
"version": "0.8.1",
3+
"version": "0.9.0",
44
"description": "The official TypeScript library for the Alchemyst AI API",
55
"author": "Alchemyst AI <anuran@getalchemystai.com>",
66
"types": "dist/index.d.ts",

src/resources/v1/context/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export interface ContextSearchParams {
244244
* - metadata=false (or omitted) → metadata will be excluded from the response for
245245
* better performance.
246246
*/
247-
metadata?: 'true' | 'false';
247+
metadata?;
248248

249249
/**
250250
* Query param: Controls the search mode:

src/resources/v1/context/memory.ts

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,15 @@ export class Memory extends APIResource {
6969
* content:
7070
* 'Customer asked about pricing for the Scale plan.',
7171
* metadata: { messageId: 'msg-1' },
72-
* role: 'user',
73-
* id: 'msg-1',
74-
* createdAt: '2025-01-10T12:34:56.000Z',
7572
* },
7673
* {
7774
* content:
7875
* 'Explained the Scale plan pricing and shared the pricing page link.',
7976
* metadata: { messageId: 'msg-2' },
80-
* role: 'assistant',
81-
* id: 'msg-2',
82-
* createdAt: '2025-01-10T12:35:30.000Z',
8377
* },
8478
* ],
8579
* memoryId: 'support-thread-TCK-1234',
80+
* metadata: { groupName: ['support', 'pricing'] },
8681
* });
8782
* ```
8883
*/
@@ -177,42 +172,52 @@ export interface MemoryDeleteParams {
177172

178173
export interface MemoryAddParams {
179174
/**
180-
* Array of content objects with additional properties allowed
175+
* Array of content objects with metadata
181176
*/
182177
contents: Array<MemoryAddParams.Content>;
183178

184179
/**
185180
* The ID of the memory
186181
*/
187182
memoryId: string;
183+
184+
/**
185+
* Optional metadata with groupName defaulting to ["default"]
186+
*/
187+
metadata?: MemoryAddParams.Metadata;
188188
}
189189

190190
export namespace MemoryAddParams {
191191
export interface Content {
192-
/**
193-
* Unique message ID
194-
*/
195-
id?: string;
196-
197192
/**
198193
* The content of the memory message
199194
*/
200-
content?: string;
195+
content: string;
201196

202-
/**
203-
* Creation timestamp
204-
*/
205-
createdAt?: string;
197+
metadata: Content.Metadata;
206198

207-
/**
208-
* Additional metadata for the message
209-
*/
210-
metadata?: { [key: string]: unknown };
199+
[k: string]: unknown;
200+
}
201+
202+
export namespace Content {
203+
export interface Metadata {
204+
/**
205+
* Unique message ID
206+
*/
207+
messageId: string;
208+
209+
[k: string]: unknown;
210+
}
211+
}
211212

213+
/**
214+
* Optional metadata with groupName defaulting to ["default"]
215+
*/
216+
export interface Metadata {
212217
/**
213-
* Role of the message sender (e.g., user, assistant)
218+
* Group names for the memory context
214219
*/
215-
role?: string;
220+
groupName?: Array<string>;
216221

217222
[k: string]: unknown;
218223
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.8.1'; // x-release-please-version
1+
export const VERSION = '0.9.0'; // x-release-please-version

tests/api-resources/v1/context/context.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('resource context', () => {
9090
minimum_similarity_threshold: 0.5,
9191
query: 'What did the customer ask about pricing for the Scale plan?',
9292
similarity_threshold: 0.8,
93-
metadata: 'true',
93+
metadata: undefined,
9494
mode: 'fast',
9595
body_metadata: {},
9696
scope: 'internal',

tests/api-resources/v1/context/memory.test.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ describe('resource memory', () => {
7575
// Prism tests are disabled
7676
test.skip('add: only required params', async () => {
7777
const responsePromise = client.v1.context.memory.add({
78-
contents: [{}, {}],
78+
contents: [
79+
{ content: 'Customer asked about pricing for the Scale plan.', metadata: { messageId: 'msg-1' } },
80+
{
81+
content: 'Explained the Scale plan pricing and shared the pricing page link.',
82+
metadata: { messageId: 'msg-2' },
83+
},
84+
],
7985
memoryId: 'support-thread-TCK-1234',
8086
});
8187
const rawResponse = await responsePromise.asResponse();
@@ -91,22 +97,14 @@ describe('resource memory', () => {
9197
test.skip('add: required and optional params', async () => {
9298
const response = await client.v1.context.memory.add({
9399
contents: [
100+
{ content: 'Customer asked about pricing for the Scale plan.', metadata: { messageId: 'msg-1' } },
94101
{
95-
id: 'msg-1',
96-
content: 'Customer asked about pricing for the Scale plan.',
97-
createdAt: '2025-01-10T12:34:56.000Z',
98-
metadata: { messageId: 'bar' },
99-
role: 'user',
100-
},
101-
{
102-
id: 'msg-2',
103102
content: 'Explained the Scale plan pricing and shared the pricing page link.',
104-
createdAt: '2025-01-10T12:35:30.000Z',
105-
metadata: { messageId: 'bar' },
106-
role: 'assistant',
103+
metadata: { messageId: 'msg-2' },
107104
},
108105
],
109106
memoryId: 'support-thread-TCK-1234',
107+
metadata: { groupName: ['support', 'pricing'] },
110108
});
111109
});
112110
});

0 commit comments

Comments
 (0)