Package io.agentscope.aistio.proto
Interface SessionEventMsgOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SessionEventMsg,SessionEventMsg.Builder
public interface SessionEventMsgOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncomplete message/event text for durable replaycom.google.protobuf.ByteStringcomplete message/event text for durable replayintint32 duration_ms = 12;session_start | message | tool_call | tool_result | session_end | compactioncom.google.protobuf.ByteStringsession_start | message | tool_call | tool_result | session_end | compactioncom.google.protobuf.ByteStringframework-private JSONlongunix millisecondsgetRole()user | assistant | system | toolcom.google.protobuf.ByteStringuser | assistant | system | toolintgetSeq()monotonically increasing per session; idempotency keystring session_id = 1;com.google.protobuf.ByteStringstring session_id = 1;intint32 tokens_in = 10;intint32 tokens_out = 11;com.google.protobuf.ByteStringJSONstring tool_name = 7;com.google.protobuf.ByteStringstring tool_name = 7;string tool_output = 9;com.google.protobuf.ByteStringstring tool_output = 9;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSessionId
String getSessionId()string session_id = 1;- Returns:
- The sessionId.
-
getSessionIdBytes
com.google.protobuf.ByteString getSessionIdBytes()string session_id = 1;- Returns:
- The bytes for sessionId.
-
getSeq
int getSeq()monotonically increasing per session; idempotency key
int32 seq = 2;- Returns:
- The seq.
-
getEventType
String getEventType()session_start | message | tool_call | tool_result | session_end | compaction
string event_type = 3;- Returns:
- The eventType.
-
getEventTypeBytes
com.google.protobuf.ByteString getEventTypeBytes()session_start | message | tool_call | tool_result | session_end | compaction
string event_type = 3;- Returns:
- The bytes for eventType.
-
getOccurredAt
long getOccurredAt()unix milliseconds
int64 occurred_at = 4;- Returns:
- The occurredAt.
-
getRole
String getRole()user | assistant | system | tool
string role = 5;- Returns:
- The role.
-
getRoleBytes
com.google.protobuf.ByteString getRoleBytes()user | assistant | system | tool
string role = 5;- Returns:
- The bytes for role.
-
getContent
String getContent()complete message/event text for durable replay
string content = 6;- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()complete message/event text for durable replay
string content = 6;- Returns:
- The bytes for content.
-
getToolName
String getToolName()string tool_name = 7;- Returns:
- The toolName.
-
getToolNameBytes
com.google.protobuf.ByteString getToolNameBytes()string tool_name = 7;- Returns:
- The bytes for toolName.
-
getToolInput
com.google.protobuf.ByteString getToolInput()JSON
bytes tool_input = 8;- Returns:
- The toolInput.
-
getToolOutput
String getToolOutput()string tool_output = 9;- Returns:
- The toolOutput.
-
getToolOutputBytes
com.google.protobuf.ByteString getToolOutputBytes()string tool_output = 9;- Returns:
- The bytes for toolOutput.
-
getTokensIn
int getTokensIn()int32 tokens_in = 10;- Returns:
- The tokensIn.
-
getTokensOut
int getTokensOut()int32 tokens_out = 11;- Returns:
- The tokensOut.
-
getDurationMs
int getDurationMs()int32 duration_ms = 12;- Returns:
- The durationMs.
-
getFrameworkMeta
com.google.protobuf.ByteString getFrameworkMeta()framework-private JSON
bytes framework_meta = 13;- Returns:
- The frameworkMeta.
-