-
Notifications
You must be signed in to change notification settings - Fork 548
feat: emit BotThinking events with reasoning traces #1432
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
base: feat/reasoning-trace-extraction-langchain
Are you sure you want to change the base?
feat: emit BotThinking events with reasoning traces #1432
Conversation
Extracts reasoning traces from LLM responses and emits BotThinking events before BotMessage events. Adds bot_thinking_content to context for use in output rails.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
context={ | ||
"user_input": user_input, | ||
"bot_response": bot_response, | ||
"bot_thinking": bot_thinking, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any issues if we don't use a reasoning model and bot_thinking
is empty?
@@ -0,0 +1,42 @@ | |||
prompts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a better config name be self_check_thinking
instead?
@@ -0,0 +1,42 @@ | |||
prompts: | |||
- task: self_check_input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to make any changes to the prompt for self-checking mode for reasoning vs non-reasoning LLMs, now we're using Langchain's parser to split off reasoning tokens?
Stack Info
This PR is part of a stack:
#1427 → #1431
Description
Extracts reasoning traces from LLM responses and emits BotThinking
events before BotMessage events. Adds bot_thinking_content to context
for use in output rails.