|
142 | 142 | ---@field message string|nil Optional status or error message |
143 | 143 |
|
144 | 144 | ---@class TaskToolMetadata: ToolMetadataBase |
145 | | ----@field summary MessagePart[] |
| 145 | +---@field summary OpencodeMessagePart[] |
146 | 146 |
|
147 | 147 | ---@class WebFetchToolMetadata: ToolMetadataBase |
148 | 148 | ---@field http_status number|nil HTTP response status code |
|
203 | 203 | ---@field prompt string The subtask prompt |
204 | 204 | ---@field description string Description of the subtask |
205 | 205 |
|
206 | | ----@class MessagePart |
207 | | ----@field type 'text'|'tool'|'step-start'|'patch' Type of the message part |
208 | | ----@field text string|nil Text content for text parts |
209 | | ----@field id string|nil Unique identifier for tool use parts |
210 | | ----@field tool string|nil Name of the tool being used |
211 | | ----@field state MessagePartState|nil State information for tool use parts |
212 | | ----@field snapshot string|nil Snapshot commit hash |
213 | | ----@field sessionID string|nil Session identifier |
214 | | ----@field messageID string|nil Message identifier |
215 | | ----@field callID string|nil Call identifier (used for tools) |
216 | | ----@field hash string|nil Hash identifier for patch parts |
217 | | ----@field files string[]|nil List of file paths for patch parts |
218 | | ----@field synthetic boolean|nil Whether the message was generated synthetically |
219 | | - |
220 | 206 | ---@class MessageTokenCount |
221 | 207 | ---@field reasoning number |
222 | 208 | ---@field input number |
|
243 | 229 |
|
244 | 230 | ---@class OpencodeMessage |
245 | 231 | ---@field info MessageInfo Metadata about the message |
246 | | ----@field parts MessagePart[] Parts that make up the message |
| 232 | +---@field parts OpencodeMessagePart[] Parts that make up the message |
247 | 233 |
|
248 | 234 | ---@class MessageInfo |
249 | 235 | ---@field id string Unique message identifier |
|
337 | 323 | ---@field value string|nil |
338 | 324 |
|
339 | 325 | ---@class OpencodeMessagePart |
340 | | ----@field type 'text'|'file'|'agent'|string |
| 326 | +---@field type 'text'|'file'|'agent'|'tool'|'step-start'|'patch'|string |
| 327 | +---@field id string|nil Unique identifier for tool use parts |
341 | 328 | ---@field text string|nil |
| 329 | +---@field tool string|nil Name of the tool being used |
| 330 | +---@field state MessagePartState|nil State information for tool use parts |
342 | 331 | ---@field filename string|nil |
343 | 332 | ---@field mime string|nil |
344 | 333 | ---@field url string|nil |
345 | 334 | ---@field source OpencodeMessagePartSource|nil |
346 | 335 | ---@field name string|nil |
347 | 336 | ---@field synthetic boolean|nil |
| 337 | +---@field snapshot string|nil Snapshot commit hash |
| 338 | +---@field sessionID string|nil Session identifier |
| 339 | +---@field messageID string|nil Message identifier |
| 340 | +---@field callID string|nil Call identifier (used for tools) |
| 341 | +---@field hash string|nil Hash identifier for patch parts |
| 342 | +---@field files string[]|nil List of file paths for patch parts |
348 | 343 |
|
349 | 344 | ---@class OpencodeModelModalities |
350 | 345 | ---@field input ('text'|'image'|'audio'|'video')[] Supported input modalities |
|
0 commit comments