Currently I am unable to use python logging or print statements to debug a custom tool method. The only way I can capture debug output is to log to file and then read from file after tool has executed, a very cumbersome method.
Note: using self-hosted docker:
docker run --rm \
-v $HOME/src/app:/app/app:z \
-v $HOME/.letta/.persist/pgdata:/var/lib/postgresql/data:z \
-e TOOL_EXEC_DIR="/app/app" \
-e TOOL_EXEC_VENV_NAME="env" \
-e XAI_API_KEY="" \
-e VLLM_API_BASE="http://localhost:8000" \
-p 8283:8283 \
letta-gis:latest