simple-alloy-agent

simple-alloy-agentは、Pythonで開発された軽量なエージェントで、シンプルなAPIを通じてさまざまなタスクを自動化することができます。特に、データ収集や処理の効率化に役立つツールです。ユーザーは簡単に設定を行い、必要な機能を拡張することが可能です。

GitHubスター

0

ユーザー評価

未評価

お気に入り

0

閲覧数

23

フォーク

0

イシュー

0

README
AlloyDB MCP ADK Example

This example demonstrates how to interact with an AlloyDB database using AI Agents with the Model Context Protocol (MCP) Database Toolbox and Google Agent Development Kit (ADK).

Agent Chat Example

Prerequisites
Setup
  1. Synchronize dependencies using uv:

    uv sync
    
  2. Create the environment files:

    cp .env.example .env
    cp alloydb_agent/.env.example alloydb_agent/.env
    
  3. Edit the .env files and fill in your credentials:

    • In the root .env file:
      • Fill in AlloyDB connection details (ALLOYDB_PROJECT, ALLOYDB_REGION, etc.)
    • In the alloydb_agent/.env file:
      • For Google AI API (default):
        • Set GOOGLE_API_KEY with your Gemini API key
      • OR for Vertex AI:
  4. Source the environment variables:

    source .env
    
  5. Download the MCP Toolbox for Databases

    export OS="linux/amd64" # one of linux/amd64, darwin/arm64, darwin/amd64, or windows/amd64
    curl -O https://storage.googleapis.com/genai-toolbox/v0.6.0/$OS/toolbox
    chmod +x toolbox
    
  6. Start the MCP Toolbox with the provided tools configuration:

    ./toolbox --tools-file "alloy-tools.yaml"
    
  7. In a separate terminal, activate the virtual environment and start the ADK server:

    source .venv/bin/activate
    adk web
    

    The ADK web interface should now be available at http://localhost:8000, where you can interact with your AlloyDB database using natural language.

Disclaimer

This is example/demo code and may not be actively maintained or ready for production deployment. Use at your own risk.