Skip to content

How to properly route tool in supervisor multi agent if some of the agent have tools? #2445

Closed Answered by cris-m
cris-m asked this question in Q&A
Discussion options

You must be logged in to vote

I changed everything and fixed the issue

import functools
import operator
from typing import Annotated, Literal, Sequence

from langchain_anthropic import ChatAnthropic
from langchain_community.tools.tavily_search import TavilySearchResults
from langchain_core.messages import BaseMessage
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain_experimental.tools import PythonREPLTool
from langgraph.graph import END, START, StateGraph
from langgraph.prebuilt import create_react_agent
from pydantic import BaseModel
from typing_extensions import TypedDict
from langchain_core.messages import AIMessage
from langgraph.prebuilt import ToolNode


# initial tools
t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vbarda
Comment options

@cris-m
Comment options

Answer selected by cris-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants