Hi,
I am converting a python app that has a pre-existing suite of custom tools over to using the copilot sdk. I have all of the built-in tools disabled, so it can only use mine. Whenever a tool emits a large response, it gets automatically saved into a tmp file and the AI is given a pointer to that file and references to tools that it doesn't have access to because they are disabled via config. Worse yet, my custom tools sandbox the filesystem reads so it can't even access /tmp to see the file.
Is it possible to either customize that message, or better yet, have more control over the truncation/the ability to disable it entirely?
Result(content='Output too large to read at once (30.8 KB). Saved to: /tmp/1776297019473-copilot-tool-output-2jk2c7.txt\nConsider using tools like grep (for searching), head/tail (for viewing start/end), view with view_range (for specific sections), or jq (for JSON) to examine portions of the output.\n\nPreview (first 500 chars):\n.....
Thanks
Hi,
I am converting a python app that has a pre-existing suite of custom tools over to using the copilot sdk. I have all of the built-in tools disabled, so it can only use mine. Whenever a tool emits a large response, it gets automatically saved into a tmp file and the AI is given a pointer to that file and references to tools that it doesn't have access to because they are disabled via config. Worse yet, my custom tools sandbox the filesystem reads so it can't even access /tmp to see the file.
Is it possible to either customize that message, or better yet, have more control over the truncation/the ability to disable it entirely?
Result(content='Output too large to read at once (30.8 KB). Saved to: /tmp/1776297019473-copilot-tool-output-2jk2c7.txt\nConsider using tools like grep (for searching), head/tail (for viewing start/end), view with view_range (for specific sections), or jq (for JSON) to examine portions of the output.\n\nPreview (first 500 chars):\n.....Thanks