Skip to content

Commit 0cc9ae7

Browse files
committed
Regenerate JSON Schema
1 parent 6aaaaf9 commit 0cc9ae7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

schema/schema.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,16 @@
10121012
],
10131013
"type": "object"
10141014
},
1015+
"ModelHint": {
1016+
"description": "Hints to use for model selection.\n\nKeys not declared here are currently left unspecified by the spec and are up\nto the client to interpret.",
1017+
"properties": {
1018+
"name": {
1019+
"description": "A hint for a model name.\n\nThe client SHOULD treat this as a substring of a model name; for example:\n - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`\n - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.\n - `claude` should match any Claude model\n\nThe client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:\n - `gemini-1.5-flash` could match `claude-3-haiku-20240307`",
1020+
"type": "string"
1021+
}
1022+
},
1023+
"type": "object"
1024+
},
10151025
"ModelPreferences": {
10161026
"description": "The server's preferences for model selection, requested of the client during sampling.\n\nBecause LLMs can vary along multiple dimensions, choosing the \"best\" model is\nrarely straightforward. Different models excel in different areas—some are\nfaster but less capable, others are more capable but more expensive, and so\non. This interface allows servers to express their priorities across multiple\ndimensions to help clients make an appropriate selection for their use case.\n\nThese preferences are always advisory. The client MAY ignore them. It is also\nup to the client to decide how to interpret these preferences and how to\nbalance them against other considerations.",
10171027
"properties": {
@@ -1022,9 +1032,9 @@
10221032
"type": "number"
10231033
},
10241034
"hints": {
1025-
"description": "Optional string hints to use for model selection. How these hints are\ninterpreted depends on the key(s) in each record:\n\n- If the record contains a `name` key:\n - The client SHOULD treat this as a substring of a model name; for example:\n - `claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`\n - `sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.\n - `claude` should match any Claude model\n - The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example:\n - `gemini-1.5-flash` could match `claude-3-haiku-20240307`\n\nAll other keys are currently left unspecified by the spec and are up to the\nclient to interpret.\n\nIf multiple hints are specified, the client MUST evaluate them in order\n(such that the first match is taken).\n\nThe client SHOULD prioritize these hints over the numeric priorities, but\nMAY still use the priorities to select from ambiguous matches.",
1035+
"description": "Optional hints to use for model selection.\n\nIf multiple hints are specified, the client MUST evaluate them in order\n(such that the first match is taken).\n\nThe client SHOULD prioritize these hints over the numeric priorities, but\nMAY still use the priorities to select from ambiguous matches.",
10261036
"items": {
1027-
"$ref": "#/definitions/Record<string,string>"
1037+
"$ref": "#/definitions/ModelHint"
10281038
},
10291039
"type": "array"
10301040
},
@@ -1340,9 +1350,6 @@
13401350
],
13411351
"type": "object"
13421352
},
1343-
"Record<string,string>": {
1344-
"type": "object"
1345-
},
13461353
"Request": {
13471354
"properties": {
13481355
"method": {

0 commit comments

Comments
 (0)