mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/automation/models.py
This commit is contained in:
1 parent
00e5461b7b
commit
adc6843080
3 files changed
+48
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250806-012236", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/automation/models.py", "timestamp": "2025-08-06T01:22:36Z", "type": "pre-edit", "original_branch": "alpha-88"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250806-012237", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/advanced_metrics/neural_benchmarks.py", "timestamp": "2025-08-06T01:22:37Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- .../advanced_metrics/neural_benchmarks.py | 973 +++++++++++++++++++++ claude-flow-wiki | 0 4 files changed, 977 insertions(+), 4 deletions(-) "}
|
||||
@@ -0,0 +1,46 @@
|
||||
"""
|
||||
Models for automation module.
|
||||
|
||||
Defines data structures used throughout the automation components.
|
||||
"""
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime
|
||||
from typing import Dict, Any, Optional
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class TaskStatus(Enum):
|
||||
"""Status of benchmark tasks."""
|
||||
PENDING = "pending"
|
||||
RUNNING = "running"
|
||||
COMPLETED = "completed"
|
||||
FAILED = "failed"
|
||||
CANCELLED = "cancelled"
|
||||
TIMEOUT = "timeout"
|
||||
|
||||
|
||||
@dataclass
|
||||
class BenchmarkTask:
|
||||
"""A benchmark task to be executed."""
|
||||
id: str
|
||||
name: str
|
||||
description: str
|
||||
type: str = "generic"
|
||||
parameters: Dict[str, Any] = field(default_factory=dict)
|
||||
priority: int = 5 # 1-10, higher is more priority
|
||||
timeout: Optional[int] = None # seconds
|
||||
dependencies: list = field(default_factory=list)
|
||||
created_at: datetime = field(default_factory=datetime.now)
|
||||
|
||||
|
||||
@dataclass
|
||||
class BenchmarkResult:
|
||||
"""Result of a benchmark task execution."""
|
||||
task_id: str
|
||||
status: str
|
||||
execution_time: float
|
||||
metrics: Dict[str, Any] = field(default_factory=dict)
|
||||
timestamp: datetime = field(default_factory=datetime.now)
|
||||
error_message: Optional[str] = None
|
||||
output: Optional[str] = None
|
||||
Reference in new issue
Block a user