Skip to content

ModuleNotFoundError: wrong import of Headers in ReAct agent module #261

@ceberam

Description

@ceberam

In module llama_stack_client/lib/agents/react/agent.py, the Headers class is imported with the instruction:

from ..._types import Headers

However, the _types.py module is located one lever upper in the repository tree and therefore the instruction above leads to the following error when loading llama_stack_client/lib/agents/react/agent.py:

ModuleNotFoundError: No module named 'llama_stack_client.lib._types'

The correct import should be:

from ...._types import Headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions