agazo commited on
Commit
a0baf60
·
verified ·
1 Parent(s): 108522c

Update langchain_agent.py

Browse files
Files changed (1) hide show
  1. langchain_agent.py +2 -2
langchain_agent.py CHANGED
@@ -23,7 +23,7 @@ class LangChainAgent:
23
  llm = ChatGoogleGenerativeAI(
24
  model=constants.MODEL,
25
  api_key=constants.API_KEY,
26
- temperature=0.2,
27
  timeout=20)
28
 
29
  tools = [
@@ -51,7 +51,7 @@ class LangChainAgent:
51
  agent=agent,
52
  tools=tools,
53
  verbose=True,
54
- max_iterations=15)
55
 
56
  def __call__(self, question: str) -> str:
57
  print(f"LangChain agent received: {question[:50]}...")
 
23
  llm = ChatGoogleGenerativeAI(
24
  model=constants.MODEL,
25
  api_key=constants.API_KEY,
26
+ temperature=0.4,
27
  timeout=20)
28
 
29
  tools = [
 
51
  agent=agent,
52
  tools=tools,
53
  verbose=True,
54
+ max_iterations=20)
55
 
56
  def __call__(self, question: str) -> str:
57
  print(f"LangChain agent received: {question[:50]}...")