You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Useful for when you need to answer questions about current events or the current state of the world. the input to this should be a single search term."
24
-
),
25
-
Tool(
26
-
name="Terminal",
27
-
func=bash.run,
28
-
description="Useful for typing bash commands for the terminal."
29
-
),
30
-
Tool(
31
-
name="Home Assistant Control",
32
+
name="Home Assistant Control",
32
33
func=ha_tool.arun,
33
34
coroutine=ha_tool.arun,
34
-
description="The user has a Home Assistant setup. This starts the process for changing things like lights, cameras etc. Use this tool whenever the user needs that sort of thing. Has modes and alerts. The input should be a standalone query containing all context necessary. The command should follow this format: `ENTITY(entity_keyword) Full user command with context`, example: `ENTITY(light) Turn off all lights`"
35
+
description="The user has a Home Assistant setup. This starts the process for changing things like lights, cameras etc. Use this tool whenever the user needs that sort of thing. Has modes and alerts. The input should be a standalone query containing all context necessary. The command should follow this format: `ENTITY(entity_keyword) Full user command with context`, example: `ENTITY(light) Turn off all lights`",
35
36
),
36
37
Tool(
37
-
name="Play Music",
38
+
name="Play Music",
38
39
func=music_tool,
39
40
coroutine=music_tool,
40
-
description="Useful for playing music. The input to this command should be a string containing a JSON object with at least one of the following keys: 'artist', 'album', 'song', 'playlist'."
41
+
description="Useful for playing music. The input to this command should be a string containing a JSON object with at least one of the following keys: 'artist', 'album', 'song', 'playlist'.",
42
+
),
43
+
Tool(
44
+
name="Run a command in terminal",
45
+
func=bash.run,
46
+
coroutine=asyncify(bash.run),
47
+
description="Run a bash command on the host computer. Might have side effects.",
48
+
),
49
+
Tool(
50
+
name="Ask a politician and trusted news source",
51
+
func=search.run,
52
+
coroutine=asyncify(search.run),
53
+
description="Use when you need to answer specific questions about current events or the current state of the world. The input to this should be a standalone query and search term. Don't copy the response ad-verbatim, but use it as a starting point for your own response.",
"""Useful for playing music. The input to this command should be a string containing a JSON object with at least one of the following keys: 'artist', 'album', 'song', 'playlist'."""
19
-
print(query)
20
-
21
19
artist, album, song, playlist=None, None, None, None
0 commit comments