Skip to content

Commit 580ff6d

Browse files
committed
bug #174 [AIBundle] Fix profiler with non-string tool results (valtzu)
This PR was merged into the main branch. Discussion ---------- [AIBundle] Fix profiler with non-string tool results | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | License | MIT Fix the following issue in Symfony AI profiler view which appears when using `blog` demo which has a `clock` tool returning a `DatePoint` instance: ``` An exception has been thrown during the rendering of a template ("nl2br(): Argument #1 ($string) must be of type string, Symfony\Component\Clock\DatePoint given") in `@AI`/data_collector.html.twig at line 242 ``` Commits ------- 5f9bcc4 [AIBundle] Fix profiler with non-string tool results
2 parents f77e9a0 + 5f9bcc4 commit 580ff6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ai-bundle/templates/data_collector.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
</tr>
240240
<tr>
241241
<th>Result</th>
242-
<td>{{ call.result|nl2br }}</td>
242+
<td>{{ dump(call.result) }}</td>
243243
</tr>
244244
</tbody>
245245
</table>

0 commit comments

Comments
 (0)