Skip to content

Commit

Permalink
Python: Debug logging for StepwisePlanner's next step thought (#4333)
Browse files Browse the repository at this point in the history
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

The next_step.thought of StepwisePlanner is not being output in the
debug logs.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
  • Loading branch information
KanchiShimono and moonbox3 authored Jan 8, 2024
1 parent cef8bbe commit b17e064
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def execute_plan_async(self, context: SKContext) -> SKContext:

return context

logger.debug("Thoughts: {next_step.thought}")
logger.debug(f"Thoughts: {next_step.thought}")

if not is_null_or_empty(next_step.action):
logger.info(f"Action: {next_step.action}. Iteration: {i+1}.")
Expand Down

0 comments on commit b17e064

Please sign in to comment.