Crypto.com AI Agent SDK
  • Getting Started
    • Introduction
    • Quick Start Guide: Simulation Entry Point
  • Core Concepts Overview
    • Plugins
    • Tools
    • Blockchain Functions
      • Wallet Management
      • Token Interaction
      • Transaction Queries
      • Block Information
      • Contract Operations
      • CronosID Operations
      • Defi Operations
      • Crypto.com Exchange
    • Built-in Telegram Feature
    • Advanced Usage: Custom Instructions
    • Dynamic AI Model Manager
  • Crypto.com On-Chain Developer Platform
    • Developer Platform API Methods
  • On-Chain Functions and Examples
    • AI Agent Chatbot
    • "Magic Link" Signer
  • Resources for Developers
Powered by GitBook
On this page
  • Provider Enum
  • Example: Using Crypto.com AI Agent with Gemini

Was this helpful?

  1. Core Concepts Overview

Dynamic AI Model Manager

AI Agent SDK supports multiple AI model providers. Below are the currently available llm_config provider options:

  • OpenAI

  • Anthropic

  • Mistral

  • Fireworks

  • GoogleGenAI

  • Grok

Provider Enum

Here is an example to access Crypto.com AI Agent SDK Provider enums:

from crypto_com_agent_client.lib.enums.provider_enum import Provider

for provider in Provider:
    print(provider.name, provider.value)
    
# Output:
# OpenAI OpenAI
# Anthropic Anthropic
# Mistral Mistral
# Fireworks Fireworks
# GoogleGenAI GoogleGenAI
# Grok Grok

Example: Using Crypto.com AI Agent with Gemini

Here is an example to use the Crypto.com AI Agent with Google's Gemini model for Cronos chain interactions:

from crypto_com_agent_client import Agent, SQLitePlugin
from crypto_com_agent_client.lib.enums.provider_enum import Provider

# Initialize the agent
agent = Agent.init(
   llm_config={
       "provider": Provider.GoogleGenAI,
       "model": "gemini-2.0-flash",
       "provider-api-key": "your-api-key",
       "temperature": "float-controlling-output-randomness",
   },
   blockchain_config={
       "chainId": "chain-id",
       "explorer-api-key": "your-api-key",
       "private-key": "your-private-key",
       "sso-wallet-url": "your-sso-wallet-url",
   },
   plugins={
       "storage": SQLitePlugin(db_path="agent_state.db"),
       "instructions": "You are an assistant that always provides useful responses."
   },
)


# Interaction
response = agent.interact("Get latest block height")
print(response)
PreviousAdvanced Usage: Custom InstructionsNextCrypto.com On-Chain Developer Platform

Last updated 1 day ago

Was this helpful?