Skip to content

Conversation

@ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Nov 4, 2025

  • Removes the deprecated agents (sessions and turns) API that was marked alpha in 0.3.0
  • Cleans up unused imports and orphaned types after the API removal
  • Removes SessionNotFoundError and AgentTurnInputType which are no longer needed

The agents API is completely superseded by the Responses + Conversations APIs, and the client SDK Agent class already uses those implementations.

Corresponding client-side PR: llamastack/llama-stack-client-python#295

Removing the API, which was marked alpha in 0.3.0 and now is being removed. It is completely superseded by the Responses + Conversations APIs and our client-SDK Agent class is already updated to use those implementations. This PR performs a cleanup of dependent types and tests as well.
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 4, 2025
Copy link
Member

@raghotham raghotham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅

Copy link
Collaborator

@leseb leseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The time has come!

@ashwinb ashwinb merged commit a8a8aa5 into llamastack:main Nov 4, 2025
32 checks passed
@ashwinb ashwinb deleted the delete_agents branch November 4, 2025 17:38
ashwinb added a commit to ashwinb/llama-stack that referenced this pull request Nov 7, 2025
llamastack#4055 cleaned the agents
implementation but while doing so it removed some tests which actually
corresponded to the responses implementation. This PR brings those tests
and assocated recordings back.

(We should likely combine all responses tests into one suite, but that
is beyond the scope of this PR.)
leseb pushed a commit that referenced this pull request Nov 7, 2025
#4055 cleaned the agents
implementation but while doing so it removed some tests which actually
corresponded to the responses implementation. This PR brings those tests
and assocated recordings back.

(We should likely combine all responses tests into one suite, but that
is beyond the scope of this PR.)
ashwinb pushed a commit that referenced this pull request Nov 14, 2025
# What does this PR do?
Restores the responses unit tests that were inadvertently deleted in PR
[#4055 ](#4055)


## Test Plan
I ran the unit tests that I restored. They all passed with one
exception:


tests/unit/providers/agents/meta_reference/test_openai_responses.py::test_reuse_mcp_tool_list

AttributeError: module 'llama_stack.providers.utils.tools' has no
attribute 'mcp'

It's coming from this line:

    @patch("llama_stack.providers.utils.tools.mcp.list_mcp_tools")

The mcp.py module (and \_\_init\_\_.py) exists under tools. There are
some 'from mcp ....' imports (mcp package in this case) within it that
python may be interpreting as circular imports (or maybe I'm overlooking
something).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants