(tool Tool, canonicalName string)
| 273 | ), |
| 274 | IsError: true, |
| 275 | } |
| 276 | } |
| 277 | output := result.output |
| 278 | if warning != "" { |
| 279 | output = fmt.Sprintf("[Deprecation warning: %s]\n\n%s", warning, output) |
| 280 | } |
| 281 | return ToolResult{ToolUseID: call.ID, Content: output} |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | func mergeExecutionContextSideEffects(parent, child ExecutionContext) { |
| 286 | if parent == nil || child == nil { |
| 287 | return |
| 288 | } |
| 289 | for _, key := range []string{"_pending_skill_messages", "_pending_messages"} { |
| 290 | if value, ok := child[key]; ok { |
no test coverage detected