Update agents/crew.py
Browse files- agents/crew.py +0 -27
agents/crew.py
CHANGED
|
@@ -15,7 +15,6 @@ from agents.tools.deterministic_tools import DeterministicTools
|
|
| 15 |
from agents.tools.mcp_tools import MCPTools
|
| 16 |
from crewai import Agent, Crew, Task, Process
|
| 17 |
from crewai.agents.agent_builder.base_agent import BaseAgent
|
| 18 |
-
from crewai.events.listeners.tracing.utils import mark_first_execution_done
|
| 19 |
from crewai.project import CrewBase, agent, crew, task
|
| 20 |
from google import genai
|
| 21 |
from google.genai import types
|
|
@@ -57,32 +56,6 @@ tracer_provider = register(
|
|
| 57 |
|
| 58 |
logging.getLogger("openinference").setLevel(logging.CRITICAL)
|
| 59 |
|
| 60 |
-
def _disable_crewai_tracing_prompt() -> None:
|
| 61 |
-
"""Force CrewAI to remember that tracing is disabled."""
|
| 62 |
-
try:
|
| 63 |
-
tracing_utils.mark_first_execution_done(user_consented=False)
|
| 64 |
-
data = tracing_utils._load_user_data()
|
| 65 |
-
if not data:
|
| 66 |
-
return
|
| 67 |
-
|
| 68 |
-
updated = False
|
| 69 |
-
if not data.get("first_execution_done"):
|
| 70 |
-
data["first_execution_done"] = True
|
| 71 |
-
updated = True
|
| 72 |
-
if data.get("trace_consent") is not False:
|
| 73 |
-
data["trace_consent"] = False
|
| 74 |
-
updated = True
|
| 75 |
-
|
| 76 |
-
if updated:
|
| 77 |
-
tracing_utils._save_user_data(data)
|
| 78 |
-
except Exception as exc:
|
| 79 |
-
logging.getLogger(__name__).debug(
|
| 80 |
-
"Unable to persist tracing preference: %s", exc
|
| 81 |
-
)
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
_disable_crewai_tracing_prompt()
|
| 85 |
-
|
| 86 |
@CrewBase
|
| 87 |
class GAIACrew():
|
| 88 |
agents: List[BaseAgent]
|
|
|
|
| 15 |
from agents.tools.mcp_tools import MCPTools
|
| 16 |
from crewai import Agent, Crew, Task, Process
|
| 17 |
from crewai.agents.agent_builder.base_agent import BaseAgent
|
|
|
|
| 18 |
from crewai.project import CrewBase, agent, crew, task
|
| 19 |
from google import genai
|
| 20 |
from google.genai import types
|
|
|
|
| 56 |
|
| 57 |
logging.getLogger("openinference").setLevel(logging.CRITICAL)
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
@CrewBase
|
| 60 |
class GAIACrew():
|
| 61 |
agents: List[BaseAgent]
|