Spaces:
Sleeping
Sleeping
Update langchain_agent.py
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 = [
|
@@ -51,7 +51,7 @@ class LangChainAgent:
|
|
51 |
agent=agent,
|
52 |
tools=tools,
|
53 |
verbose=True,
|
54 |
-
max_iterations=
|
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]}...")
|