Spaces:
Sleeping
Sleeping
Commit
·
37e3b94
1
Parent(s):
6354d82
Update crewai/agent.py
Browse files- crewai/agent.py +8 -1
crewai/agent.py
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
import uuid
|
| 2 |
from typing import Any, List, Optional
|
| 3 |
|
| 4 |
-
from langchain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
from langchain_community.chat_models import ChatOpenAI
|
|
|
|
|
|
|
| 6 |
from langchain.memory import ConversationSummaryMemory
|
| 7 |
|
| 8 |
|
|
|
|
| 1 |
import uuid
|
| 2 |
from typing import Any, List, Optional
|
| 3 |
|
| 4 |
+
from langchain.prompts.chat import (
|
| 5 |
+
ChatPromptTemplate,
|
| 6 |
+
HumanMessagePromptTemplate,
|
| 7 |
+
SystemMessagePromptTemplate,
|
| 8 |
+
)
|
| 9 |
+
from langchain.schema import HumanMessage, SystemMessage
|
| 10 |
from langchain_community.chat_models import ChatOpenAI
|
| 11 |
+
|
| 12 |
+
from langchain.agents.format_scratchpad import format_log_to_str
|
| 13 |
from langchain.memory import ConversationSummaryMemory
|
| 14 |
|
| 15 |
|