Spaces:
Sleeping
Sleeping
Commit
·
6e54db4
1
Parent(s):
3a01790
Update crewai/agent.py
Browse files- crewai/agent.py +3 -3
crewai/agent.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 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 |
-
|
|
|
|
| 11 |
# from langchain_community.chat_models import ChatOpenAI
|
| 12 |
|
| 13 |
-
from langchain_openai import ChatOpenAI
|
| 14 |
|
| 15 |
from langchain.agents.format_scratchpad import format_log_to_str
|
| 16 |
from langchain.memory import ConversationSummaryMemory
|
|
|
|
| 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_openai import ChatOpenAI
|
| 11 |
+
|
| 12 |
# from langchain_community.chat_models import ChatOpenAI
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
from langchain.agents.format_scratchpad import format_log_to_str
|
| 16 |
from langchain.memory import ConversationSummaryMemory
|