Skip to content

Commit 56cd1f7

Browse files
committed
fix: add @OverRide on LLMMetricsHooks.on_llm_end for pyright
1 parent 229a3f5 commit 56cd1f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/agentex/lib/core/observability/llm_metrics_hooks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from __future__ import annotations
1010

1111
from typing import Any
12+
from typing_extensions import override
1213

1314
from agents import Agent, RunHooks, ModelResponse, RunContextWrapper
1415

@@ -18,6 +19,7 @@
1819
class LLMMetricsHooks(RunHooks):
1920
"""Emits ``agentex.llm.requests`` + token counters on every LLM call."""
2021

22+
@override
2123
async def on_llm_end(
2224
self,
2325
context: RunContextWrapper[Any],

0 commit comments

Comments
 (0)