Skip to main content

Module perception

Module perception 

Source
Expand description

Loop Agent SDK - Perception Interface

Event-driven triggers that wake up Lambda agents. Uses AWS EventBridge as the “central nervous system.”

Structs§

EventBridgeRule
EventBridge rule configuration
LocationEvent
User location event from mobile app
ProofEvent
User-submitted proof event
ScheduledEvent
Scheduled check (cron-triggered)
TransactionEvent
Transaction from POS webhook
UnlockEvent
Staking position unlocking soon
YieldEvent
Yield threshold reached

Enums§

GeoEventType
PerceptionError
PerceptionEvent
Event types that can trigger agent execution
Processor
ScheduledCheckType

Traits§

PerceptionHandler
Trait for perception handlers Implement this in your Lambda to handle events

Functions§

generate_eventbridge_rules
Generate EventBridge rules for Loop agent