Katya Beresneva commited on
Commit ·
854a96f
1
Parent(s): f61d1e4
fix
Browse files
agent.py
CHANGED
|
@@ -78,10 +78,9 @@ class MultiModalAgent:
|
|
| 78 |
llm = self._get_llm(model_name)
|
| 79 |
tools = self._get_tools()
|
| 80 |
self.agent = create_react_agent(
|
| 81 |
-
llm,
|
| 82 |
tools=tools,
|
| 83 |
-
|
| 84 |
-
system_prompt=MULTIMODAL_TASK_SOLVER_PROMPT,
|
| 85 |
checkpointer=MemorySaver()
|
| 86 |
)
|
| 87 |
|
|
|
|
| 78 |
llm = self._get_llm(model_name)
|
| 79 |
tools = self._get_tools()
|
| 80 |
self.agent = create_react_agent(
|
| 81 |
+
llm=llm,
|
| 82 |
tools=tools,
|
| 83 |
+
prompt=MULTIMODAL_TASK_SOLVER_PROMPT,
|
|
|
|
| 84 |
checkpointer=MemorySaver()
|
| 85 |
)
|
| 86 |
|
tools.py
CHANGED
|
@@ -270,9 +270,9 @@ async def analyze_image(state: Annotated[dict, InjectedState], image_path: str)
|
|
| 270 |
)
|
| 271 |
|
| 272 |
file_agent = create_react_agent(
|
| 273 |
-
llm,
|
| 274 |
tools=[],
|
| 275 |
-
|
| 276 |
)
|
| 277 |
|
| 278 |
message = HumanMessage(
|
|
@@ -318,9 +318,9 @@ async def analyze_excel(state: Annotated[dict, InjectedState], excel_path: str)
|
|
| 318 |
)
|
| 319 |
|
| 320 |
file_agent = create_react_agent(
|
| 321 |
-
llm,
|
| 322 |
tools=[],
|
| 323 |
-
|
| 324 |
)
|
| 325 |
|
| 326 |
message = HumanMessage(
|
|
@@ -363,9 +363,9 @@ async def analyze_audio(state: Annotated[dict, InjectedState], audio_path: str)
|
|
| 363 |
)
|
| 364 |
|
| 365 |
file_agent = create_react_agent(
|
| 366 |
-
llm,
|
| 367 |
tools=[],
|
| 368 |
-
|
| 369 |
)
|
| 370 |
|
| 371 |
message = HumanMessage(
|
|
@@ -396,9 +396,9 @@ async def analyze_video(state: Annotated[dict, InjectedState], video_url: str) -
|
|
| 396 |
)
|
| 397 |
|
| 398 |
file_agent = create_react_agent(
|
| 399 |
-
llm,
|
| 400 |
tools=[],
|
| 401 |
-
|
| 402 |
)
|
| 403 |
|
| 404 |
message = HumanMessage(
|
|
|
|
| 270 |
)
|
| 271 |
|
| 272 |
file_agent = create_react_agent(
|
| 273 |
+
llm=llm,
|
| 274 |
tools=[],
|
| 275 |
+
prompt=MULTIMODAL_FILE_ANALYZER_PROMPT
|
| 276 |
)
|
| 277 |
|
| 278 |
message = HumanMessage(
|
|
|
|
| 318 |
)
|
| 319 |
|
| 320 |
file_agent = create_react_agent(
|
| 321 |
+
llm=llm,
|
| 322 |
tools=[],
|
| 323 |
+
prompt=MULTIMODAL_FILE_ANALYZER_PROMPT
|
| 324 |
)
|
| 325 |
|
| 326 |
message = HumanMessage(
|
|
|
|
| 363 |
)
|
| 364 |
|
| 365 |
file_agent = create_react_agent(
|
| 366 |
+
llm=llm,
|
| 367 |
tools=[],
|
| 368 |
+
prompt=MULTIMODAL_FILE_ANALYZER_PROMPT
|
| 369 |
)
|
| 370 |
|
| 371 |
message = HumanMessage(
|
|
|
|
| 396 |
)
|
| 397 |
|
| 398 |
file_agent = create_react_agent(
|
| 399 |
+
llm=llm,
|
| 400 |
tools=[],
|
| 401 |
+
prompt=MULTIMODAL_FILE_ANALYZER_PROMPT
|
| 402 |
)
|
| 403 |
|
| 404 |
message = HumanMessage(
|