SessionEventEntity
@Entity @Table( name = "builder_session_event", uniqueConstraints = @UniqueConstraint( name = "ux_builder_session_event_seq", columnNames = {"session_id", "seq"}), indexes = { @Index(name = "ix_builder_session_event_session", columnList = "session_id"), @Index(name = "ix_builder_session_event_type", columnList = "event_type") }) public class SessionEventEntity
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:28–137会话事件 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getEventId、setEventId、getSessionId、setSessionId。
Append-only event row for a managed session (domain.action naming).
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SessionEventEntity() | 初始化 `SessionEventEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
SessionEventEntity
public SessionEventEntity()
初始化 SessionEventEntity 实例。
Creates a new instance.
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:72方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:74–76setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:78–80getEventId
public String getEventId()
获取事件标识。
Returns the event id.
Stringio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:82–84setEventId
public void setEventId(String eventId)
设置事件标识。
Sets the event id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventId | String | 事件标识(类型 `String`)。The event id. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:86–88getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
Stringio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:90–92setSessionId
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:94–96getSeq
public long getSeq()
获取 getSeq。
Returns the seq.
longio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:98–100setSeq
public void setSeq(long seq)
设置 setSeq。
Sets the seq.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seq | long | seq(类型 `long`)。The seq. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:102–104getEventType
public String getEventType()
获取事件类型。
Returns the event type.
Stringio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:106–108setEventType
public void setEventType(String eventType)
设置事件类型。
Sets the event type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventType | String | 事件类型(类型 `String`)。The event type. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:110–112getPayloadJson
public String getPayloadJson()
获取负载 JSON。
Returns the payload json.
Stringio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:114–116setPayloadJson
public void setPayloadJson(String payloadJson)
设置负载 JSON。
Sets the payload json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
payloadJson | String | 负载 JSON(类型 `String`)。The payload json. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:118–120getProcessedAt
public Long getProcessedAt()
获取 getProcessedAt。
Returns the processed at.
Longio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:122–124setProcessedAt
public void setProcessedAt(Long processedAt)
设置 setProcessedAt。
Sets the processed at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
processedAt | Long | processed At(类型 `Long`)。The processed at. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:126–128getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:130–132setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:134–136