Spaces:
Sleeping
Sleeping
Commit ·
426e9e3
1
Parent(s): 83fe4f9
Added api to clear in memory data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- backend/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/__pycache__/config.cpython-313.pyc +0 -0
- backend/__pycache__/config.cpython-39.pyc +0 -0
- backend/__pycache__/main.cpython-313.pyc +0 -0
- backend/__pycache__/main.cpython-39.pyc +0 -0
- backend/ai/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/ai/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/ai/__pycache__/analyzer.cpython-313.pyc +0 -0
- backend/ai/__pycache__/analyzer.cpython-39.pyc +0 -0
- backend/ai/__pycache__/classifier.cpython-313.pyc +0 -0
- backend/ai/__pycache__/classifier.cpython-39.pyc +0 -0
- backend/ai/__pycache__/client.cpython-313.pyc +0 -0
- backend/ai/__pycache__/client.cpython-39.pyc +0 -0
- backend/ai/__pycache__/composer.cpython-313.pyc +0 -0
- backend/ai/__pycache__/composer.cpython-39.pyc +0 -0
- backend/ai/__pycache__/extractor.cpython-313.pyc +0 -0
- backend/ai/__pycache__/extractor.cpython-39.pyc +0 -0
- backend/ai/__pycache__/prompts.cpython-313.pyc +0 -0
- backend/ai/__pycache__/prompts.cpython-39.pyc +0 -0
- backend/ai/__pycache__/workflow_builder.cpython-313.pyc +0 -0
- backend/ai/__pycache__/workflow_builder.cpython-39.pyc +0 -0
- backend/ai/__pycache__/workflow_suggester.cpython-313.pyc +0 -0
- backend/ai/__pycache__/workflow_suggester.cpython-39.pyc +0 -0
- backend/api/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/api/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/api/__pycache__/routes.cpython-313.pyc +0 -0
- backend/api/__pycache__/routes.cpython-313.pyc.2295725586400 +0 -0
- backend/api/__pycache__/routes.cpython-313.pyc.2509634041824 +0 -0
- backend/api/__pycache__/routes.cpython-39.pyc +0 -0
- backend/api/routes.py +6 -0
- backend/engine/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/engine/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/engine/__pycache__/compiler.cpython-313.pyc +0 -0
- backend/engine/__pycache__/compiler.cpython-39.pyc +0 -0
- backend/engine/__pycache__/executor.cpython-313.pyc +0 -0
- backend/engine/__pycache__/executor.cpython-39.pyc +0 -0
- backend/engine/__pycache__/primitives.cpython-313.pyc +0 -0
- backend/engine/__pycache__/primitives.cpython-39.pyc +0 -0
- backend/engine/__pycache__/validator.cpython-313.pyc +0 -0
- backend/engine/__pycache__/validator.cpython-39.pyc +0 -0
- backend/integrations/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/integrations/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/integrations/__pycache__/file_parser.cpython-313.pyc +0 -0
- backend/integrations/__pycache__/file_parser.cpython-39.pyc +0 -0
- backend/models/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/models/__pycache__/__init__.cpython-39.pyc +0 -0
- backend/models/__pycache__/schemas.cpython-313.pyc +0 -0
- backend/models/__pycache__/schemas.cpython-39.pyc +0 -0
- backend/models/__pycache__/workflow_schema.cpython-313.pyc +0 -0
backend/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (209 Bytes). View file
|
|
|
backend/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (200 Bytes). View file
|
|
|
backend/__pycache__/config.cpython-313.pyc
ADDED
|
Binary file (2.44 kB). View file
|
|
|
backend/__pycache__/config.cpython-39.pyc
ADDED
|
Binary file (1.8 kB). View file
|
|
|
backend/__pycache__/main.cpython-313.pyc
ADDED
|
Binary file (1.55 kB). View file
|
|
|
backend/__pycache__/main.cpython-39.pyc
ADDED
|
Binary file (1.16 kB). View file
|
|
|
backend/ai/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (197 Bytes). View file
|
|
|
backend/ai/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (188 Bytes). View file
|
|
|
backend/ai/__pycache__/analyzer.cpython-313.pyc
ADDED
|
Binary file (3.94 kB). View file
|
|
|
backend/ai/__pycache__/analyzer.cpython-39.pyc
ADDED
|
Binary file (3.08 kB). View file
|
|
|
backend/ai/__pycache__/classifier.cpython-313.pyc
ADDED
|
Binary file (1.34 kB). View file
|
|
|
backend/ai/__pycache__/classifier.cpython-39.pyc
ADDED
|
Binary file (1 kB). View file
|
|
|
backend/ai/__pycache__/client.cpython-313.pyc
ADDED
|
Binary file (4.68 kB). View file
|
|
|
backend/ai/__pycache__/client.cpython-39.pyc
ADDED
|
Binary file (3.02 kB). View file
|
|
|
backend/ai/__pycache__/composer.cpython-313.pyc
ADDED
|
Binary file (1.81 kB). View file
|
|
|
backend/ai/__pycache__/composer.cpython-39.pyc
ADDED
|
Binary file (1.22 kB). View file
|
|
|
backend/ai/__pycache__/extractor.cpython-313.pyc
ADDED
|
Binary file (1.64 kB). View file
|
|
|
backend/ai/__pycache__/extractor.cpython-39.pyc
ADDED
|
Binary file (1.14 kB). View file
|
|
|
backend/ai/__pycache__/prompts.cpython-313.pyc
ADDED
|
Binary file (8.66 kB). View file
|
|
|
backend/ai/__pycache__/prompts.cpython-39.pyc
ADDED
|
Binary file (8.36 kB). View file
|
|
|
backend/ai/__pycache__/workflow_builder.cpython-313.pyc
ADDED
|
Binary file (4.35 kB). View file
|
|
|
backend/ai/__pycache__/workflow_builder.cpython-39.pyc
ADDED
|
Binary file (3.09 kB). View file
|
|
|
backend/ai/__pycache__/workflow_suggester.cpython-313.pyc
ADDED
|
Binary file (2.25 kB). View file
|
|
|
backend/ai/__pycache__/workflow_suggester.cpython-39.pyc
ADDED
|
Binary file (1.95 kB). View file
|
|
|
backend/api/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (199 Bytes). View file
|
|
|
backend/api/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (190 Bytes). View file
|
|
|
backend/api/__pycache__/routes.cpython-313.pyc
ADDED
|
Binary file (7.18 kB). View file
|
|
|
backend/api/__pycache__/routes.cpython-313.pyc.2295725586400
ADDED
|
Binary file (7.51 kB). View file
|
|
|
backend/api/__pycache__/routes.cpython-313.pyc.2509634041824
ADDED
|
Binary file (7.51 kB). View file
|
|
|
backend/api/__pycache__/routes.cpython-39.pyc
ADDED
|
Binary file (4.35 kB). View file
|
|
|
backend/api/routes.py
CHANGED
|
@@ -92,6 +92,12 @@ def upload_data(request: FileUploadRequest) -> FileUploadResponse:
|
|
| 92 |
return FileUploadResponse(file=record)
|
| 93 |
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
@router.get("/status", response_model=OwnerStatusResponse)
|
| 96 |
def status(owner_id: str) -> OwnerStatusResponse:
|
| 97 |
owner = db.get_owner(owner_id)
|
|
|
|
| 92 |
return FileUploadResponse(file=record)
|
| 93 |
|
| 94 |
|
| 95 |
+
@router.post("/reset")
|
| 96 |
+
def reset_data() -> dict[str, str]:
|
| 97 |
+
db.reset()
|
| 98 |
+
return {"status": "ok", "message": "In-memory data reset."}
|
| 99 |
+
|
| 100 |
+
|
| 101 |
@router.get("/status", response_model=OwnerStatusResponse)
|
| 102 |
def status(owner_id: str) -> OwnerStatusResponse:
|
| 103 |
owner = db.get_owner(owner_id)
|
backend/engine/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (312 Bytes). View file
|
|
|
backend/engine/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (296 Bytes). View file
|
|
|
backend/engine/__pycache__/compiler.cpython-313.pyc
ADDED
|
Binary file (442 Bytes). View file
|
|
|
backend/engine/__pycache__/compiler.cpython-39.pyc
ADDED
|
Binary file (392 Bytes). View file
|
|
|
backend/engine/__pycache__/executor.cpython-313.pyc
ADDED
|
Binary file (2.96 kB). View file
|
|
|
backend/engine/__pycache__/executor.cpython-39.pyc
ADDED
|
Binary file (1.8 kB). View file
|
|
|
backend/engine/__pycache__/primitives.cpython-313.pyc
ADDED
|
Binary file (6.18 kB). View file
|
|
|
backend/engine/__pycache__/primitives.cpython-39.pyc
ADDED
|
Binary file (4.42 kB). View file
|
|
|
backend/engine/__pycache__/validator.cpython-313.pyc
ADDED
|
Binary file (1.02 kB). View file
|
|
|
backend/engine/__pycache__/validator.cpython-39.pyc
ADDED
|
Binary file (720 Bytes). View file
|
|
|
backend/integrations/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (214 Bytes). View file
|
|
|
backend/integrations/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (205 Bytes). View file
|
|
|
backend/integrations/__pycache__/file_parser.cpython-313.pyc
ADDED
|
Binary file (974 Bytes). View file
|
|
|
backend/integrations/__pycache__/file_parser.cpython-39.pyc
ADDED
|
Binary file (655 Bytes). View file
|
|
|
backend/models/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (202 Bytes). View file
|
|
|
backend/models/__pycache__/__init__.cpython-39.pyc
ADDED
|
Binary file (193 Bytes). View file
|
|
|
backend/models/__pycache__/schemas.cpython-313.pyc
ADDED
|
Binary file (4.28 kB). View file
|
|
|
backend/models/__pycache__/schemas.cpython-39.pyc
ADDED
|
Binary file (3.44 kB). View file
|
|
|
backend/models/__pycache__/workflow_schema.cpython-313.pyc
ADDED
|
Binary file (448 Bytes). View file
|
|
|