dataflow.api.db¶
Attributes¶
Classes¶
Manages database operations for the agent registry. |
Module Contents¶
- class dataflow.api.db.DatabaseManager(connection_params: dict[str, Any])¶
Manages database operations for the agent registry.
- connect() bool ¶
Connect to the database.
- Returns:
True if connection successful, False otherwise
- Return type:
- create_schema() bool ¶
Create the AI schema if it doesn’t exist.
- Returns:
True if successful, False otherwise
- Return type:
- create_tables() bool ¶
Create the necessary tables in the AI schema.
- Returns:
True if successful, False otherwise
- Return type:
- get_agent_configs(agent_type: str | None = None) list[dict[str, Any]] ¶
Get agent configurations from the database.
- register_agent_config(name: str, class_obj: Any, agent_type: str = 'agent') bool ¶
Register an agent configuration in the database.
- connection = None¶
- connection_params¶
- schema_name = 'ai'¶
- dataflow.api.db.logger¶