LLM_TOOLS_DEBUG env var, closes #1045

This commit is contained in:
Simon Willison 2025-05-17 22:38:15 -04:00
parent a888efa271
commit f320de1b0c
2 changed files with 2 additions and 1 deletions

View file

@ -132,7 +132,7 @@ def multiply(x: int, y: int) -> int:
return x * y
' 'what is 34234 * 213345'
```
Add `--td/--tools-debug` to see full details of the tools that are being executed:
Add `--td/--tools-debug` to see full details of the tools that are being executed. You can also set the `LLM_TOOLS_DEBUG` environment variable to `1` to enable this for all prompts.
```bash
llm --functions '
def multiply(x: int, y: int) -> int:

View file

@ -354,6 +354,7 @@ def cli():
"--tools-debug",
is_flag=True,
help="Show full details of tool executions",
envvar="LLM_TOOLS_DEBUG",
)
@click.option(
"tools_approve",