File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1- from langchain_core .messages import (
2- AIMessage ,
3- HumanMessage ,
4- MessageLikeRepresentation ,
5- SystemMessage ,
6- ToolCall ,
7- ToolMessage ,
8- )
9-
101from dimos .agents .agent import Agent , deploy
112from dimos .agents .spec import AgentSpec
123from dimos .agents .vlm_agent import VLMAgent
Original file line number Diff line number Diff line change 2020import reactivex as rx
2121from reactivex import operators as ops
2222
23- from dimos .agents import Output , Reducer , Stream , skill
23+ try :
24+ from dimos .agents import Output , Reducer , Stream , skill
25+ except ImportError :
26+ def skill (* args ):
27+ def decorator (func ):
28+ def actual_function ():
29+ raise Exception (f'''dimos.agents is not installed. Please install dimos[agents] to use skills.''' )
30+ return func
31+ return decorator
32+
33+ from dimos .core .blueprints import autoconnect
2434from dimos .core import Module , ModuleConfig , Out , rpc
2535from dimos .hardware .sensors .camera .spec import CameraHardware
2636from dimos .hardware .sensors .camera .webcam import Webcam
@@ -114,4 +124,9 @@ def stop(self) -> None:
114124
115125camera_module = CameraModule .blueprint
116126
127+ demo_camera = autoconnect (
128+ camera_module (),
129+ )
130+
131+
117132__all__ = ["CameraModule" , "camera_module" ]
You can’t perform that action at this time.
0 commit comments