Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ameo.agiwithai.com/llms.txt

Use this file to discover all available pages before exploring further.

Every component described here is implemented in this repository — not mocked for demos.

System context

Components

ComponentResponsibility
apps/worker/FastAPI + LangGraph: observe, plan, guard, act, log
apps/worker/ameo_worker/adapters/mantle_dex.pyDEX quotes, calldata, broadcast on Mantle Sepolia
packages/contracts/MantleAgentIdentity.sol, Foundry deploy scripts
apps/web/Narrative Console — dashboard, replay, decisions, policy view
packages/prompts/Versioned planner prompt registry
SQLite + JSONLPersistent memory and append-only cycle events

Cognition loop

The LangGraph state machine in apps/worker/ameo_worker/graph.py runs: observe → plan → guardrail → act → log Each transition emits structured events to logs/events/events_*.jsonl. The replay API (GET /api/cycles/{id}) reconstructs the nine-node verification rail in the web UI.

Data model (minimal)

StoreKey entities
SQLiteruns, plans, executions, performance history
JSONLcycle_started, observation_completed, plan_generated, guardrail_evaluated, action_executed, cycle_completed
On-chain[DecisionLogged](/glossary#decisionlogged-event)(agentId, rationaleHash, pnl1e18, actionType, metadataUri, dataHash, operator)

Security defaults

  • LIVE_ENABLED=false and WORKER_MODE=dry_run by default
  • Max daily notional and per-trade caps before execution
  • Private keys never passed to LLM prompts
  • Slither recommended on contracts before mainnet

Deployment

ServicePortNotes
Worker API:8000Docker Compose or uvicorn
Web:5173Vite dev; static build for production
ContractsMantle Sepolia via Foundry scripts
See Deploy guide for production hosting.