Skip to content

Commit 01aaab9

Browse files
agu-zas-ciinathansoboConradIrwin
committed
Rename displayName to label
Co-authored-by: Antonio Scandurra <[email protected]> Co-authored-by: Nathan Sobo <[email protected]> Co-authored-by: Conrad Irwin <[email protected]>
1 parent bd131e9 commit 01aaab9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

rust/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub struct StatResponse {
404404
#[serde(rename_all = "camelCase")]
405405
pub struct RequestToolCallConfirmationParams {
406406
pub thread_id: ThreadId,
407-
pub display_name: String,
407+
pub label: String,
408408
pub confirmation: ToolCallConfirmation,
409409
}
410410

@@ -464,7 +464,7 @@ pub enum ToolCallConfirmationOutcome {
464464
#[serde(rename_all = "camelCase")]
465465
pub struct PushToolCallParams {
466466
pub thread_id: ThreadId,
467-
pub display_name: String,
467+
pub label: String,
468468
}
469469

470470
#[derive(Debug, Serialize, Deserialize, JsonSchema)]

schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@
233233
"PushToolCallParams": {
234234
"type": "object",
235235
"properties": {
236-
"displayName": {
236+
"label": {
237237
"type": "string"
238238
},
239239
"threadId": {
240240
"$ref": "#/$defs/ThreadId"
241241
}
242242
},
243-
"required": ["threadId", "displayName"]
243+
"required": ["threadId", "label"]
244244
},
245245
"PushToolCallResponse": {
246246
"type": "object",
@@ -325,14 +325,14 @@
325325
"confirmation": {
326326
"$ref": "#/$defs/ToolCallConfirmation"
327327
},
328-
"displayName": {
328+
"label": {
329329
"type": "string"
330330
},
331331
"threadId": {
332332
"$ref": "#/$defs/ThreadId"
333333
}
334334
},
335-
"required": ["threadId", "displayName", "confirmation"]
335+
"required": ["threadId", "label", "confirmation"]
336336
},
337337
"RequestToolCallConfirmationResponse": {
338338
"type": "object",

typescript/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ export interface GlobSearchParams {
119119
}
120120
export interface RequestToolCallConfirmationParams {
121121
confirmation: ToolCallConfirmation;
122-
displayName: string;
122+
label: string;
123123
threadId: ThreadId;
124124
}
125125
export interface PushToolCallParams {
126-
displayName: string;
126+
label: string;
127127
threadId: ThreadId;
128128
}
129129
export interface UpdateToolCallParams {

0 commit comments

Comments
 (0)