Skip to content

Commit 08f04ad

Browse files
committed
Update README.md
1 parent f193944 commit 08f04ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ def evaluate(program_path: str) -> Dict:
5858
'combined_score': 0.0, # Always return combined_score, even on error
5959
'error': str(e)
6060
}
61+
62+
# Or use EvaluationResult for artifacts support:
63+
from openevolve.evaluation_result import EvaluationResult
64+
65+
def evaluate(program_path: str) -> EvaluationResult:
66+
return EvaluationResult(
67+
metrics={'combined_score': 0.8, 'accuracy': 0.9},
68+
artifacts={'debug_info': 'useful debugging data'}
69+
)
6170
```
6271

6372
**Critical Requirements:**

0 commit comments

Comments
 (0)