gizatechxyz / scarb-agent

All you need to build provable web3 Agents!
https://orion-giza.gitbook.io/scarb-agent
Apache License 2.0
2 stars 0 forks source link
agent cairo scarb stark zero-knowledge

Scarb Agent

Scarb Agent simplifies the creation of Cairo programs that interact seamlessly with constrained and unconstrained oracles, enabling developers to prove only the necessary components of their agents.

Scarb Agent is all you need to build provable agents ready for deployment on the Giza platform.

Key Features:

Prerequisites

Installation

To install Scarb Agent, use the following command:

cargo install --git https://github.com/gizatechxyz/scarb-agent/

Documentation

Explore the documentation to learn how to get started with Scarb Agent.

Starting a New Project

Initialize a new project using:

scarb agent-new [PROJECT_NAME]

Usage

  1. Start the agent server:

    cd python
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    python src/main.py
  2. In the root of your project, run the agent:

    scarb agent-run --args [ARGS_CAIRO_FUNCTION]

Preprocessing

To run preprocessing:

  1. Ensure the Python server is running.
  2. Use the --preprocess flag when running the Scarb agent:
    scarb agent-run --preprocess --args '{"n": 9}'

Postprocessing

To run postprocessing:

  1. Ensure the Python server is running.
  2. Use the --postprocess flag when running the Scarb agent:
    scarb agent-run --postprocess --args '{"n": 9}'

Acknowledgments

This project builds upon the implementation of Cairo-Hints by Reilabs. Special thanks to Reilabs for their contributions to the Cairo ecosystem.