SessionEventMsgOrBuilder
public interface SessionEventMsgOrBuilder extends com.google.protobuf.MessageOrBuilder
io/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:8–165定义会话事件消息或构建器契约的接口。位于 io.agentscope.aistio.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getSessionId、getSessionIdBytes、getSeq、getEventType、getEventTypeBytes、getOccurredAt。
An interface in io.agentscope.aistio.proto that defines the contract for components that deploys, schedules and serves agents. Declared in io.agentscope.aistio.proto. Implements com.google.protobuf.MessageOrBuilder.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public java.lang.String getSessionId() | 获取会话标识。 `string session_id = 1;` |
public com.google.protobuf.ByteString getSessionIdBytes() | 获取会话标识字节。 `string session_id = 1;` |
public int getSeq() | 获取 `getSeq`。 ```
monotonically increasing per session; idempotency key |
public java.lang.String getEventType() | 获取事件类型。 ```
session_start | message | tool_call | tool_result | session_end | compaction |
public com.google.protobuf.ByteString getEventTypeBytes() | 获取事件类型字节。 ```
session_start | message | tool_call | tool_result | session_end | compaction |
public long getOccurredAt() | 获取 `getOccurredAt`。 ```
unix milliseconds |
public java.lang.String getRole() | 获取角色。 ```
user | assistant | system | tool |
public com.google.protobuf.ByteString getRoleBytes() | 获取角色字节。 ```
user | assistant | system | tool |
public java.lang.String getContent() | 获取内容。 ```
complete message/event text for durable replay |
public com.google.protobuf.ByteString getContentBytes() | 获取内容字节。 ```
complete message/event text for durable replay |
public java.lang.String getToolName() | 获取工具名称。 `string tool_name = 7;` |
public com.google.protobuf.ByteString getToolNameBytes() | 获取工具名称字节。 `string tool_name = 7;` |
public com.google.protobuf.ByteString getToolInput() | 获取工具输入。 ```
JSON |
public java.lang.String getToolOutput() | 获取工具输出。 `string tool_output = 9;` |
public com.google.protobuf.ByteString getToolOutputBytes() | 获取工具输出字节。 `string tool_output = 9;` |
public int getTokensIn() | 获取令牌数 In。 `int32 tokens_in = 10;` |
public int getTokensOut() | 获取 `getTokensOut`。 `int32 tokens_out = 11;` |
public int getDurationMs() | 获取时长 Ms。 `int32 duration_ms = 12;` |
public com.google.protobuf.ByteString getFrameworkMeta() | 获取 `getFrameworkMeta`。 ```
framework-private JSON |
方法详情Method Detail
getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:16getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:21–22getSeq
public int getSeq()
获取 getSeq。
monotonically increasing per session; idempotency key int32 seq = 2;
intio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:32getEventType
public java.lang.String getEventType()
获取事件类型。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:42getEventTypeBytes
public com.google.protobuf.ByteString getEventTypeBytes()
获取事件类型字节。
session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:51–52getOccurredAt
public long getOccurredAt()
获取 getOccurredAt。
unix milliseconds int64 occurred_at = 4;
longio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:62getRole
public java.lang.String getRole()
获取角色。
user | assistant | system | tool string role = 5;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:72getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()
获取角色字节。
user | assistant | system | tool string role = 5;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:81–82getContent
public java.lang.String getContent()
获取内容。
complete message/event text for durable replay string content = 6;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:92getContentBytes
public com.google.protobuf.ByteString getContentBytes()
获取内容字节。
complete message/event text for durable replay string content = 6;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:101–102getToolName
public java.lang.String getToolName()
获取工具名称。
string tool_name = 7;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:108getToolNameBytes
public com.google.protobuf.ByteString getToolNameBytes()
获取工具名称字节。
string tool_name = 7;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:113–114getToolInput
public com.google.protobuf.ByteString getToolInput()
获取工具输入。
JSON bytes tool_input = 8;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:124getToolOutput
public java.lang.String getToolOutput()
获取工具输出。
string tool_output = 9;
java.lang.Stringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:130getToolOutputBytes
public com.google.protobuf.ByteString getToolOutputBytes()
获取工具输出字节。
string tool_output = 9;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:135–136getTokensIn
public int getTokensIn()
获取令牌数 In。
int32 tokens_in = 10;
intio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:142getTokensOut
public int getTokensOut()
获取 getTokensOut。
int32 tokens_out = 11;
intio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:148getDurationMs
public int getDurationMs()
获取时长 Ms。
int32 duration_ms = 12;
intio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:154getFrameworkMeta
public com.google.protobuf.ByteString getFrameworkMeta()
获取 getFrameworkMeta。
framework-private JSON bytes framework_meta = 13;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionEventMsgOrBuilder.java:164