demongodYY
commited on
Commit
·
43438fd
1
Parent(s):
bfaf40d
prompt
Browse files- agent.py +1 -1
- chains/utils.py +2 -1
agent.py
CHANGED
|
@@ -141,7 +141,7 @@ agent = (
|
|
| 141 |
memory = ConversationSummaryBufferMemory(
|
| 142 |
memory_key="chat_history",
|
| 143 |
llm=llm,
|
| 144 |
-
max_token_limit=
|
| 145 |
return_messages=True,
|
| 146 |
)
|
| 147 |
|
|
|
|
| 141 |
memory = ConversationSummaryBufferMemory(
|
| 142 |
memory_key="chat_history",
|
| 143 |
llm=llm,
|
| 144 |
+
max_token_limit=600,
|
| 145 |
return_messages=True,
|
| 146 |
)
|
| 147 |
|
chains/utils.py
CHANGED
|
@@ -20,6 +20,7 @@ Facilitate suggestion: ####{tool_suggestion}####
|
|
| 20 |
|
| 21 |
Problem context: {current_situation}
|
| 22 |
|
| 23 |
-
Combinine the problem and and facilitate tool context, give me some advise or case example in this step.
|
|
|
|
| 24 |
""",
|
| 25 |
)
|
|
|
|
| 20 |
|
| 21 |
Problem context: {current_situation}
|
| 22 |
|
| 23 |
+
Combinine the problem and and facilitate tool context, give me some advise or case example in this step.
|
| 24 |
+
Using concise tone, don't more than 250 words.\
|
| 25 |
""",
|
| 26 |
)
|