|
# -*- coding: utf-8 -*-
|
|
"""
|
|
智能体事件模块
|
|
"""
|
|
from dataclasses import dataclass
|
|
|
|
from pydantic_ai.messages import CustomEvent
|
|
|
|
|
|
@dataclass(kw_only=True)
|
|
class AgentRuntimeEvent(CustomEvent):
|
|
"""
|
|
智能体运行时事件
|
|
"""
|
|
|
|
# tool_call_id 无需自定义,继承 CustomEvent 中 tool_call_id
|
|
|
|
content: str = ""
|