(input: {
readonly toolCallId: string
readonly toolName: string
readonly state: CompletedToolState & { readonly title?: string }
readonly cwd?: string
})
| 184 | } |
| 185 | |
| 186 | export function completedToolUpdate(input: { |
| 187 | readonly toolCallId: string |
| 188 | readonly toolName: string |
| 189 | readonly state: CompletedToolState & { readonly title?: string } |
| 190 | readonly cwd?: string |
| 191 | }): ToolCallUpdate { |
| 192 | return { |
| 193 | toolCallId: input.toolCallId, |
| 194 | status: "completed", |
| 195 | ...(input.state.title ? { title: input.state.title } : {}), |
| 196 | content: completedToolContent(input.toolName, input.state), |
| 197 | rawOutput: completedToolRawOutput(input.state), |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | export function errorToolUpdate(input: { |
| 202 | readonly toolCallId: string |
no test coverage detected