Skip to content

[PROTOTYPE] tool_use formatter implementation#916

Draft
LasmarKhalifa wants to merge 4 commits into
mainfrom
06-02/tool-use-implementation
Draft

[PROTOTYPE] tool_use formatter implementation#916
LasmarKhalifa wants to merge 4 commits into
mainfrom
06-02/tool-use-implementation

Conversation

@LasmarKhalifa
Copy link
Copy Markdown
Contributor

@LasmarKhalifa LasmarKhalifa commented Jun 4, 2026

Playground for tool use implementations. Most files are just for testing, the relevant one to look at is tool_use.rb

tool_use_foramtter_test.rb was created to see the tool uses in action.

Proposed design:

Single line tool use messages with truncation for long pieces of data.
image.png

Things that were considered:

Dual-line tool use: This was a good idea but it made the output harder to understand.
image.png

Single-line without truncation:
Long tool_use messages would mess up the visual coherence of the terminal output.

@LasmarKhalifa LasmarKhalifa force-pushed the 06-02/tool-use-implementation branch from 0c2ca4b to a8c4da8 Compare June 4, 2026 14:54
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant