Skip to content

fix(logging): include system prompt in debug logs in case of response… #1154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

HafizFasih
Copy link
Contributor

Previously, the debug logs for LLM calls only showed user prompts while using responses api,
which made it harder to trace full context during issues. This
change prepends the system prompt to the logged input messages,
without mutating the original input list.

The system prompt is included conditionally (only if present),
and is used for logging only.

This improves debuggability and traceability of agent interactions.

@seratch seratch added documentation Improvements or additions to documentation enhancement New feature or request feature:core labels Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request feature:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants