Skip to content

feat: improve debug prompt logging format for better readability#1218

Closed
VITOHJL wants to merge 1 commit intoHKUDS:mainfrom
VITOHJL:fix-assistant-history-save
Closed

feat: improve debug prompt logging format for better readability#1218
VITOHJL wants to merge 1 commit intoHKUDS:mainfrom
VITOHJL:fix-assistant-history-save

Conversation

@VITOHJL
Copy link
Copy Markdown
Contributor

@VITOHJL VITOHJL commented Feb 26, 2026

  • Add _debug_log_prompt method to LiteLLMProvider
  • Output human-readable text format instead of JSONL
  • Use .log extension to avoid JSON syntax highlighting issues
  • Only keep the most recent LLM call (overwrites on each call)
  • Format includes numbered messages with indentation and tool definitions
  • Makes debugging much easier by showing exactly what prompt was sent to LLM
    prompts.log
    About 1000 lines in max

- Add _debug_log_prompt method to LiteLLMProvider
- Output human-readable text format instead of JSONL
- Use .log extension to avoid JSON syntax highlighting issues
- Only keep the most recent LLM call (overwrites on each call)
- Format includes numbered messages with indentation and tool definitions
- Makes debugging much easier by showing exactly what prompt was sent to LLM
@VITOHJL VITOHJL closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant