AS AgentScopeAPI 手册 / API Reference

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
源码Source 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

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getEventId()
获取事件标识。
Returns the event id.
public void setEventId(String eventId)
设置事件标识。
Sets the event id.
public String getSessionId()
获取会话标识。
Returns the session id.
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
public long getSeq()
获取 `getSeq`。
Returns the seq.
public void setSeq(long seq)
设置 `setSeq`。
Sets the seq.
public String getEventType()
获取事件类型。
Returns the event type.
public void setEventType(String eventType)
设置事件类型。
Sets the event type.
public String getPayloadJson()
获取负载 JSON。
Returns the payload json.
public void setPayloadJson(String payloadJson)
设置负载 JSON。
Sets the payload json.
public Long getProcessedAt()
获取 `getProcessedAt`。
Returns the processed at.
public void setProcessedAt(Long processedAt)
设置 `setProcessedAt`。
Sets the processed at.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.

构造器详情Constructor Detail

SessionEventEntity

public SessionEventEntity()

初始化 SessionEventEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:72

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:74–76

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:78–80

getEventId

public String getEventId()

获取事件标识。

Returns the event id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:82–84

setEventId

public void setEventId(String eventId)

设置事件标识。

Sets the event id.

参数Parameters
名称Name类型Type说明Description
eventIdString事件标识(类型 `String`)。The event id.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:86–88

getSessionId

public String getSessionId()

获取会话标识。

Returns the session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:90–92

setSessionId

public void setSessionId(String sessionId)

设置会话标识。

Sets the session id.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:94–96

getSeq

public long getSeq()

获取 getSeq。

Returns the seq.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:98–100

setSeq

public void setSeq(long seq)

设置 setSeq。

Sets the seq.

参数Parameters
名称Name类型Type说明Description
seqlongseq(类型 `long`)。The seq.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:102–104

getEventType

public String getEventType()

获取事件类型。

Returns the event type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:106–108

setEventType

public void setEventType(String eventType)

设置事件类型。

Sets the event type.

参数Parameters
名称Name类型Type说明Description
eventTypeString事件类型(类型 `String`)。The event type.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:110–112

getPayloadJson

public String getPayloadJson()

获取负载 JSON。

Returns the payload json.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:114–116

setPayloadJson

public void setPayloadJson(String payloadJson)

设置负载 JSON。

Sets the payload json.

参数Parameters
名称Name类型Type说明Description
payloadJsonString负载 JSON(类型 `String`)。The payload json.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:118–120

getProcessedAt

public Long getProcessedAt()

获取 getProcessedAt。

Returns the processed at.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:122–124

setProcessedAt

public void setProcessedAt(Long processedAt)

设置 setProcessedAt。

Sets the processed at.

参数Parameters
名称Name类型Type说明Description
processedAtLongprocessed At(类型 `Long`)。The processed at.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:126–128

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:130–132

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/SessionEventEntity.java:134–136
基于官方固定版本源码静态生成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.