Skip to content

Commit

Permalink
Don't log empty thoughts
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Oct 4, 2024
1 parent 661e5e3 commit 564dc47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove `manifest.yml` requirements for custom tool creation.

### Fixed
- Anthropic native Tool calling
- Anthropic native Tool calling.
- Empty `ActionsSubtask.thought` being logged.

## [0.32.0] - 2024-09-17

Expand Down
2 changes: 1 addition & 1 deletion griptape/tasks/actions_subtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def before_run(self) -> None:

parts = [
f"Subtask {self.id}",
*([f"\nThought: {self.thought}"] if self.thought is not None else []),
*([f"\nThought: {self.thought}"] if self.thought else []),
f"\nActions: {self.actions_to_json()}",
]
logger.info("".join(parts))
Expand Down

0 comments on commit 564dc47

Please sign in to comment.