Skip to content

architectfromthefuture/AgentPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentPi

AgentPi is a signal-driven edge intelligence runtime designed for Raspberry Pi and similar edge devices. It converts real-world sensor signals into context-aware agent behaviors using a modular, event-driven architecture.


πŸš€ Quick Start

python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -e .
python -m agentpi --duration 10

Note: This repo contains a minimal demo pipeline that runs a mock signal adapter, processes signals into events, updates context, and activates a summarizer agent.


🧠 Architecture Overview

AgentPi follows a signal β†’ observation β†’ event β†’ context β†’ activation β†’ agent pipeline.

  1. Signal ingestion (adapters)
  2. Observation creation (cognition)
  3. Event generation (cognition)
  4. Context update (context builder)
  5. Activation evaluation (activation engine)
  6. Agent responses (agents)
  7. Persistence (memory)

πŸ“ Repository Layout

  • agentpi/ β€” core Python package
    • adapters/ β€” signal producers (hardware, mock, etc.)
    • core/ β€” runtime, event bus, orchestrator
    • cognition/ β€” perception, event detection, fusion
    • memory/ β€” persistence (event logs, context snapshots)
    • agents/ β€” behavior implementations (summarizers, alerts)
    • workflows/ β€” higher-level orchestrations
    • schemas/ β€” shared data models (Signal, Event, Context)
    • config/ β€” runtime configuration and defaults
  • tests/ β€” automated unit tests

βš™οΈ Configuration

AgentPi supports configuration via:

  • YAML file (passed via --config)
  • Environment variables using the AGENTPI_ prefix
  • CLI override (e.g., --duration)

Example config file (agentpi.yml):

adapter: mock
poll_interval_seconds: 0.5
log_level: INFO
run_duration_seconds: 20

Run with config:

python -m agentpi --config agentpi.yml

Environment variables override defaults:

export AGENTPI_POLL_INTERVAL_SECONDS=0.2
python -m agentpi

πŸ§ͺ Running Tests

python -m pytest

πŸ›  Contributing

Feel free to add new adapters, agents, workflows, and cognition rules. Keep modules small and preferring async patterns.


πŸ“œ License

This project is released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages