Skip to content

Bump haystack-ai from 2.31.0 to 3.1.1 in /service in the uv-major group - #177

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/uv/service/develop/uv-major-2935815894
Open

dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/uv/service/develop/uv-major-2935815894

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the uv-major group in /service with 1 update: haystack-ai.

Updates haystack-ai from 2.31.0 to 3.1.1

Release notes

Sourced from haystack-ai's releases.

v3.1.1

Release Notes

v3.1.1

Bug Fixes

  • The OpenAI Chat Completions and Responses converters no longer raise on an assistant message with no content parts, which a Chat Generator returns when it discards a malformed tool call. It is sent with empty content, which the APIs accept, so the next LLM call goes through. ChatMessage.from_openai_dict_format accepts the same empty content, so such a message round-trips.
  • The Hugging Face message converter no longer raises on an assistant message with no content parts, and sends it with empty content instead.

v3.1.1-rc1

Release Notes

v3.1.1-rc1

Bug Fixes

  • The OpenAI Chat Completions and Responses converters no longer raise on an assistant message with no content parts, which a Chat Generator returns when it discards a malformed tool call. It is sent with empty content, which the APIs accept, so the next LLM call goes through. ChatMessage.from_openai_dict_format accepts the same empty content, so such a message round-trips.
  • The Hugging Face message converter no longer raises on an assistant message with no content parts, and sends it with empty content instead.

v3.1.0

⭐️ Highlights

🪝CompactionHook and Built-in Compactors for Context Length Management

Experimental context compaction for Agent. Runs before LLM calls and shortens the conversation once it crosses a configured fraction of the context window. The built-in SlidingWindowCompactor first removes entire historical turns, then, if needed, individual steps of the current task, replacing what it removes with a short omission note. A second experimental compaction strategy, ToolResultPruningCompactor, instead of dropping whole turns, replaces older/large tool results with placeholders while keeping the most recent tool-calling steps (and their parallel results) intact.

from haystack.hooks.compaction import CompactionHook, SlidingWindowCompactor, ToolResultPruningCompactor
from haystack.components.generators.chat import OpenAIResponsesChatGenerator
hook = CompactionHook(
compactor=SlidingWindowCompactor(), # or ToolResultPruningCompactor(min_keep_steps=2, min_tokens=200),
context_window=400_000,
compact_at=0.7,
compact_to=0.4,
)
agent = Agent(
chat_generator=OpenAIResponsesChatGenerator(model="gpt-5.4-nano"),
tools=[web_search],
hooks={"before_llm": [hook]},
)

🪙 New Token Counters for Estimating Token Usage

New haystack.token_counters module for estimating message/tool-schema size before sending a request (e.g. to decide when to compact). ApproximateTokenCounter needs no dependencies; TiktokenCounter is a local counter, closer estimates for OpenAI models; OpenAITokenCounter calls OpenAI's counting API for exact, model-specific counts.

from haystack.token_counters import OpenAITokenCounter, ApproximateTokenCounter, TiktokenCounter
from haystack.dataclasses import ChatMessage
</tr></table> 

... (truncated)

Commits
  • d60cce0 bump version to 3.1.1
  • 0f09023 bump version to 3.1.1-rc1
  • 676b3d5 feat: relax OpenAI and HF chat message conversions (#12545)
  • 16249e9 test: derive expected OpenAI usage dicts from the streamed model (#12524)
  • fa933e1 fix: fix failing test caused by PyPDF 6.16.2 update (#12463)
  • 859a6eb bump version to 3.1.0
  • 5de8d6c bump version to 3.1.0-rc3
  • 46396f4 test: enable mypy typing checks for test/components/routers/ (#12354)
  • e37cc94 bump version to 3.1.0-rc2
  • 5bf0b09 test: reconcile env-var security test with callable traversal hardening (#12430)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the uv-major group in /service with 1 update: [haystack-ai](https://github.com/deepset-ai/haystack).


Updates `haystack-ai` from 2.31.0 to 3.1.1
- [Release notes](https://github.com/deepset-ai/haystack/releases)
- [Commits](deepset-ai/haystack@v2.31.0...v3.1.1)

---
updated-dependencies:
- dependency-name: haystack-ai
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: uv-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants