Skip to content

llama-stack-client doesn't have Attachment object in types #178

@Shreyanand

Description

@Shreyanand

System Info

Mac, ollama provider

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

on running the command PYTHONPATH=. python examples/agent_store/app.py localhost 8321 I see the following error:

Error logs

(stack) xx@aa-mac llama-stack-apps % PYTHONPATH=. python examples/agent_store/app.py localhost 8321
Traceback (most recent call last):
  File "/Users/xx/llama-stack-apps/examples/agent_store/app.py", line 13, in <module>
    from examples.agent_store.api import AgentChoice, AgentStore
  File "/Users/xx/llama-stack-apps/examples/agent_store/api.py", line 17, in <module>
    from llama_stack_client.types import Attachment, Document, QueryConfig, UserMessage
ImportError: cannot import name 'Attachment' from 'llama_stack_client.types' (/Users/xx/miniforge3/envs/stack/lib/python3.10/site-packages/llama_stack_client/types/__init__.py)

Expected behavior

The command should spin up playground.

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