bstraehle commited on
Commit
7bc23ab
·
verified ·
1 Parent(s): e7f47d7

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +6 -0
crew.py CHANGED
@@ -3,10 +3,16 @@ from crewai_tools import (
3
  SerperDevTool,
4
  WebsiteSearchTool
5
  )
 
6
 
7
  PHOENIX_CLIENT_HEADERS = f"api_key={os.environ["PHOENIX_API_KEY"]}"
8
  PHOENIX_COLLECTOR_ENDPOINT = "https://app.phoenix.arize.com"
9
 
 
 
 
 
 
10
  def get_crew():
11
  search_tool = SerperDevTool()
12
  web_rag_tool = WebsiteSearchTool()
 
3
  SerperDevTool,
4
  WebsiteSearchTool
5
  )
6
+ from phoenix.otel import register
7
 
8
  PHOENIX_CLIENT_HEADERS = f"api_key={os.environ["PHOENIX_API_KEY"]}"
9
  PHOENIX_COLLECTOR_ENDPOINT = "https://app.phoenix.arize.com"
10
 
11
+ tracer_provider = register(
12
+ project_name="gaia",
13
+ endpoint="https://app.phoenix.arize.com/v1/traces"
14
+ )
15
+
16
  def get_crew():
17
  search_tool = SerperDevTool()
18
  web_rag_tool = WebsiteSearchTool()