Skip to content

Giza agents run provable ML models and act autonomously on Starknet using native Account Abstraction

License

Notifications You must be signed in to change notification settings

keep-starknet-strange/agentstark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent STARK

SN_Ver_0.12.2

Exploration_Team

AgentSTARK is an AI agent framework designed for Starknet. It uses the Account Abstraction and will be used with Giza's AI Agents to operate verifiable machine learning models and enable autonomous actions on Starknet.

How does it work?

skynet_diagram

Build the contract

Use scarb build to build the contract. You will need both the sierra and casm files to declare and deploy the account contract.

Deploy and fund your account

The Starknet JS deployment script [TODO] will return the transaction hash and the contract address. Send some Sepolia ETH to the account, the easiest way is to send it from any Argent or Braavos wallet. You will need that address to add the account to sncast.

Add your account to sncast

sncast --url "https://rpc.nethermind.io/sepolia-juno/?apikey=YOUR_API_KEY" account add --name agent --address your_contract_address --type oz --private-key 0x111111111111

Calling the verifier

cd scripts

Run the bash script with the verifier address and the calldata file generated from the Integrity repo. ./1-verify-proof.sh 0x274d8165a19590bdeaa94d1dd427e2034462d7611754ab3e15714a908c60df7 calldata

Once the transaction is processed, the emitted event FactRegistered() returns the hash of the fact. Plug it into the the first call of the multicall.toml file to ensure checking the valid fact. Add the other calls the agent needs to execute multicall.toml.

TODO: connect the emitted event with the fact validity check.

Run ./2-check-fact-and-execute-calls.sh

About

Giza agents run provable ML models and act autonomously on Starknet using native Account Abstraction

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published