solana-agent 27.3.2__py3-none-any.whl → 27.3.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solana-agent
3
- Version: 27.3.2
3
+ Version: 27.3.3
4
4
  Summary: Agentic IQ
5
5
  License: MIT
6
6
  Keywords: ai,openai,ai agents,agi
@@ -47,7 +47,7 @@ Build your AI business in three lines of code!
47
47
  ## Why?
48
48
  * Three lines of code setup
49
49
  * Fast Responses
50
- * Solana Integration
50
+ * Solana Ecosystem Integration
51
51
  * Multi-Agent Swarm
52
52
  * Multi-Modal Streaming (Text & Audio)
53
53
  * Conversational Memory & History
@@ -65,7 +65,7 @@ Build your AI business in three lines of code!
65
65
 
66
66
  * Easy three lines of code setup
67
67
  * Fast AI responses
68
- * Solana Integration via [AgentiPy](https://github.com/niceberginc/agentipy)
68
+ * Solana Ecosystem Integration via [AgentiPy](https://github.com/niceberginc/agentipy)
69
69
  * Designed for a multi-agent swarm
70
70
  * Seamless text and audio streaming with real-time multi-modal processing
71
71
  * Configurable audio voice characteristics via prompting
@@ -454,84 +454,63 @@ Tools can be used from plugins like Solana Agent Kit (sakit) or via inline tools
454
454
  * Solana Agent doesn't use OpenAI function calling (tools) as they don't support async functions
455
455
  * Solana Agent tools are async functions
456
456
 
457
- ### Internet Search
457
+ ### Solana
458
458
 
459
459
  `pip install sakit`
460
460
 
461
461
  ```python
462
- from solana_agent import SolanaAgent
463
-
464
462
  config = {
465
- "openai": {
466
- "api_key": "your-openai-api-key",
467
- },
468
463
  "tools": {
469
- "search_internet": {
470
- "api_key": "your-openai-api-key",
464
+ "solana": {
465
+ "private_key": "your-solana-wallet-private-key", # base58 encoded string
466
+ "rpc_url": "your-solana-rpc-url",
471
467
  },
472
468
  },
473
- "agents": [
474
- {
475
- "name": "research_specialist",
476
- "instructions": "You are an expert researcher who synthesizes complex information clearly. You use your search_internet tool to get the latest information.",
477
- "specialization": "Research and knowledge synthesis",
478
- "tools": ["search_internet"],
479
- },
469
+ "ai_agents": [
480
470
  {
481
- "name": "customer_support",
482
- "instructions": "You provide friendly, helpful customer support responses.",
483
- "specialization": "Customer inquiries",
471
+ "name": "solana_expert",
472
+ "instructions": "You are an expert Solana blockchain assistant. You always use the Solana tool to perform actions on the Solana blockchain.",
473
+ "specialization": "Solana blockchain interaction",
474
+ "tools": ["solana"], # Enable the tool for this agent
484
475
  }
485
- ],
476
+ ]
486
477
  }
478
+
479
+ solana_agent = SolanaAgent(config=config)
480
+
481
+ async for response in solana_agent.process("user123", "What is my SOL balance?"):
482
+ print(response, end="")
487
483
  ```
488
484
 
489
- ### Solana Actions
485
+ ### Internet Search
490
486
 
491
487
  `pip install sakit`
492
488
 
493
489
  ```python
490
+ from solana_agent import SolanaAgent
491
+
494
492
  config = {
493
+ "openai": {
494
+ "api_key": "your-openai-api-key",
495
+ },
495
496
  "tools": {
496
- "solana": {
497
- # Core Solana Settings
498
- "private_key": "YOUR_SOLANA_WALLET_PRIVATE_KEY", # Required (unless generate_wallet=True): Your wallet's private key (base58 encoded string).
499
- "rpc_url": "https://api.mainnet-beta.solana.com", # Optional: Defaults to Solana mainnet RPC.
500
- "generate_wallet": False, # Optional: If True, ignores private_key and generates a new wallet. Defaults to False.
501
-
502
- # Optional RPC/Service API Keys & URLs
503
- "helius_api_key": "YOUR_HELIUS_API_KEY", # Optional: Helius API key for enhanced data/RPC.
504
- "helius_rpc_url": "YOUR_HELIUS_RPC_URL", # Optional: Specific Helius RPC URL.
505
- "quicknode_rpc_url": "YOUR_QUICKNODE_RPC_URL", # Optional: QuickNode RPC URL.
506
- "jito_block_engine_url": "YOUR_JITO_BLOCK_ENGINE_URL", # Optional: Jito block engine URL for bundles.
507
- "jito_uuid": "YOUR_JITO_UUID", # Optional: Jito authentication UUID.
508
-
509
- # Optional Integration API Keys
510
- "openai_api_key": "YOUR_OPENAI_API_KEY", # Optional: OpenAI API key (if needed by specific agentipy features).
511
- "backpack_api_key": "YOUR_BACKPACK_API_KEY", # Optional: Backpack Exchange API key.
512
- "backpack_api_secret": "YOUR_BACKPACK_API_SECRET", # Optional: Backpack Exchange API secret.
513
- "stork_api_key": "YOUR_STORK_API_KEY", # Optional: Stork oracle API key.
514
- "coingecko_api_key": "YOUR_COINGECKO_PRO_API_KEY", # Optional: CoinGecko Pro API key.
515
- "coingecko_demo_api_key": "YOUR_COINGECKO_DEMO_KEY", # Optional: CoinGecko Demo API key.
516
- "elfa_ai_api_key": "YOUR_ELFA_AI_API_KEY", # Optional: Elfa AI API key.
517
- "flexland_api_key": "YOUR_FLEXLAND_API_KEY", # Optional: Flexlend API key.
518
- "allora_api_key": "YOUR_ALLORA_API_KEY", # Optional: Allora Network API key.
519
- "solutiofi_api_key": "YOUR_SOLUTIOFI_API_KEY" # Optional: Solutio Finance API key.
497
+ "search_internet": {
498
+ "api_key": "your-openai-api-key",
520
499
  },
521
500
  },
522
- "ai_agents": [
501
+ "agents": [
523
502
  {
524
- "name": "solana_expert",
525
- "instructions": "You are an expert Solana blockchain assistant. You always use the Solana tool to perform actions on the Solana blockchain.",
526
- "specialization": "Solana blockchain interaction",
527
- "tools": ["solana"], # Enable the tool for this agent
503
+ "name": "news_specialist",
504
+ "instructions": "You are an expert news agent. You use your search_internet tool to get the latest information.",
505
+ "specialization": "News researcher and specialist",
506
+ "tools": ["search_internet"], # Enable the tool for this agent
528
507
  }
529
- ]
508
+ ],
530
509
  }
531
510
 
532
511
  solana_agent = SolanaAgent(config=config)
533
512
 
534
- async for response in solana_agent.process("user123", "What is my SOL balance?"):
513
+ async for response in solana_agent.process("user123", "What is the latest news on Elon Musk?"):
535
514
  print(response, end="")
536
515
  ```
537
516
 
@@ -33,7 +33,7 @@ solana_agent/services/agent.py,sha256=ZP-2fj0jbutasdul_BEQXaLLPq3Fpu2uGsVsawkVgr
33
33
  solana_agent/services/knowledge_base.py,sha256=bvoLZHSrfp6BhT8i4fKhxOkaUkYGCFedLp2uTzL-7xI,32379
34
34
  solana_agent/services/query.py,sha256=rAGC0Q_0Y_TQ-ONhyovQ_44myl1-not_VhD_hobmCE8,13005
35
35
  solana_agent/services/routing.py,sha256=hC5t98KZPHty9kMX27KcuxcmZlwjm0g59uMkR8n7k_w,6818
36
- solana_agent-27.3.2.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
37
- solana_agent-27.3.2.dist-info/METADATA,sha256=1sHj9Fet3Md2KnSpiTZAX3nXloKx_2leE_mqAKaGwwA,24881
38
- solana_agent-27.3.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
39
- solana_agent-27.3.2.dist-info/RECORD,,
36
+ solana_agent-27.3.3.dist-info/LICENSE,sha256=BnSRc-NSFuyF2s496l_4EyrwAP6YimvxWcjPiJ0J7g4,1057
37
+ solana_agent-27.3.3.dist-info/METADATA,sha256=ThcFDoTuhNekmLWZY2ekAK574cEetQL7RbbXHQO9kYA,22819
38
+ solana_agent-27.3.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
39
+ solana_agent-27.3.3.dist-info/RECORD,,