haystack/releasenotes/notes/add-outputs-to-string-fa3380fd072c8850.yaml
Sebastian Husch Lee d15f1b9043
feat: Add outputs_to_string to Tool and ComponentTool (#9152)
* Add outputs_to_string to Tool and ComponentTool

* Doc string and fix tests

* Add reno

* Fix mypy
2025-04-01 14:04:50 +02:00

6 lines
375 B
YAML

---
features:
- |
Adds outputs_to_string to Tool and ComponentTool to allow users to customize how the output of a Tool should be converted into a string so that it can be provided back to the ChatGenerator in a ChatMessage.
If outputs_to_string is not provided a default converter is used within ToolInvoker. The default handler uses the current default behavior.