(output string)
| 153 | } |
| 154 | |
| 155 | func ResultSuccess(output string) *ToolCallResult { |
| 156 | return &ToolCallResult{ |
| 157 | Output: output, |
| 158 | IsError: false, |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | // ResultJSON marshals v as JSON and returns it as a successful tool result. |
| 163 | // If marshaling fails, it returns an error result. |
no outgoing calls