Skip to content

custom tool logging: capture to server logs or pipe to stdout/stderr #3056

@boxerab

Description

@boxerab

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions