github.com/instill-ai/component@v0.16.0-beta/pkg/connector/redis/v0/config/tasks.json (about) 1 { 2 "TASK_RETRIEVE_CHAT_HISTORY": { 3 "instillShortDescription": "Retrieve chat history from Redis.", 4 "input": { 5 "instillUIOrder": 0, 6 "properties": { 7 "include_system_message": { 8 "default": true, 9 "description": "Include system message in the retrieved conversation turns if exists", 10 "instillAcceptFormats": [ 11 "boolean" 12 ], 13 "instillUIOrder": 2, 14 "instillUpstreamTypes": [ 15 "value", 16 "reference" 17 ], 18 "title": "Include System Message If Exists", 19 "type": "boolean" 20 }, 21 "latest_k": { 22 "default": 5, 23 "description": "The number of latest conversation turns to retrieve. A conversation turn typically includes one participant speaking or sending a message, and the other participant(s) responding to it.", 24 "instillAcceptFormats": [ 25 "integer" 26 ], 27 "instillUIOrder": 1, 28 "instillUpstreamTypes": [ 29 "value", 30 "reference" 31 ], 32 "minimum": 1, 33 "title": "Latest K", 34 "type": "integer" 35 }, 36 "session_id": { 37 "description": "A unique identifier for the chat session", 38 "instillAcceptFormats": [ 39 "string" 40 ], 41 "instillUIOrder": 0, 42 "instillUpstreamTypes": [ 43 "value", 44 "reference", 45 "template" 46 ], 47 "title": "Session ID", 48 "type": "string" 49 } 50 }, 51 "required": [ 52 "session_id" 53 ], 54 "title": "Input", 55 "type": "object" 56 }, 57 "output": { 58 "instillUIOrder": 0, 59 "properties": { 60 "messages": { 61 "$ref": "https://raw.githubusercontent.com/instill-ai/component/b530a7ac8558f38f45bd116c503b1e2a31a4f92b/schema.json#/$defs/instill_types/chat_messages", 62 "description": "Messages", 63 "instillUIOrder": 0 64 } 65 }, 66 "required": [ 67 "messages" 68 ], 69 "title": "Output", 70 "type": "object" 71 } 72 }, 73 "TASK_WRITE_CHAT_MESSAGE": { 74 "instillShortDescription": "Write chat message into Redis.", 75 "input": { 76 "instillUIOrder": 0, 77 "properties": { 78 "content": { 79 "description": "The message content", 80 "instillAcceptFormats": [ 81 "string" 82 ], 83 "instillUIMultiline": true, 84 "instillUIOrder": 2, 85 "instillUpstreamTypes": [ 86 "value", 87 "reference", 88 "template" 89 ], 90 "title": "Content", 91 "type": "string" 92 }, 93 "metadata": { 94 "additionalProperties": true, 95 "description": "The message metadata", 96 "instillUIOrder": 3, 97 "required": [], 98 "title": "Metadata", 99 "type": "object" 100 }, 101 "role": { 102 "description": "The message role, i.e. 'system', 'user' or 'assistant'", 103 "instillAcceptFormats": [ 104 "string" 105 ], 106 "instillUIOrder": 1, 107 "instillUpstreamTypes": [ 108 "value", 109 "reference", 110 "template" 111 ], 112 "title": "Role", 113 "type": "string" 114 }, 115 "session_id": { 116 "description": "A unique identifier for the chat session", 117 "instillAcceptFormats": [ 118 "string" 119 ], 120 "instillUIOrder": 0, 121 "instillUpstreamTypes": [ 122 "value", 123 "reference", 124 "template" 125 ], 126 "title": "Session ID", 127 "type": "string" 128 } 129 }, 130 "required": [ 131 "session_id", 132 "role", 133 "content" 134 ], 135 "title": "Input", 136 "type": "object" 137 }, 138 "output": { 139 "instillUIOrder": 0, 140 "properties": { 141 "status": { 142 "description": "The status of the write operation", 143 "instillFormat": "boolean", 144 "instillUIOrder": 0, 145 "title": "Status", 146 "type": "boolean" 147 } 148 }, 149 "required": [ 150 "status" 151 ], 152 "title": "Output", 153 "type": "object" 154 } 155 }, 156 "TASK_WRITE_MULTI_MODAL_CHAT_MESSAGE": { 157 "instillShortDescription": "Write multi-modal chat message into Redis.", 158 "input": { 159 "instillUIOrder": 0, 160 "properties": { 161 "content": { 162 "$ref": "https://raw.githubusercontent.com/instill-ai/component/b530a7ac8558f38f45bd116c503b1e2a31a4f92b/schema.json#/$defs/instill_types/multi_modal_content", 163 "description": "The multi-modal message content", 164 "instillAcceptFormats": [ 165 "structured/multi_modal_content" 166 ], 167 "instillUIOrder": 2, 168 "instillUpstreamTypes": [ 169 "reference" 170 ], 171 "title": "Content", 172 "type": "string" 173 }, 174 "metadata": { 175 "additionalProperties": true, 176 "description": "The message metadata", 177 "instillUIOrder": 3, 178 "required": [], 179 "title": "Metadata", 180 "type": "object" 181 }, 182 "role": { 183 "description": "The message role, i.e. 'system', 'user' or 'assistant'", 184 "instillAcceptFormats": [ 185 "string" 186 ], 187 "instillUIOrder": 1, 188 "instillUpstreamTypes": [ 189 "value", 190 "reference", 191 "template" 192 ], 193 "title": "Role", 194 "type": "string" 195 }, 196 "session_id": { 197 "description": "A unique identifier for the chat session", 198 "instillAcceptFormats": [ 199 "string" 200 ], 201 "instillUIOrder": 0, 202 "instillUpstreamTypes": [ 203 "value", 204 "reference", 205 "template" 206 ], 207 "title": "Session ID", 208 "type": "string" 209 } 210 }, 211 "required": [ 212 "session_id", 213 "role", 214 "content" 215 ], 216 "title": "Input", 217 "type": "object" 218 }, 219 "output": { 220 "instillUIOrder": 0, 221 "properties": { 222 "status": { 223 "description": "The status of the write operation", 224 "instillFormat": "boolean", 225 "instillUIOrder": 0, 226 "title": "Status", 227 "type": "boolean" 228 } 229 }, 230 "required": [ 231 "status" 232 ], 233 "title": "Output", 234 "type": "object" 235 } 236 } 237 }