-
Notifications
You must be signed in to change notification settings - Fork 162
Open
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
Labels
No labels