Joshua Sundance Bailey
commited on
Commit
·
04cf693
1
Parent(s):
0d06da9
openai functions agent -> chat conv react desc
Browse files
.idea/misc.xml
CHANGED
@@ -4,4 +4,7 @@
|
|
4 |
<option name="sdkName" value="Remote Python 3.11.4 Docker (<none>:<none>) (5)" />
|
5 |
</component>
|
6 |
<component name="ProjectRootManager" version="2" project-jdk-name="Remote Python 3.11.4 Docker (<none>:<none>) (5)" project-jdk-type="Python SDK" />
|
|
|
|
|
|
|
7 |
</project>
|
|
|
4 |
<option name="sdkName" value="Remote Python 3.11.4 Docker (<none>:<none>) (5)" />
|
5 |
</component>
|
6 |
<component name="ProjectRootManager" version="2" project-jdk-name="Remote Python 3.11.4 Docker (<none>:<none>) (5)" project-jdk-type="Python SDK" />
|
7 |
+
<component name="PythonCompatibilityInspectionAdvertiser">
|
8 |
+
<option name="version" value="3" />
|
9 |
+
</component>
|
10 |
</project>
|
langchain-streamlit-demo/python_coder.py
CHANGED
@@ -173,7 +173,10 @@ submit_code_tool = Tool.from_function(
|
|
173 |
tools = [check_code_tool, submit_code_tool]
|
174 |
|
175 |
|
176 |
-
def get_agent(
|
|
|
|
|
|
|
177 |
return initialize_agent(
|
178 |
tools,
|
179 |
llm,
|
|
|
173 |
tools = [check_code_tool, submit_code_tool]
|
174 |
|
175 |
|
176 |
+
def get_agent(
|
177 |
+
llm: BaseLLM,
|
178 |
+
agent_type: AgentType = AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION,
|
179 |
+
):
|
180 |
return initialize_agent(
|
181 |
tools,
|
182 |
llm,
|