Skip to content

FORCE TOOL CALLING #99

@sponge-bobs-square-pants

Description

create_react_agent(
            model=self.model.bind_tools(all_tools, tool_choice="document_retriever"),
            tools=all_tools,
            prompt=self._make_rag_prompt(),
            name="rag_agent",
        )

While creating a react agent in swarm the bind tool returns an error.
Arg Returns in docstring not found in function signature.

But the function has the docstring

 """
    Tool to retrieve relevant documents using hybrid search (vector + BM25) from web-scraped content.
    
    Args:
        query (str): The search query
        domain_name (str): Name of the domain/website for the vector store
        user_folder (str): Username to use in the path (optional)
        website_name (str): Name of the website folder (optional, defaults to "brandsmithworldwide")
        
    Returns:
        str: Retrieved content as formatted text
    """

How to force tool call in langgraph swarm?

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