Skip to content

solagentlabs/solagent-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolAgent

SolAgent SDK: The AI Agent Development Kit for Solana.

Quick start

  • Add dependencies
[dependencies]
# add wallet
solagent-wallet-solana = "0.x.x"

# add core
solagent-core = "0.x.x"

# add tools
solagent-rig-solana = "0.x.x"
  • Create SolAgent
use solagent_core::{model::SolAgentModel, SolAgent};
use solagent_rig_solana::get_solana_tools;
use solagent_wallet_solana::SolAgentWallet;
use std::sync::Arc;

#[tokio::main]
async fn main() {
    // Step 1: import your wallet
    let wallet = SolAgentWallet::new("https://api.mainnet-beta.solana.com");

    // Step 2: Create SolAgent
    let solagent = Arc::new(SolAgent::new(wallet, None));

    // Step 3: Add tools you want to use
    let tools = get_solana_tools(solagent.clone());

    // Step 4: Select the model you want to use
    let model = SolAgentModel::Ollama("llama3.2".to_string());

    // Step 5: tell it what you want to do.
    let prompt = "Get Tps on solana";

    // Wait for the result
    let result = solagent
        .prompt(
            model,
            tools,
            prompt,
        )
        .await?;

    println!("{:#?}", result);
}

Packages

Core

Crate Package Version Downloads
Core solagent-core Version Crates Downloads
Wallet solagent-wallet-solana Version Crates Downloads

Tools

Tools Description Package Version Downloads
gibwork Create a task on Gibwork solagent-rig-gibwork Version Crates Downloads
goplus Token Security API solagent-rig-goplus Version Crates Downloads
helius Webhook operates solagent-rig-helius Version Crates Downloads
jupiter Jupiter Exchange solagent-rig-jupiter Version Crates Downloads
pumpfun Launch Token on pumpfun solagent-rig-pumpfun Version Crates Downloads
pyth Fetch price from Pyth solagent-rig-pyth Version Crates Downloads
rugcheck Rug check solagent-rig-rugcheck Version Crates Downloads
solana Operations on solana solagent-rig-solana Version Crates Downloads
solayer Stake with solayer solagent-rig-solayer Version Crates Downloads
cookie Cookie Data Swarm APIs solagent-rig-cookie Version Crates Downloads
dexscreener Dexscreener data APIs solagent-rig-dexscreener Version Crates Downloads
birdeye Birdeye API solagent-rig-birdeye Version Crates Downloads

Plugins

Plugin Description Package Version Downloads
gibwork Create a task on Gibwork solagent-plugin-gibwork Version Crates Downloads
goplus Token Security API solagent-plugin-goplus Version Crates Downloads
helius Webhook operates solagent-plugin-helius Version Crates Downloads
jupiter Jupiter Exchange solagent-plugin-jupiter Version Crates Downloads
pumpfun Launch Token on pumpfun solagent-plugin-pumpfun Version Crates Downloads
pyth Fetch price from Pyth solagent-plugin-pyth Version Crates Downloads
rugcheck Rug check solagent-plugin-rugcheck Version Crates Downloads
solana Operations on solana solagent-plugin-solana Version Crates Downloads
solayer Stake with solayer solagent-plugin-solayer Version Crates Downloads
cookie Cookie Data Swarm APIs solagent-plugin-cookie Version Crates Downloads
dexscreener Dexscreener data APIs solagent-plugin-dexscreener Version Crates Downloads
birdeye Birdeye API solagent-plugin-birdeye Version Crates Downloads

Contributors

Star History

Star History Chart

Support solagent.rs

Thank you for your support of solagent.rs! Donation Addresses:

Solana: qsvR7V3DtbbxAEs4TkGiQL9N9Z1GccfV6Q6Vm2oHViS
Ethereum: 0x972b8d20f5847B03Df43d9A595B7e83A7bbCD951

Supporters

SendAI: solscan.io

About

SolAgent: The AI Agent Development Kit for Solana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages