AS AgentScopeAPI 手册 / API Reference

SessionEventMsgOrBuilder

public interface SessionEventMsgOrBuilder extends com.google.protobuf.MessageOrBuilder
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:8–165

定义会话事件消息或构建器契约的接口。位于 io.agentscope.controlplane.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getSessionId、getSessionIdBytes、getSeq、getEventType、getEventTypeBytes、getOccurredAt。

An interface in io.agentscope.controlplane.proto that defines the contract for components that deploys, schedules and serves agents. Declared in io.agentscope.controlplane.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;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:16

getSessionIdBytes

public com.google.protobuf.ByteString getSessionIdBytes()

获取会话标识字节。

string session_id = 1;

返回Returns com.google.protobuf.ByteString
字节用于会话标识。The bytes for sessionId.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:21–22

getSeq

public int getSeq()

获取 getSeq。

monotonically increasing per session; idempotency key int32 seq = 2;

返回Returns int
返回数值结果。The seq.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:32

getEventType

public java.lang.String getEventType()

获取事件类型。

session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;

返回Returns java.lang.String
返回java.lang.String。The eventType.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:42

getEventTypeBytes

public com.google.protobuf.ByteString getEventTypeBytes()

获取事件类型字节。

session_start | message | tool_call | tool_result | session_end | compaction string event_type = 3;

返回Returns com.google.protobuf.ByteString
字节用于 eventType。The bytes for eventType.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:51–52

getOccurredAt

public long getOccurredAt()

获取 getOccurredAt。

unix milliseconds int64 occurred_at = 4;

返回Returns long
返回数值结果。The occurredAt.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:62

getRole

public java.lang.String getRole()

获取角色。

user | assistant | system | tool string role = 5;

返回Returns java.lang.String
角色。The role.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:72

getRoleBytes

public com.google.protobuf.ByteString getRoleBytes()

获取角色字节。

user | assistant | system | tool string role = 5;

返回Returns com.google.protobuf.ByteString
字节用于角色。The bytes for role.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:81–82

getContent

public java.lang.String getContent()

获取内容。

complete message/event text for durable replay string content = 6;

返回Returns java.lang.String
内容。The content.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:92

getContentBytes

public com.google.protobuf.ByteString getContentBytes()

获取内容字节。

complete message/event text for durable replay string content = 6;

返回Returns com.google.protobuf.ByteString
字节用于内容。The bytes for content.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:101–102

getToolName

public java.lang.String getToolName()

获取工具名称。

string tool_name = 7;

返回Returns java.lang.String
返回java.lang.String。The toolName.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:108

getToolNameBytes

public com.google.protobuf.ByteString getToolNameBytes()

获取工具名称字节。

string tool_name = 7;

返回Returns com.google.protobuf.ByteString
字节用于 toolName。The bytes for toolName.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:113–114

getToolInput

public com.google.protobuf.ByteString getToolInput()

获取工具输入。

JSON bytes tool_input = 8;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The toolInput.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:124

getToolOutput

public java.lang.String getToolOutput()

获取工具输出。

string tool_output = 9;

返回Returns java.lang.String
返回java.lang.String。The toolOutput.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:130

getToolOutputBytes

public com.google.protobuf.ByteString getToolOutputBytes()

获取工具输出字节。

string tool_output = 9;

返回Returns com.google.protobuf.ByteString
字节用于 toolOutput。The bytes for toolOutput.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:135–136

getTokensIn

public int getTokensIn()

获取令牌数 In。

int32 tokens_in = 10;

返回Returns int
返回数值结果。The tokensIn.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:142

getTokensOut

public int getTokensOut()

获取 getTokensOut。

int32 tokens_out = 11;

返回Returns int
返回数值结果。The tokensOut.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:148

getDurationMs

public int getDurationMs()

获取时长 Ms。

int32 duration_ms = 12;

返回Returns int
返回数值结果。The durationMs.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:154

getFrameworkMeta

public com.google.protobuf.ByteString getFrameworkMeta()

获取 getFrameworkMeta。

framework-private JSON bytes framework_meta = 13;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The frameworkMeta.
源码Source io/agentscope/controlplane/proto/SessionEventMsgOrBuilder.java:164
基于官方固定版本源码静态生成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.