Download this file
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 4 | "ToolRequestUserInputOption": { |
| 5 | "description": "EXPERIMENTAL. Defines a single selectable option for request_user_input.", |
| 6 | "properties": { |
| 7 | "description": { |
| 8 | "type": "string" |
| 9 | }, |
| 10 | "label": { |
| 11 | "type": "string" |
| 12 | } |
| 13 | }, |
| 14 | "required": [ |
| 15 | "description", |
| 16 | "label" |
| 17 | ], |
| 18 | "type": "object" |
| 19 | }, |
| 20 | "ToolRequestUserInputQuestion": { |
| 21 | "description": "EXPERIMENTAL. Represents one request_user_input question and its required options.", |
| 22 | "properties": { |
| 23 | "header": { |
| 24 | "type": "string" |
| 25 | }, |
| 26 | "id": { |
| 27 | "type": "string" |
| 28 | }, |
| 29 | "isOther": { |
| 30 | "default": false, |
| 31 | "type": "boolean" |
| 32 | }, |
| 33 | "isSecret": { |
| 34 | "default": false, |
| 35 | "type": "boolean" |
| 36 | }, |
| 37 | "options": { |
| 38 | "items": { |
| 39 | "$ref": "#/definitions/ToolRequestUserInputOption" |
| 40 | }, |
| 41 | "type": [ |
| 42 | "array", |
| 43 | "null" |
| 44 | ] |
| 45 | }, |
| 46 | "question": { |
| 47 | "type": "string" |
| 48 | } |
| 49 | }, |
| 50 | "required": [ |
| 51 | "header", |
| 52 | "id", |
| 53 | "question" |
| 54 | ], |
| 55 | "type": "object" |
| 56 | } |
| 57 | }, |
| 58 | "description": "EXPERIMENTAL. Params sent with a request_user_input event.", |
| 59 | "properties": { |
| 60 | "autoResolutionMs": { |
| 61 | "default": null, |
| 62 | "description": "@deprecated Use `isBlocking` to decide whether the request should block.", |
| 63 | "format": "uint64", |
| 64 | "minimum": 0.0, |
| 65 | "type": [ |
| 66 | "integer", |
| 67 | "null" |
| 68 | ] |
| 69 | }, |
| 70 | "isBlocking": { |
| 71 | "type": "boolean" |
| 72 | }, |
| 73 | "itemId": { |
| 74 | "type": "string" |
| 75 | }, |
| 76 | "questions": { |
| 77 | "items": { |
| 78 | "$ref": "#/definitions/ToolRequestUserInputQuestion" |
| 79 | }, |
| 80 | "type": "array" |
| 81 | }, |
| 82 | "threadId": { |
| 83 | "type": "string" |
| 84 | }, |
| 85 | "turnId": { |
| 86 | "type": "string" |
| 87 | } |
| 88 | }, |
| 89 | "required": [ |
| 90 | "isBlocking", |
| 91 | "itemId", |
| 92 | "questions", |
| 93 | "threadId", |
| 94 | "turnId" |
| 95 | ], |
| 96 | "title": "ToolRequestUserInputParams", |
| 97 | "type": "object" |
| 98 | } |