mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 08:38:30 +00:00
Fixing evaluator reporter
This commit is contained in:
@@ -307,7 +307,8 @@ class Telemetry:
|
|||||||
self._add_attribute(span, "quality", str(quality))
|
self._add_attribute(span, "quality", str(quality))
|
||||||
self._add_attribute(span, "exec_time", str(exec_time))
|
self._add_attribute(span, "exec_time", str(exec_time))
|
||||||
self._add_attribute(span, "model_name", model_name)
|
self._add_attribute(span, "model_name", model_name)
|
||||||
return span
|
span.set_status(Status(StatusCode.OK))
|
||||||
|
span.end()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -338,7 +339,8 @@ class Telemetry:
|
|||||||
span, "inputs", json.dumps(inputs) if inputs else None
|
span, "inputs", json.dumps(inputs) if inputs else None
|
||||||
)
|
)
|
||||||
|
|
||||||
return span
|
span.set_status(Status(StatusCode.OK))
|
||||||
|
span.end()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class CrewEvaluator:
|
|||||||
|
|
||||||
if isinstance(evaluation_result.pydantic, TaskEvaluationPydanticOutput):
|
if isinstance(evaluation_result.pydantic, TaskEvaluationPydanticOutput):
|
||||||
self._test_result_span = self._telemetry.individual_test_result_span(
|
self._test_result_span = self._telemetry.individual_test_result_span(
|
||||||
self,
|
self.crew,
|
||||||
evaluation_result.pydantic.quality,
|
evaluation_result.pydantic.quality,
|
||||||
current_task._execution_time,
|
current_task._execution_time,
|
||||||
self.openai_model_name,
|
self.openai_model_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user