Documentation
¶
Overview ¶
Package ainap implements the ainap tool.
ainap puts the current AI session to sleep for a specified duration. It records the nap state in the ai_status table so that aistatus can report the session as "nap" to other AIs.
The implementation is deliberately simple: it writes the nap state to the database, blocks with time.Sleep, then restores the state to "on" on wake.
Click to show internal directories.
Click to hide internal directories.