Skip to content

Commit cbc81ee

Browse files
committed
fix(codecompanion): return tool result in 4 backticks
1 parent 9e9f163 commit cbc81ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/mcphub/extensions/codecompanion/utils.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ function M.create_output_handlers(action_name, has_function_calling, opts)
123123
local err_msg = string.format(
124124
[[**`%s` Tool**: Failed with the following error:
125125
126-
```
126+
````
127127
<error>
128128
%s
129129
</error>
130-
```
130+
````
131131
]],
132132
action_name,
133133
stderr
@@ -143,9 +143,9 @@ function M.create_output_handlers(action_name, has_function_calling, opts)
143143
local to_llm = string.format(
144144
[[**`%s` Tool**: Returned the following:
145145
146-
```
146+
````
147147
%s
148-
```]],
148+
````]],
149149
action_name,
150150
result.text
151151
)

0 commit comments

Comments
 (0)