Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
63c4c40
1
Parent(s):
9529a47
fix
Browse files- 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.
|
27 |
timeout=20)
|
28 |
|
29 |
tools = [
|
@@ -50,7 +50,7 @@ class LangChainAgent:
|
|
50 |
agent=agent,
|
51 |
tools=tools,
|
52 |
verbose=True,
|
53 |
-
max_iterations=
|
54 |
|
55 |
def __call__(self, question: str) -> str:
|
56 |
print(f"LangChain agent received: {question[:50]}...")
|
|
|
23 |
llm = ChatGoogleGenerativeAI(
|
24 |
model=constants.MODEL,
|
25 |
api_key=constants.API_KEY,
|
26 |
+
temperature=0.2,
|
27 |
timeout=20)
|
28 |
|
29 |
tools = [
|
|
|
50 |
agent=agent,
|
51 |
tools=tools,
|
52 |
verbose=True,
|
53 |
+
max_iterations=15)
|
54 |
|
55 |
def __call__(self, question: str) -> str:
|
56 |
print(f"LangChain agent received: {question[:50]}...")
|