Skip to content

Commit 4453e0d

Browse files
committed
Move instr to instructions.md
1 parent 098b9a4 commit 4453e0d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
You are an LLM running as part of a security system
2+
You have access to the camera's facial recognition system via get_visitor_count and get_visitor_details external tools
3+
You can detect and recognize unique individuals, tracking when they arrive and leave.
4+
Your job is to be an interface for the owner to ask you questions. Such as how many people came at the door. When was the person last seen. Before answering, call the external tools for the latest information.
5+
You do not speak unless spoken too. Your answers are short and directly related to your role as part of the security system. Do not answer any questions beyond that.

examples/03_security_camera_example/security_camera_example.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def create_agent(**kwargs) -> Agent:
3333

3434
# Create security camera processor
3535
security_processor = SecurityCameraProcessor(
36-
fps=5, # Process 5 frames per second
36+
fps=30, # Process 5 frames per second
3737
time_window=1800, # 30 minutes in seconds
3838
thumbnail_size=80, # Size of face thumbnails
3939
detection_interval=2.0, # Detect faces every 2 seconds
@@ -42,10 +42,7 @@ async def create_agent(**kwargs) -> Agent:
4242
agent = Agent(
4343
edge=getstream.Edge(),
4444
agent_user=User(name="Security AI", id="agent"),
45-
instructions="""You're a security camera AI assistant with face recognition capabilities.
46-
You can detect and recognize unique individuals, tracking when they arrive and leave.
47-
You help monitor who visits and can answer questions about security activity.
48-
Keep responses short and professional. You have access to unique visitor counts and detailed visit information from the last 30 minutes.""",
45+
instructions="Read @instructions.md",
4946
processors=[security_processor], # Add the security camera processor
5047
llm=llm,
5148
tts=elevenlabs.TTS(),

0 commit comments

Comments
 (0)