Skip to content

Wrong tool prompt format for RAG examples #195

@dmartinol

Description

@dmartinol

System Info

not relevant

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

Due to changes in llamastack/llama-stack#937, the expected tool prompt format has changed to python_list.

Error replicated with rag_as_attachments.py and rag_with_vector_db.py

Error logs

  File "../llama_stack/providers/utils/inference/prompt_adapter.py", line 424, in augment_messages_for_tools_llama_3_2
    raise ValueError(f"Non supported ToolPromptFormat {request.tool_config.tool_prompt_format}")
ValueError: Non supported ToolPromptFormat ToolPromptFormat.json

Expected behavior

Examples should work with no errors.

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