π§ API ReferenceΒΆ
Complete API documentation for Ryomaβs core components and interfaces.
π― Core APIsΒΆ
π§© Component |
π Description |
π Link |
|---|---|---|
Core API |
Base agents, stores, and configuration |
ποΈ 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)