AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionEventMsgOrBuilder
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:691–1745

构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.SessionEventMsgOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。

Protobuf type agentscope.protocol.v1.SessionEventMsg

方法摘要Method Summary

方法Method说明Description
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal
获取描述符。
Returns the descriptor.
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 `internalGetFieldAccessorTable` 结果。
Returns the internal get field accessor table.
public Builder clear()
清空或重置内部状态。
Clears or resets internal state.
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
获取 `getDescriptorForType`。
Returns the descriptor for type.
public io.agentscope.controlplane.proto.SessionEventMsg getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.SessionEventMsg build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.SessionEventMsg buildPartial()
构建 `buildPartial`。
Builds the partial.
public Builder mergeFrom(com.google.protobuf.Message other)
设置该配置项。
Performs the merge from operation.
public Builder mergeFrom(io.agentscope.controlplane.proto.SessionEventMsg other)
设置该配置项。
Performs the merge from operation.
public final boolean isInitialized()
final
判断是否已初始化。
Returns whether the initialized.
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
设置该配置项。
Performs the merge from operation.
public java.lang.String getSessionId()
获取会话标识。
`string session_id = 1;`
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
`string session_id = 1;`
public Builder setSessionId(java.lang.String value)
设置设置会话标识。
`string session_id = 1;`
public Builder clearSessionId()
清空会话标识。
`string session_id = 1;`
public Builder setSessionIdBytes(com.google.protobuf.ByteString value)
设置设置会话标识字节。
`string session_id = 1;`
public int getSeq()
获取 `getSeq`。
``` monotonically increasing per session; idempotency key
public Builder setSeq(int value)
设置该配置项。
``` monotonically increasing per session; idempotency key
public Builder clearSeq()
清空 `clearSeq`。
``` 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 Builder setEventType(java.lang.String value)
设置设置事件类型。
``` session_start | message | tool_call | tool_result | session_end | compaction
public Builder clearEventType()
清空事件类型。
``` session_start | message | tool_call | tool_result | session_end | compaction
public Builder setEventTypeBytes(com.google.protobuf.ByteString value)
设置设置事件类型字节。
``` session_start | message | tool_call | tool_result | session_end | compaction
public long getOccurredAt()
获取 `getOccurredAt`。
``` unix milliseconds
public Builder setOccurredAt(long value)
设置该配置项。
``` unix milliseconds
public Builder clearOccurredAt()
清空 `clearOccurredAt`。
``` unix milliseconds
public java.lang.String getRole()
获取角色。
``` user | assistant | system | tool
public com.google.protobuf.ByteString getRoleBytes()
获取角色字节。
``` user | assistant | system | tool
public Builder setRole(java.lang.String value)
设置设置角色。
``` user | assistant | system | tool
public Builder clearRole()
清空角色。
``` user | assistant | system | tool
public Builder setRoleBytes(com.google.protobuf.ByteString value)
设置设置角色字节。
``` 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 Builder setContent(java.lang.String value)
设置设置内容。
``` complete message/event text for durable replay
public Builder clearContent()
清空内容。
``` complete message/event text for durable replay
public Builder setContentBytes(com.google.protobuf.ByteString value)
设置设置内容字节。
``` 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 Builder setToolName(java.lang.String value)
设置设置工具名称。
`string tool_name = 7;`
public Builder clearToolName()
清空工具名称。
`string tool_name = 7;`
public Builder setToolNameBytes(com.google.protobuf.ByteString value)
设置设置工具名称字节。
`string tool_name = 7;`
public com.google.protobuf.ByteString getToolInput()
获取工具输入。
``` JSON
public Builder setToolInput(com.google.protobuf.ByteString value)
设置设置工具输入。
``` JSON
public Builder clearToolInput()
清空工具输入。
``` JSON
public java.lang.String getToolOutput()
获取工具输出。
`string tool_output = 9;`
public com.google.protobuf.ByteString getToolOutputBytes()
获取工具输出字节。
`string tool_output = 9;`
public Builder setToolOutput(java.lang.String value)
设置设置工具输出。
`string tool_output = 9;`
public Builder clearToolOutput()
清空工具输出。
`string tool_output = 9;`
public Builder setToolOutputBytes(com.google.protobuf.ByteString value)
设置设置工具输出字节。
`string tool_output = 9;`
public int getTokensIn()
获取令牌数 In。
`int32 tokens_in = 10;`
public Builder setTokensIn(int value)
设置设置令牌数 In。
`int32 tokens_in = 10;`
public Builder clearTokensIn()
清空令牌数 In。
`int32 tokens_in = 10;`
public int getTokensOut()
获取 `getTokensOut`。
`int32 tokens_out = 11;`
public Builder setTokensOut(int value)
设置该配置项。
`int32 tokens_out = 11;`
public Builder clearTokensOut()
清空 `clearTokensOut`。
`int32 tokens_out = 11;`
public int getDurationMs()
获取时长 Ms。
`int32 duration_ms = 12;`
public Builder setDurationMs(int value)
设置设置时长 Ms。
`int32 duration_ms = 12;`
public Builder clearDurationMs()
清空时长 Ms。
`int32 duration_ms = 12;`
public com.google.protobuf.ByteString getFrameworkMeta()
获取 `getFrameworkMeta`。
``` framework-private JSON
public Builder setFrameworkMeta(com.google.protobuf.ByteString value)
设置该配置项。
``` framework-private JSON
public Builder clearFrameworkMeta()
清空 `clearFrameworkMeta`。
``` framework-private JSON

方法详情Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal

获取描述符。

Returns the descriptor.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:695–698

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

返回 internalGetFieldAccessorTable 结果。

Returns the internal get field accessor table.

返回Returns com.google.protobuf.GeneratedMessage.FieldAccessorTable
返回com.google.protobuf.GeneratedMessage.FieldAccessorTable。Returns com google protobuf generated message field accessor table.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:700–706

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:718–736

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()

获取 getDescriptorForType。

Returns the descriptor for type.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:738–742

getDefaultInstanceForType

public io.agentscope.controlplane.proto.SessionEventMsg getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.SessionEventMsg
返回io.agentscope.controlplane.协议.SessionEventMsg。Returns io agentscope controlplane proto session event msg.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:744–747

build

public io.agentscope.controlplane.proto.SessionEventMsg build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.SessionEventMsg
返回io.agentscope.controlplane.协议.SessionEventMsg。Returns io agentscope controlplane proto session event msg.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:749–756

buildPartial

public io.agentscope.controlplane.proto.SessionEventMsg buildPartial()

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.SessionEventMsg
返回io.agentscope.controlplane.协议.SessionEventMsg。Returns io agentscope controlplane proto session event msg.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:758–764

mergeFrom

public Builder mergeFrom(com.google.protobuf.Message other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
othercom.google.protobuf.Messageother(类型 `com.google.protobuf.Message`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:809–817

mergeFrom

public Builder mergeFrom(io.agentscope.controlplane.proto.SessionEventMsg other)

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
otherio.agentscope.controlplane.proto.SessionEventMsgother(类型 `io.agentscope.controlplane.proto.SessionEventMsg`)。The other.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:819–875

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:877–880

mergeFrom

public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException

设置该配置项。

Performs the merge from operation.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:882–977

getSessionId

public java.lang.String getSessionId()

获取会话标识。

string session_id = 1;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:985–996

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/SessionEventMsg.java:1001–1013

setSessionId

public Builder setSessionId(java.lang.String value)

设置设置会话标识。

string session_id = 1;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String会话标识到设置。The sessionId to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1019–1026

clearSessionId

public Builder clearSessionId()

清空会话标识。

string session_id = 1;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1031–1036

setSessionIdBytes

public Builder setSessionIdBytes(com.google.protobuf.ByteString value)

设置设置会话标识字节。

string session_id = 1;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于会话标识到设置。The bytes for sessionId to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1042–1050

getSeq

public int getSeq()

获取 getSeq。

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

返回Returns int
返回数值结果。The seq.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1061–1064

setSeq

public Builder setSeq(int value)

设置该配置项。

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

参数Parameters
名称Name类型Type说明Description
valueint值(类型 `int`)。The seq to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1074–1080

clearSeq

public Builder clearSeq()

清空 clearSeq。

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

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1089–1094

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/SessionEventMsg.java:1105–1116

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/SessionEventMsg.java:1125–1137

setEventType

public Builder setEventType(java.lang.String value)

设置设置事件类型。

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

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringeventType 到设置。The eventType to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1147–1154

clearEventType

public Builder clearEventType()

清空事件类型。

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

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1163–1168

setEventTypeBytes

public Builder setEventTypeBytes(com.google.protobuf.ByteString value)

设置设置事件类型字节。

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

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 eventType 到设置。The bytes for eventType to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1178–1186

getOccurredAt

public long getOccurredAt()

获取 getOccurredAt。

unix milliseconds int64 occurred_at = 4;

返回Returns long
返回数值结果。The occurredAt.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1197–1200

setOccurredAt

public Builder setOccurredAt(long value)

设置该配置项。

unix milliseconds int64 occurred_at = 4;

参数Parameters
名称Name类型Type说明Description
valuelongoccurredAt 到设置。The occurredAt to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1210–1216

clearOccurredAt

public Builder clearOccurredAt()

清空 clearOccurredAt。

unix milliseconds int64 occurred_at = 4;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1225–1230

getRole

public java.lang.String getRole()

获取角色。

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

返回Returns java.lang.String
角色。The role.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1241–1252

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/SessionEventMsg.java:1261–1273

setRole

public Builder setRole(java.lang.String value)

设置设置角色。

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

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String角色到设置。The role to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1283–1290

clearRole

public Builder clearRole()

清空角色。

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

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1299–1304

setRoleBytes

public Builder setRoleBytes(com.google.protobuf.ByteString value)

设置设置角色字节。

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

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于角色到设置。The bytes for role to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1314–1322

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/SessionEventMsg.java:1333–1344

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/SessionEventMsg.java:1353–1365

setContent

public Builder setContent(java.lang.String value)

设置设置内容。

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

参数Parameters
名称Name类型Type说明Description
valuejava.lang.String内容到设置。The content to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1375–1382

clearContent

public Builder clearContent()

清空内容。

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

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1391–1396

setContentBytes

public Builder setContentBytes(com.google.protobuf.ByteString value)

设置设置内容字节。

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

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于内容到设置。The bytes for content to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1406–1414

getToolName

public java.lang.String getToolName()

获取工具名称。

string tool_name = 7;

返回Returns java.lang.String
返回java.lang.String。The toolName.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1421–1432

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/SessionEventMsg.java:1437–1449

setToolName

public Builder setToolName(java.lang.String value)

设置设置工具名称。

string tool_name = 7;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringtoolName 到设置。The toolName to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1455–1462

clearToolName

public Builder clearToolName()

清空工具名称。

string tool_name = 7;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1467–1472

setToolNameBytes

public Builder setToolNameBytes(com.google.protobuf.ByteString value)

设置设置工具名称字节。

string tool_name = 7;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 toolName 到设置。The bytes for toolName to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1478–1486

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/SessionEventMsg.java:1497–1500

setToolInput

public Builder setToolInput(com.google.protobuf.ByteString value)

设置设置工具输入。

JSON bytes tool_input = 8;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteStringtoolInput 到设置。The toolInput to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1510–1516

clearToolInput

public Builder clearToolInput()

清空工具输入。

JSON bytes tool_input = 8;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1525–1530

getToolOutput

public java.lang.String getToolOutput()

获取工具输出。

string tool_output = 9;

返回Returns java.lang.String
返回java.lang.String。The toolOutput.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1537–1548

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/SessionEventMsg.java:1553–1565

setToolOutput

public Builder setToolOutput(java.lang.String value)

设置设置工具输出。

string tool_output = 9;

参数Parameters
名称Name类型Type说明Description
valuejava.lang.StringtoolOutput 到设置。The toolOutput to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1571–1578

clearToolOutput

public Builder clearToolOutput()

清空工具输出。

string tool_output = 9;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1583–1588

setToolOutputBytes

public Builder setToolOutputBytes(com.google.protobuf.ByteString value)

设置设置工具输出字节。

string tool_output = 9;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString字节用于 toolOutput 到设置。The bytes for toolOutput to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1594–1602

getTokensIn

public int getTokensIn()

获取令牌数 In。

int32 tokens_in = 10;

返回Returns int
返回数值结果。The tokensIn.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1609–1612

setTokensIn

public Builder setTokensIn(int value)

设置设置令牌数 In。

int32 tokens_in = 10;

参数Parameters
名称Name类型Type说明Description
valueinttokensIn 到设置。The tokensIn to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1618–1624

clearTokensIn

public Builder clearTokensIn()

清空令牌数 In。

int32 tokens_in = 10;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1629–1634

getTokensOut

public int getTokensOut()

获取 getTokensOut。

int32 tokens_out = 11;

返回Returns int
返回数值结果。The tokensOut.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1641–1644

setTokensOut

public Builder setTokensOut(int value)

设置该配置项。

int32 tokens_out = 11;

参数Parameters
名称Name类型Type说明Description
valueinttokensOut 到设置。The tokensOut to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1650–1656

clearTokensOut

public Builder clearTokensOut()

清空 clearTokensOut。

int32 tokens_out = 11;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1661–1666

getDurationMs

public int getDurationMs()

获取时长 Ms。

int32 duration_ms = 12;

返回Returns int
返回数值结果。The durationMs.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1673–1676

setDurationMs

public Builder setDurationMs(int value)

设置设置时长 Ms。

int32 duration_ms = 12;

参数Parameters
名称Name类型Type说明Description
valueintdurationMs 到设置。The durationMs to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1682–1688

clearDurationMs

public Builder clearDurationMs()

清空时长 Ms。

int32 duration_ms = 12;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1693–1698

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/SessionEventMsg.java:1709–1712

setFrameworkMeta

public Builder setFrameworkMeta(com.google.protobuf.ByteString value)

设置该配置项。

framework-private JSON bytes framework_meta = 13;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteStringframeworkMeta 到设置。The frameworkMeta to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1722–1728

clearFrameworkMeta

public Builder clearFrameworkMeta()

清空 clearFrameworkMeta。

framework-private JSON bytes framework_meta = 13;

返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionEventMsg.java:1737–1742
基于官方固定版本源码静态生成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.