Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(agents): Redrive completions manually on failure #551

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

timonv
Copy link
Member

@timonv timonv commented Jan 15, 2025

Sometimes LLMs fail a completion without deterministic errors, or the user case where you just want to retry. redrive can now be called on a context, popping any new messages (if any), and making the messages available again to the agent.

@timonv timonv merged commit 835c35e into master Jan 16, 2025
6 checks passed
@timonv timonv deleted the feat/redrive-agent-completions branch January 16, 2025 14:38
timonv pushed a commit that referenced this pull request Jan 16, 2025
## 🤖 New release
* `swiftide`: 0.16.4 -> 0.17.0 (✓ API compatible changes)
* `swiftide-agents`: 0.16.4 -> 0.17.0 (✓ API compatible changes)
* `swiftide-core`: 0.16.4 -> 0.17.0 (⚠️ API breaking changes)
* `swiftide-macros`: 0.16.4 -> 0.17.0
* `swiftide-indexing`: 0.16.4 -> 0.17.0
* `swiftide-integrations`: 0.16.4 -> 0.17.0 (✓ API compatible changes)
* `swiftide-query`: 0.16.4 -> 0.17.0

### ⚠️ `swiftide-core` breaking changes

```
--- failure trait_method_added: pub trait method added ---

Description:
A non-sealed public trait added a new method without a default implementation, which breaks downstream implementations of the trait
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#trait-new-item-no-default
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.38.0/src/lints/trait_method_added.ron

Failed in:
  trait method swiftide_core::agent_traits::AgentContext::redrive in file /tmp/.tmps520nh/swiftide/swiftide-core/src/agent_traits.rs:153
  trait method swiftide_core::AgentContext::redrive in file /tmp/.tmps520nh/swiftide/swiftide-core/src/agent_traits.rs:153
```

<details><summary><i><b>Changelog</b></i></summary><p>

## `swiftide`
<blockquote>

##
[0.17.0](v0.16.4...v0.17.0)
- 2025-01-16

### New features

-
[835c35e](835c35e)
*(agents)* Redrive completions manually on failure (#551)

````text
Sometimes LLMs fail a completion without deterministic errors, or the
  user case where you just want to retry. `redrive` can now be called on a
  context, popping any new messages (if any), and making the messages
  available again to the agent.
````

-
[f83f3f0](f83f3f0)
*(agents)* Implement ToolExecutor for common dyn pointers (#549)

-
[7f85735](7f85735)
*(query)* Add custom lancedb query generation for lancedb search (#518)

-
[ce4e34b](ce4e34b)
*(tree-sitter)* Add golang support (#552)

````text
Seems someone conveniently forgot to add Golang support for the
  splitter.
````

### Miscellaneous

- [0000000](0000000) Update
Cargo.lock dependencies


**Full Changelog**:
0.16.4...0.17.0
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant