Class SessionEvent
java.lang.Object
io.agentscope.extensions.aistio.model.SessionEvent
One Level-2 session event, mirroring the ASDP
SessionEventMsg.
The durable event stream is the canonical conversation history, so message and tool payloads are preserved rather than depending on the optional Level-3 message-query capability.
seq increases monotonically within a session and is the control plane's idempotency
key; it is assigned by the bridge, not by adapters.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionEvent.BuilderintlonggetRole()intgetSeq()intintvoidsetSeq(int seq) Assigns the per-session sequence number; called by the bridge on ingest.toProto()
-
Field Details
-
SESSION_START
- See Also:
-
MESSAGE
- See Also:
-
TOOL_CALL
- See Also:
-
TOOL_RESULT
- See Also:
-
SESSION_END
- See Also:
-
COMPACTION
- See Also:
-
ROLE_USER
- See Also:
-
ROLE_ASSISTANT
- See Also:
-
ROLE_SYSTEM
- See Also:
-
ROLE_TOOL
- See Also:
-
-
Method Details
-
builder
-
getSessionId
-
getEventType
-
getOccurredAt
public long getOccurredAt() -
getRole
-
getContent
-
getToolName
-
getToolOutput
-
getTokensIn
public int getTokensIn() -
getTokensOut
public int getTokensOut() -
getDurationMs
public int getDurationMs() -
getSeq
public int getSeq() -
setSeq
public void setSeq(int seq) Assigns the per-session sequence number; called by the bridge on ingest. -
toProto
-