mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-12 07:45:14 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
14 lines
475 B
Python
14 lines
475 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
from forge.agent.forge_agent import ForgeAgent
|
|
from forge.agent_protocol.database.db import AgentDB
|
|
from forge.file_storage import FileStorageBackendName, get_storage
|
|
|
|
database_name = os.getenv("DATABASE_STRING")
|
|
workspace = get_storage(FileStorageBackendName.LOCAL, root_path=Path("workspace"))
|
|
database = AgentDB(database_name, debug_enabled=False)
|
|
agent = ForgeAgent(database=database, workspace=workspace)
|
|
|
|
app = agent.get_agent_app()
|