Spaces:
Running
Running
daavoo
commited on
Commit
ยท
cf3dfa0
1
Parent(s):
9ba790f
update to latest any-agent
Browse files- .gitignore +1 -0
- src/surf_spot_finder/cli.py +2 -5
.gitignore
CHANGED
@@ -168,3 +168,4 @@ cython_debug/
|
|
168 |
.vscode/
|
169 |
|
170 |
output
|
|
|
|
168 |
.vscode/
|
169 |
|
170 |
output
|
171 |
+
traces
|
src/surf_spot_finder/cli.py
CHANGED
@@ -8,7 +8,7 @@ from loguru import logger
|
|
8 |
from surf_spot_finder.config import (
|
9 |
Config,
|
10 |
)
|
11 |
-
from any_agent.tracing import
|
12 |
|
13 |
from surf_spot_finder.instructions.openai import SINGLE_AGENT_SYSTEM_PROMPT
|
14 |
from surf_spot_finder.instructions.smolagents import SYSTEM_PROMPT
|
@@ -35,10 +35,7 @@ def find_surf_spot(
|
|
35 |
config.main_agent.instructions = SINGLE_AGENT_SYSTEM_PROMPT
|
36 |
|
37 |
logger.info("Setting up tracing")
|
38 |
-
|
39 |
-
project_name="surf-spot-finder", agent_framework=config.framework
|
40 |
-
)
|
41 |
-
setup_tracing(tracer_provider, config.framework)
|
42 |
|
43 |
logger.info(f"Loading {config.framework} agent")
|
44 |
logger.info(f"{config.managed_agents}")
|
|
|
8 |
from surf_spot_finder.config import (
|
9 |
Config,
|
10 |
)
|
11 |
+
from any_agent.tracing import setup_tracing
|
12 |
|
13 |
from surf_spot_finder.instructions.openai import SINGLE_AGENT_SYSTEM_PROMPT
|
14 |
from surf_spot_finder.instructions.smolagents import SYSTEM_PROMPT
|
|
|
35 |
config.main_agent.instructions = SINGLE_AGENT_SYSTEM_PROMPT
|
36 |
|
37 |
logger.info("Setting up tracing")
|
38 |
+
tracing_path = setup_tracing(config.framework)
|
|
|
|
|
|
|
39 |
|
40 |
logger.info(f"Loading {config.framework} agent")
|
41 |
logger.info(f"{config.managed_agents}")
|