An agent that monitors a webcam and informs the user if anything interesting is happening.
This agent uses one tool to monitor the webcam and another one to create a UI to inform the user.
In order to install their dependencies, run:
pip install -r examples/webcam/requirements.txtAfter that, you'll need to set the NERVE_WEBCAM_URL environment variable to the URL of the webcam you want to monitor, for instance:
export NERVE_WEBCAM_URL="rtsp://192.168.50.14:554/stream1"For a list of supported formats, refer to the OpenCV documentation.
Finally, you can run the agent with:
nerve run examples/webcam -c 5It is recommended to use a conversation window size of 5 messages.