mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 15:14:50 -06:00
fix: model_config is misplaced for EvalMetricResultPerInvocation
.
PiperOrigin-RevId: 763648920
This commit is contained in:
parent
7c2df7e4f6
commit
19ca61d241
@ -51,10 +51,7 @@ class EvalMetricResult(EvalMetric):
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
model_config = ConfigDict(
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
|
||||
score: Optional[float] = None
|
||||
eval_status: EvalStatus
|
||||
|
||||
@ -62,6 +59,11 @@ class EvalMetricResult(EvalMetric):
|
||||
class EvalMetricResultPerInvocation(BaseModel):
|
||||
"""Eval metric results per invocation."""
|
||||
|
||||
model_config = ConfigDict(
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
|
||||
actual_invocation: Invocation
|
||||
"""The actual invocation, usually obtained by inferencing the agent."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user