AS AgentScopeAPI 手册 / API Reference
类class agentscope.event

EventBase

class EventBase(BaseModel)
源码Source agentscope/event/_event.py:69–79

基类事件。位于 agentscope.event 包。

Base event class. Declared in agentscope.event.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
model_config—
模型配置字段。
ConfigDict(use_enum_values=True)
idstr
标识字段。
Field(default_factory=_generate_id)
created_atstr
已创建 at字段。
Field(default_factory=_generate_timestamp)
metadataDict[str, Any]
元数据字段。
Field(default_factory=dict)

属性详情Attribute Detail

model_config

 = ConfigDict(use_enum_values=True)

模型配置字段。

The model config field.

源码Source agentscope/event/_event.py:72

id

str = Field(default_factory=_generate_id)

标识字段。声明为 str。

The id field.

源码Source agentscope/event/_event.py:74

created_at

str = Field(default_factory=_generate_timestamp)

已创建 at字段。声明为 str。

The created at field.

源码Source agentscope/event/_event.py:76

metadata

Dict[str, Any] = Field(default_factory=dict)

元数据字段。声明为 Dict[str, Any]。

The metadata field.

源码Source agentscope/event/_event.py:78
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.