fix(ops): add streaming metrics and LLM span for agent-chat traces (#28320)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
XlKsyt
2025-11-26 22:45:20 +08:00
committed by GitHub
parent 2731b04ff9
commit 1e23957657
6 changed files with 171 additions and 7 deletions

View File

@@ -40,6 +40,9 @@ class EasyUITaskState(TaskState):
"""
llm_result: LLMResult
first_token_time: float | None = None
last_token_time: float | None = None
is_streaming_response: bool = False
class WorkflowTaskState(TaskState):