Skip to content

Commit fdf65b2

Browse files
feat: Add metadata field to request and response
1 parent b3e5d2d commit fdf65b2

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4faa59941f5c5148c27e55107a476897728c7df5031cedb4b4a779b9de83d16f.yml
3-
openapi_spec_hash: 978d812a4c31ac79af45e0fc029ec647
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4ea81517e66f9dffe1f552b1d56fd745fd24dbf5523d2306fee7e19b96a86885.yml
3+
openapi_spec_hash: a30ec4b7a5399cb164fb818152a41b58
44
config_hash: 39578cfdeb4a10121f2cb3fa3e4d5e20

src/resources/responses/responses.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export interface ResponseObject {
111111

112112
max_tool_calls?: number | null;
113113

114+
metadata?: { [key: string]: string } | null;
115+
114116
object?: 'response';
115117

116118
parallel_tool_calls?: boolean | null;
@@ -2027,6 +2029,8 @@ export interface ResponseListResponse {
20272029

20282030
max_tool_calls?: number | null;
20292031

2032+
metadata?: { [key: string]: string } | null;
2033+
20302034
object?: 'response';
20312035

20322036
parallel_tool_calls?: boolean | null;
@@ -3000,6 +3004,8 @@ export interface ResponseCreateParamsBase {
30003004

30013005
max_tool_calls?: number | null;
30023006

3007+
metadata?: { [key: string]: string } | null;
3008+
30033009
parallel_tool_calls?: boolean | null;
30043010

30053011
previous_response_id?: string | null;

tests/api-resources/responses/responses.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('resource responses', () => {
3232
instructions: 'instructions',
3333
max_infer_iters: 0,
3434
max_tool_calls: 0,
35+
metadata: { foo: 'string' },
3536
parallel_tool_calls: true,
3637
previous_response_id: 'previous_response_id',
3738
prompt: { id: 'id', variables: { foo: { text: 'text', type: 'input_text' } }, version: 'version' },

0 commit comments

Comments
 (0)