Spaces:
Running
Running
Commit ·
5d4a7f1
1
Parent(s): 3f10cab
fix: flatten imports for HF Spaces
Browse files- app.py +2 -2
- opsgate_environment.py +5 -5
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
"""OpsGate FastAPI server — thin wrapper that holds a single env instance."""
|
| 2 |
import sys, os
|
| 3 |
-
|
| 4 |
|
| 5 |
from fastapi import FastAPI
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from typing import Optional
|
| 8 |
-
from
|
| 9 |
from models import ToolCall
|
| 10 |
|
| 11 |
app = FastAPI(title="OpsGate Environment API")
|
|
|
|
| 1 |
"""OpsGate FastAPI server — thin wrapper that holds a single env instance."""
|
| 2 |
import sys, os
|
| 3 |
+
|
| 4 |
|
| 5 |
from fastapi import FastAPI
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from typing import Optional
|
| 8 |
+
from opsgate_environment import OpsGateEnvironment
|
| 9 |
from models import ToolCall
|
| 10 |
|
| 11 |
app = FastAPI(title="OpsGate Environment API")
|
opsgate_environment.py
CHANGED
|
@@ -7,11 +7,11 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
|
| 7 |
|
| 8 |
from openenv.core.env_server.interfaces import Environment
|
| 9 |
from models import ToolCall, ToolResult, EpisodeState, AuditEvent
|
| 10 |
-
from
|
| 11 |
-
from
|
| 12 |
-
from
|
| 13 |
-
from
|
| 14 |
-
from
|
| 15 |
from tasks import TASKS
|
| 16 |
from hyperparameters import (
|
| 17 |
MAX_STEPS_PER_EPISODE, TOOL_CALL_PENALTY, INVALID_TOOL_PENALTY,
|
|
|
|
| 7 |
|
| 8 |
from openenv.core.env_server.interfaces import Environment
|
| 9 |
from models import ToolCall, ToolResult, EpisodeState, AuditEvent
|
| 10 |
+
from tools.crm import CRMTool
|
| 11 |
+
from tools.billing import BillingTool
|
| 12 |
+
from tools.calendar import CalendarTool
|
| 13 |
+
from tools.email import EmailTool
|
| 14 |
+
from verifier import verify_episode
|
| 15 |
from tasks import TASKS
|
| 16 |
from hyperparameters import (
|
| 17 |
MAX_STEPS_PER_EPISODE, TOOL_CALL_PENALTY, INVALID_TOOL_PENALTY,
|