|
1 | 1 | ---@meta |
| 2 | + |
2 | 3 | ---@class eca.ChatContext |
3 | 4 | ---@field type string |
4 | 5 | ---@field path? string |
5 | | ----@field lines_range? {start: integer, end: integer} |
| 6 | +---@field linesRange? {start: integer, end: integer} |
6 | 7 | ---@field url? string |
7 | 8 | ---@field uri? string |
8 | 9 | ---@field name? string |
9 | 10 | ---@field description? string |
10 | | ----@field mime_type? string |
| 11 | +---@field mimeType? string |
11 | 12 | ---@field server string |
12 | | ---- |
13 | | ---- |
| 13 | + |
14 | 14 | ---@class eca.ChatCommand |
15 | 15 | ---@field name string |
16 | 16 | ---@field description string |
17 | 17 | ---@field help string |
18 | 18 | ---@field type "mcp-prompt"|"native" |
19 | 19 | ---@field arguments {name: string, description?: string, required: boolean}[] |
| 20 | + |
| 21 | +---@alias eca.ToolCallOrigin "mcp"|"native" |
| 22 | + |
| 23 | +---@alias eca.ToolCallDetails eca.FileChangedDetails |
| 24 | + |
| 25 | +---@class eca.FileChangedDetails |
| 26 | +---@field type 'fileChange' |
| 27 | +---@field path string the file path of this file change |
| 28 | +---@field diff string the content diff of this file change |
| 29 | +---@field linesAdded integer the count of lines added in this change |
| 30 | +---@field linesRemoved integer the count of lines removed in this change |
| 31 | + |
| 32 | +---@class eca.ToolCallRun |
| 33 | +---@field type 'toolCallRun' |
| 34 | +---@field origin eca.ToolCallOrigin |
| 35 | +---@field id string the id of the tool call |
| 36 | +---@field name string name of the tool |
| 37 | +---@field arguments {[string]: string} arguments of the tool call |
| 38 | +---@field manualApproval boolean whether the call requires manual approval from the user |
| 39 | +---@field summary string summary text to present about this tool call |
| 40 | +---@field details eca.ToolCallDetails extra details for the call. clients may use this to present a different UX for this tool call. |
| 41 | + |
| 42 | +---@class eca.ToolCalled |
| 43 | +---@field type 'toolCalled' |
| 44 | +---@field id string the id of the tool call |
| 45 | +---@field name string name of the tool |
| 46 | +---@field arguments {[string]: string} arguments of the tool call |
| 47 | +---@field errors boolean was there an error calling the tool |
| 48 | +---@field outputs {type: 'text', text: string}[] the result of the tool call |
| 49 | +---@field summary? string summary text to present about the tool call |
| 50 | +---@field details? eca.ToolCallDetails extra details about the call |
0 commit comments