We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d68c84 commit 19c750eCopy full SHA for 19c750e
template_langgraph/agents/chat_with_tools_agent/agent.py
@@ -36,9 +36,9 @@ def __call__(self, inputs: dict):
36
37
38
class ChatWithToolsAgent:
39
- def __init__(self):
+ def __init__(self, tools=DEFAULT_TOOLS):
40
self.llm = AzureOpenAiWrapper().chat_model
41
- self.tools = DEFAULT_TOOLS
+ self.tools = tools
42
43
def create_graph(self):
44
"""Create the main graph for the agent."""
template_langgraph/agents/kabuto_helpdesk_agent/agent.py
@@ -8,9 +8,7 @@
8
9
10
class KabutoHelpdeskAgent:
11
- def __init__(self, tools=None):
12
- if tools is None:
13
- tools = DEFAULT_TOOLS
14
self.agent = create_react_agent(
15
model=AzureOpenAiWrapper().chat_model,
16
tools=tools,
0 commit comments