Skip to content

AttributeError: 'dict' object has no attribute 'metrics' #356

@cometta

Description

@cometta
2025-12-16 09:30:13,418 - WARNING - Evaluation attempt 1/4 failed for program daccbcd0-7fb4-44bd-8052-5fb9b2f9bcd6: 'dict' object has no attribute 'metrics'
Traceback (most recent call last):
  File "python3.12/site-packages/openevolve/evaluator.py", line 195, in evaluate_program
    for name, value in llm_result.metrics.items():
                       ^^^^^^^^^^^^^^^^^^

i frequently get this error, any advice? bug in the library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions