Spaces:
Sleeping
Sleeping
Commit
·
ff0624e
1
Parent(s):
98b8ff7
correction appoinments
Browse files- app.py +1 -1
- src/langgraphagent/caller_agent.py +4 -2
app.py
CHANGED
|
@@ -36,7 +36,7 @@ if __name__ == "__main__":
|
|
| 36 |
# Configure LLM
|
| 37 |
obj_llm_config = GroqLLM(user_controls_input=user_input)
|
| 38 |
model = obj_llm_config.get_llm_model()
|
| 39 |
-
CONVERSATION
|
| 40 |
|
| 41 |
col1, col2 = st.columns(2)
|
| 42 |
with col1:
|
|
|
|
| 36 |
# Configure LLM
|
| 37 |
obj_llm_config = GroqLLM(user_controls_input=user_input)
|
| 38 |
model = obj_llm_config.get_llm_model()
|
| 39 |
+
CONVERSATION,APPOINTMENTS= (submit_message(model))
|
| 40 |
|
| 41 |
col1, col2 = st.columns(2)
|
| 42 |
with col1:
|
src/langgraphagent/caller_agent.py
CHANGED
|
@@ -6,6 +6,7 @@ from langchain_openai import ChatOpenAI
|
|
| 6 |
from langgraph.prebuilt import ToolNode
|
| 7 |
from langchain_core.messages import HumanMessage
|
| 8 |
from src.LLMS.groqllm import GroqLLM
|
|
|
|
| 9 |
|
| 10 |
CONVERSATION = []
|
| 11 |
|
|
@@ -72,6 +73,7 @@ class Caller_Agent:
|
|
| 72 |
|
| 73 |
self.caller_app = caller_workflow.compile()
|
| 74 |
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
|
|
@@ -82,10 +84,10 @@ class Caller_Agent:
|
|
| 82 |
"messages": CONVERSATION,
|
| 83 |
}
|
| 84 |
print(state)
|
| 85 |
-
self.call_tool()
|
| 86 |
new_state = self.caller_app.invoke(state)
|
| 87 |
CONVERSATION.extend(new_state["messages"][len(CONVERSATION):])
|
| 88 |
-
return CONVERSATION
|
| 89 |
|
| 90 |
|
| 91 |
|
|
|
|
| 6 |
from langgraph.prebuilt import ToolNode
|
| 7 |
from langchain_core.messages import HumanMessage
|
| 8 |
from src.LLMS.groqllm import GroqLLM
|
| 9 |
+
from src.tools.langgraphtool import APPOINTMENTS
|
| 10 |
|
| 11 |
CONVERSATION = []
|
| 12 |
|
|
|
|
| 73 |
|
| 74 |
self.caller_app = caller_workflow.compile()
|
| 75 |
|
| 76 |
+
|
| 77 |
|
| 78 |
|
| 79 |
|
|
|
|
| 84 |
"messages": CONVERSATION,
|
| 85 |
}
|
| 86 |
print(state)
|
| 87 |
+
APPOINTMENT = self.call_tool()
|
| 88 |
new_state = self.caller_app.invoke(state)
|
| 89 |
CONVERSATION.extend(new_state["messages"][len(CONVERSATION):])
|
| 90 |
+
return CONVERSATION, APPOINTMENTS
|
| 91 |
|
| 92 |
|
| 93 |
|