You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesblock#1056
Add checks to ensure tool results are always preceded by tool calls.
* **`crates/goose/src/agents/reference.rs`**
- Add a check in the `reply` function to ensure tool results are always preceded by tool calls.
* **`crates/goose/src/agents/truncate.rs`**
- Add a check in the `reply` function to ensure tool results are always preceded by tool calls.
* **`crates/goose/src/message.rs`**
- Add a method to the `Message` struct to enforce the order of tool calls and results.
* **`crates/goose-cli/src/prompt/renderer.rs`**
- Add a check in the `render` function to ensure the order of tool requests and responses.
- Print an error message if the tool result is not preceded by a tool call.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1056?shareId=XXXX-XXXX-XXXX-XXXX).
Describe the bug
tool result must be preceeded by a tool call
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Please provide following information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: