Spaces:
Paused
Paused
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -10,6 +10,7 @@ from crewai.agents.agent_builder.base_agent import BaseAgent
|
|
| 10 |
from crewai.project import CrewBase, agent, crew, task
|
| 11 |
from crewai.tools import tool
|
| 12 |
from google import genai
|
|
|
|
| 13 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
| 14 |
from phoenix.otel import register
|
| 15 |
from tools import web_search_tool, image_analysis_tool, audio_analysis_tool, video_analysis_tool, youtube_analysis_tool, document_analysis_tool, arithmetic_tool, code_execution_tool, code_generation_tool, add, subtract, multiply, divide, modulus
|
|
@@ -23,6 +24,16 @@ AGENT_MODEL = "gpt-4.1-mini"
|
|
| 23 |
|
| 24 |
FINAL_ANSWER_MODEL = "gemini-2.5-pro-preview-03-25"
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# LLM evaluation
|
| 27 |
|
| 28 |
PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
|
|
|
|
| 10 |
from crewai.project import CrewBase, agent, crew, task
|
| 11 |
from crewai.tools import tool
|
| 12 |
from google import genai
|
| 13 |
+
from google.genai import types
|
| 14 |
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
| 15 |
from phoenix.otel import register
|
| 16 |
from tools import web_search_tool, image_analysis_tool, audio_analysis_tool, video_analysis_tool, youtube_analysis_tool, document_analysis_tool, arithmetic_tool, code_execution_tool, code_generation_tool, add, subtract, multiply, divide, modulus
|
|
|
|
| 24 |
|
| 25 |
FINAL_ANSWER_MODEL = "gemini-2.5-pro-preview-03-25"
|
| 26 |
|
| 27 |
+
WEB_SEARCH_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 28 |
+
IMAGE_ANALYSIS_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 29 |
+
AUDIO_ANALYSIS_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 30 |
+
VIDEO_ANALYSIS_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 31 |
+
YOUTUBE_ANALYSIS_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 32 |
+
DOCUMENT_ANALYSIS_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 33 |
+
ARITHMETIC_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 34 |
+
CODE_GENERATION_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 35 |
+
CODE_EXECUTION_MODEL = "gemini-2.5-flash-preview-04-17"
|
| 36 |
+
|
| 37 |
# LLM evaluation
|
| 38 |
|
| 39 |
PHOENIX_API_KEY = os.environ["PHOENIX_API_KEY"]
|