File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
import os
3
3
from pprint import pprint
4
4
5
- from dotenv import load_dotenv
6
-
7
- # Load environment variables from .env file
8
- load_dotenv ()
9
-
10
5
# pip install cicada-agent
11
6
from cicada .core .model import MultiModalModel
12
7
from cicada .core .utils import cprint
8
+ from dotenv import load_dotenv
13
9
14
10
from toolregistry import ToolRegistry
15
11
from toolregistry .hub import UnitConverter
16
12
13
+ # Load environment variables from .env file
14
+ load_dotenv ()
15
+
17
16
model_name = os .getenv ("MODEL" , "deepseek-v3" )
18
17
stream = os .getenv ("STREAM" , "True" ).lower () == "true" # Configurable stream option
19
18
29
28
30
29
tool_registry = ToolRegistry ()
31
30
31
+
32
32
# register tools
33
33
@tool_registry .register
34
34
def get_weather (location : str ):
35
35
return f"Weather in { location } : Sunny, 25°C"
36
36
37
+
37
38
# @tool_registry.register
38
39
# def c_to_f(celsius: float) -> float:
39
40
# fahrenheit = (celsius * 1.8) + 32
You can’t perform that action at this time.
0 commit comments