Update agents/crew.py
Browse files- agents/crew.py +3 -7
agents/crew.py
CHANGED
|
@@ -18,6 +18,7 @@ from agents.tools.deterministic_tools import DeterministicTools
|
|
| 18 |
from agents.tools.mcp_tools import MCPTools
|
| 19 |
from crewai import Agent, Crew, Task, Process
|
| 20 |
from crewai.agents.agent_builder.base_agent import BaseAgent
|
|
|
|
| 21 |
from crewai.project import CrewBase, agent, crew, task
|
| 22 |
from google import genai
|
| 23 |
from google.genai import types
|
|
@@ -25,20 +26,15 @@ from phoenix.otel import register
|
|
| 25 |
from typing import List
|
| 26 |
from utils.utils import read_file_json, is_ext
|
| 27 |
|
| 28 |
-
###
|
| 29 |
try:
|
| 30 |
-
from crewai.events.listeners.tracing.first_time_trace_handler import FirstTimeTraceHandler
|
| 31 |
-
|
| 32 |
-
# Override the methods that display messages
|
| 33 |
def _noop(self, *args, **kwargs):
|
| 34 |
pass
|
| 35 |
|
| 36 |
-
FirstTimeTraceHandler._show_tracing_declined_message = _noop
|
| 37 |
-
FirstTimeTraceHandler._show_local_trace_message = _noop
|
| 38 |
FirstTimeTraceHandler._display_ephemeral_trace_link = _noop
|
|
|
|
|
|
|
| 39 |
except ImportError:
|
| 40 |
pass
|
| 41 |
-
###
|
| 42 |
|
| 43 |
# Configuration
|
| 44 |
|
|
|
|
| 18 |
from agents.tools.mcp_tools import MCPTools
|
| 19 |
from crewai import Agent, Crew, Task, Process
|
| 20 |
from crewai.agents.agent_builder.base_agent import BaseAgent
|
| 21 |
+
from crewai.events.listeners.tracing.first_time_trace_handler import FirstTimeTraceHandler
|
| 22 |
from crewai.project import CrewBase, agent, crew, task
|
| 23 |
from google import genai
|
| 24 |
from google.genai import types
|
|
|
|
| 26 |
from typing import List
|
| 27 |
from utils.utils import read_file_json, is_ext
|
| 28 |
|
|
|
|
| 29 |
try:
|
|
|
|
|
|
|
|
|
|
| 30 |
def _noop(self, *args, **kwargs):
|
| 31 |
pass
|
| 32 |
|
|
|
|
|
|
|
| 33 |
FirstTimeTraceHandler._display_ephemeral_trace_link = _noop
|
| 34 |
+
FirstTimeTraceHandler._show_local_trace_message = _noop
|
| 35 |
+
FirstTimeTraceHandler._show_tracing_declined_message = _noop
|
| 36 |
except ImportError:
|
| 37 |
pass
|
|
|
|
| 38 |
|
| 39 |
# Configuration
|
| 40 |
|