Skip to content

Update haystack-ai requirement from >=2.9.0 to >=2.28.0#6

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/haystack-ai-gte-2.28.0
Open

Update haystack-ai requirement from >=2.9.0 to >=2.28.0#6
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/haystack-ai-gte-2.28.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Apr 22, 2026

Updates the requirements on haystack-ai to permit the latest version.

Release notes

Sourced from haystack-ai's releases.

v2.28.0

Release Notes

v2.28.0

Upgrade Notes

  • As part of the migration from requests to httpx, request_with_retry and async_request_with_retry (in haystack.utils.requests_utils) no longer raise requests.exceptions.RequestException on failure; they now raise httpx.HTTPError instead. This also affects HuggingFaceTEIRanker, which relies on these utilities. Users catching requests.exceptions.RequestException should update their code to catch httpx.HTTPError.

  • The LLM component now requires user_prompt to be provided at initialization and it must contain at least one Jinja2 template variable (e.g. {{ variable_name }}). This ensures the component always exposes at least one required input socket, which is necessary for correct pipeline scheduling.

    required_variables now defaults to "*" (all variables in user_prompt are required), and passing an empty list raises a ValueError.

    If you are affected: update any code that instantiates LLM without a user_prompt, or with a user_prompt that has no template variables, to include at least one variable.

    Before:

    llm = LLM(chat_generator=OpenAIChatGenerator(), system_prompt="You are helpful.")

    After:

    llm = LLM(
        chat_generator=OpenAIChatGenerator(),
        system_prompt="You are helpful.",
        user_prompt='{% message role="user" %}{{ query }}{% endmessage %}',
    )
  • Agent.run() and Agent.run_async() now require messages as an explicit argument (no longer optional). If you were relying on the default None value in Haystack version 2.26 or 2.27, pass an empty list instead:

    agent.run(messages=[], ...)

    LLM.run() and LLM.run_async() are unaffected — they still accept None and default to an empty list internally.

New Features

  • Tools and components can now declare a State (or State | None) parameter in their signature to receive the live agent State object at invocation time — no extra wiring needed.

    For function-based tools created with @tool or create_tool_from_function, add a state parameter annotated as State:

    from haystack.components.agents import State
    from haystack.tools import tool
    @​tool

... (truncated)

Commits

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [haystack-ai](https://github.com/deepset-ai/haystack) to permit the latest version.
- [Release notes](https://github.com/deepset-ai/haystack/releases)
- [Commits](deepset-ai/haystack@v2.9.0...v2.28.0)

---
updated-dependencies:
- dependency-name: haystack-ai
  dependency-version: 2.28.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 22, 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 Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants