Skip to content

Commit fdd755c

Browse files
feat(api): api update
1 parent 615c1f6 commit fdd755c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.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-beb76e148338869e59b078902ddfb59fb4f8367daf105ee5f7f676de62ad75bf.yml
3-
openapi_spec_hash: 3bfc56a24723954c74ac3d3a18c072d4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/alchemyst-ai%2Falchemyst-ai-sdk-c77e179652eb08eba2cb6460ed9bdc3216a61ed30990028310d2806c6d043bdf.yml
3+
openapi_spec_hash: 44298c6ad241e7aab2bbd6aa680c47cf
44
config_hash: 5aa39dd4797ce0dacbe19c69fcf11be6

src/resources/v1/context/memory.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Memory extends APIResource {
7070
* 'Customer asked about pricing for the Scale plan.',
7171
* },
7272
* ],
73-
* memoryId: 'support-thread-TCK-1234',
73+
* sessionId: 'support-thread-TCK-1234',
7474
* });
7575
* ```
7676
*/
@@ -171,12 +171,13 @@ export interface MemoryAddParams {
171171
contents: Array<MemoryAddParams.Content>;
172172

173173
/**
174-
* The ID of the memory
174+
* The ID of the session
175175
*/
176-
memoryId: string;
176+
sessionId: string;
177177

178178
/**
179-
* Optional metadata for the memory context. Defaults to ["default"]
179+
* Optional metadata for the memory context. Defaults to ["default"] if not
180+
* provided.
180181
*/
181182
metadata?: MemoryAddParams.Metadata;
182183
}
@@ -205,13 +206,12 @@ export namespace MemoryAddParams {
205206
* Unique message ID
206207
*/
207208
messageId?: string;
208-
209-
[k: string]: unknown;
210209
}
211210
}
212211

213212
/**
214-
* Optional metadata for the memory context. Defaults to ["default"]
213+
* Optional metadata for the memory context. Defaults to ["default"] if not
214+
* provided.
215215
*/
216216
export interface Metadata {
217217
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('resource memory', () => {
7676
test.skip('add: only required params', async () => {
7777
const responsePromise = client.v1.context.memory.add({
7878
contents: [{ content: 'Customer asked about pricing for the Scale plan.' }],
79-
memoryId: 'support-thread-TCK-1234',
79+
sessionId: 'support-thread-TCK-1234',
8080
});
8181
const rawResponse = await responsePromise.asResponse();
8282
expect(rawResponse).toBeInstanceOf(Response);
@@ -96,7 +96,7 @@ describe('resource memory', () => {
9696
metadata: { messageId: 'messageId' },
9797
},
9898
],
99-
memoryId: 'support-thread-TCK-1234',
99+
sessionId: 'support-thread-TCK-1234',
100100
metadata: { groupName: ['string'] },
101101
});
102102
});

0 commit comments

Comments
 (0)