a digital person for bluesky
1"""Halt tool for terminating bsky.py activity."""
2from pydantic import BaseModel, Field
3
4
5class HaltArgs(BaseModel):
6 reason: str = Field(
7 default="User requested halt",
8 description="Optional reason for halting activity"
9 )
10
11
12def halt_activity(reason: str = "User requested halt") -> str:
13 """
14 Signal to halt all bot activity and terminate bsky.py.
15
16 This tool allows the agent to request termination of the bot process.
17 The actual termination is handled externally by bsky.py when it detects
18 this tool being called.
19
20 Args:
21 reason: Optional reason for halting (default: "User requested halt")
22
23 Returns:
24 Halt signal message
25 """
26 return f"Halting activity: {reason}"