Skip to content

Commit

Permalink
Use subtask output if no action output
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Aug 16, 2024
1 parent 50aa172 commit 55dab28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- `Workflow` threads not being properly cleaned up after completion.
- Crash when `ToolAction`s were missing output due to an `ActionsSubtask` exception.

## [0.29.1] - 2024-08-02

Expand Down
2 changes: 1 addition & 1 deletion griptape/tasks/toolkit_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def prompt_stack(self) -> PromptStack:
for action in s.actions
]
action_results = [
ToolAction(name=action.name, path=action.path, tag=action.tag, output=action.output)
ToolAction(name=action.name, path=action.path, tag=action.tag, output=action.output or s.output)
for action in s.actions
]

Expand Down

0 comments on commit 55dab28

Please sign in to comment.