Skip to content

Commit 46f8b2f

Browse files
committed
validation, simplify wording.
1 parent 40bf813 commit 46f8b2f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

schema/schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,14 +1505,14 @@
15051505
"description": "A human-readable name for this resource.\n\nThis can be used by clients to populate UI elements.",
15061506
"type": "string"
15071507
},
1508+
"size": {
1509+
"description": "The size of the resource in bytes before encoding or tokenization, if known.\n\nThis can be used by Hosts to display file sizes and estimate context window usage.",
1510+
"type": "integer"
1511+
},
15081512
"uri": {
15091513
"description": "The URI of this resource.",
15101514
"format": "uri",
15111515
"type": "string"
1512-
},
1513-
"size": {
1514-
"description": "The size of the resource in bytes before any encoding or tokenization, if known.\n\nThis can be used by Hosts to display file sizes and estimate context window usage.",
1515-
"type": "number"
15161516
}
15171517
},
15181518
"required": [

schema/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export interface Resource extends Annotated {
445445
mimeType?: string;
446446

447447
/**
448-
* The size of the resource in bytes before any encoding or tokenization, if known.
448+
* The size of the resource in bytes before encoding or tokenization, if known.
449449
*
450450
* This can be used by Hosts to display file sizes and estimate context window usage.
451451
*/

0 commit comments

Comments
 (0)