πŸ”§ API ReferenceΒΆ

Complete API documentation for Ryoma’s core components and interfaces.

🎯 Core APIs¢

🧩 Component

πŸ“ Description

πŸ”— Link

Core API

Base agents, stores, and configuration

Core API β†’

πŸ—οΈ Architecture APIsΒΆ

The API reference covers Ryoma’s unified three-tier architecture:

1. Agent LayerΒΆ

  • Base agent functionality and common interfaces

  • Agent factory and creation patterns

  • Multi-agent routing and coordination

2. Store LayerΒΆ

  • Metadata store management

  • Vector store operations

  • Unified store coordination

3. Data LayerΒΆ

  • Data source connections and management

  • Catalog indexing and search

  • Query execution and validation

πŸš€ Quick ExamplesΒΆ

Agent CreationΒΆ

from ryoma_ai.agent.factory import AgentFactory

# Create any agent type
agent = AgentFactory.create_agent(
    agent_type="sql",
    model="gpt-4o",
    datasource=datasource,
    store=meta_store,
    vector_store=vector_store
)

Store ManagementΒΆ

from ryoma_ai.store.store_factory import StoreFactory

# Create unified stores
meta_store = StoreFactory.create_store(
    store_type="postgres",
    connection_string="postgresql://localhost:5432/metadata"
)

Catalog OperationsΒΆ

# Search and index operations
agent.index_datasource(datasource, level="table")
catalog = agent.search_catalogs("customer data", top_k=10)