mralamdari commited on
Commit
59d8e00
·
verified ·
1 Parent(s): 084ba3a

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +0 -34
agent.py CHANGED
@@ -1,23 +1,3 @@
1
- import os
2
- import json
3
- import torch
4
- import base64
5
- import requests
6
- import mimetypes
7
- import pygraphviz
8
- from PIL import Image
9
- from tavily import TavilyClient
10
- from langchain_core.tools import tool
11
- from langchain.chat_models import ChatOpenAI
12
- from langchain_core.pydantic_v1 import BaseModel
13
- from langgraph.graph import StateGraph, START, END
14
- from langchain_experimental.utilities import PythonREPL
15
- from langchain_core.messages import SystemMessage, HumanMessage
16
- from typing import TypedDict, List, Dict, Any, Optional, Annotated
17
- from transformers import Blip2Processor, Blip2ForConditionalGeneration
18
-
19
-
20
-
21
  # ===== PLAN NODE PROMPT =====
22
  PLAN_PROMPT = """
23
  You are the GAIA Strategic Planner.
@@ -164,20 +144,6 @@ You are a general AI assistant. I will ask you a question. Report your thoughts,
164
  """
165
 
166
 
167
-
168
-
169
- DeepSeek_API_KEY= os.environ["DeepSeek_API_KEY"]
170
- GPT_4o_API_KEY = os.environ["GPT_4o_API_KEY"]
171
- TAVILY_API_KEY = os.environ["TAVILY_API_KEY"]
172
- Pixtral12B_API = os.environ["Pixtral12B_API"]
173
- API_URL = "https://openrouter.ai/api/v1/chat/completions"
174
-
175
- model = ChatOpenAI(base_url="https://openrouter.ai/api/v1", temperature=0)
176
- tavily = TavilyClient(api_key=TAVILY_API_KEY)
177
-
178
-
179
-
180
- # === 4. BUILD & COMPILE GRAPH ===
181
  import os
182
  import json
183
  import torch
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # ===== PLAN NODE PROMPT =====
2
  PLAN_PROMPT = """
3
  You are the GAIA Strategic Planner.
 
144
  """
145
 
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  import os
148
  import json
149
  import torch