[PROTOTYPE] Pi tool formatters#1005
Conversation
|
We should put some more thought into how we handle custom tool display, as Pi is almost certain to have those. Calling them "unknown" isn't good enough, as anybody can define a tool in the harness and Roast should not be expected to know anything other than defaults. |
I agree. Made changes so that each unknown tool call shows the name of the tool, and then shows each key-value pair with truncation so the output remains concise. This makes it more of a generic tool formatter rather than one that expresses that this tool is unknown, which is a great improvement. Let me know what you think! |
|
Nice, I like that much better. |

Prototype for Pi tool formatters. Mirrors the current implementation of Claude tool formatters. Pi only exposes 7 tools by default, as stated here.
The final implementation would include doc comments (mirroring the style of the Claude formatters), as well as tests.
Current tool formatting (includes every tool call and result as well as an error case):
Proposed formatting (same tool calls, results and error case):