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 284885f commit 5458397
Show file tree
Hide file tree
Showing 2 changed files with 7 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
7 changes: 6 additions & 1 deletion griptape/tasks/toolkit_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ 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 if action.output is not None else s.output,
)
for action in s.actions
]

Expand Down

0 comments on commit 5458397

Please sign in to comment.