Do not expose tools for standalone text-only LLMRunner tasks#59
Conversation
|
Thanks for this fix! We've noticed this issue as well. On certain reasoning models, the L1 extraction path can run into problems like what's described in #58. We'll review this and follow up with you soon. |
|
After reviewing the relevant code, I can explain why a This project originally reused OpenClaw's
After I removed |
|
Thanks a lot for the thorough investigation and explanation. This was very helpful, and I learned a lot from the background on why Your clarification makes perfect sense: the workaround was necessary in the Based on your feedback, I have updated this PR to remove the Thanks again for taking the time to trace this through so carefully. |
|
@sirenexcelsior Thanks for your contribution! |
|
Updated the PR title and description to focus only on removing tools from the standalone LLMRunner text-only path. Thanks for the guidance. |
Summary
This PR removes tool exposure from the standalone
LLMRunnerwhenenableTools=false.Why
Some standalone text-only tasks, such as L1 extraction, expect plain text output and do not need tool access. Passing even a read-only tool subset can still encourage tool-calling behavior on OpenAI-compatible backends, which makes this path less stable than necessary.
With this change:
enableTools=truekeeps the existing sandboxed tool behaviorenableTools=falsesends no tools at allScope
src/adapters/standalone/llm-runner.tsNotes
This is intentionally narrow and only affects the standalone runner's text-only path.