AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionSnapshotOrBuilder
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:605–1485

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

Protobuf type agentscope.protocol.v1.SessionSnapshot

方法摘要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.SessionSnapshot getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
public io.agentscope.controlplane.proto.SessionSnapshot build()
构建并返回最终实例。
Creates and returns an instance.
public io.agentscope.controlplane.proto.SessionSnapshot 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.SessionSnapshot 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 java.lang.String getPhase()
获取阶段。
`string phase = 2;`
public com.google.protobuf.ByteString getPhaseBytes()
获取阶段字节。
`string phase = 2;`
public Builder setPhase(java.lang.String value)
设置设置阶段。
`string phase = 2;`
public Builder clearPhase()
清空阶段。
`string phase = 2;`
public Builder setPhaseBytes(com.google.protobuf.ByteString value)
设置设置阶段字节。
`string phase = 2;`
public int getMessageCount()
获取消息数量。
`int32 message_count = 3;`
public Builder setMessageCount(int value)
设置设置消息数量。
`int32 message_count = 3;`
public Builder clearMessageCount()
清空消息数量。
`int32 message_count = 3;`
public long getPromptTokens()
获取提示词令牌数。
`int64 prompt_tokens = 4;`
public Builder setPromptTokens(long value)
设置设置提示词令牌数。
`int64 prompt_tokens = 4;`
public Builder clearPromptTokens()
清空提示词令牌数。
`int64 prompt_tokens = 4;`
public long getCompletionTokens()
获取补全令牌数。
`int64 completion_tokens = 5;`
public Builder setCompletionTokens(long value)
设置设置补全令牌数。
`int64 completion_tokens = 5;`
public Builder clearCompletionTokens()
清空补全令牌数。
`int64 completion_tokens = 5;`
public double getContextPressure()
获取 `getContextPressure`。
`double context_pressure = 6;`
public Builder setContextPressure(double value)
设置该配置项。
`double context_pressure = 6;`
public Builder clearContextPressure()
清空 `clearContextPressure`。
`double context_pressure = 6;`
public java.lang.String getFramework()
获取 `getFramework`。
``` Framework identification (Level 1 extension, see sdk-design.md §3.1)
public com.google.protobuf.ByteString getFrameworkBytes()
获取 `getFrameworkBytes`。
``` Framework identification (Level 1 extension, see sdk-design.md §3.1)
public Builder setFramework(java.lang.String value)
设置该配置项。
``` Framework identification (Level 1 extension, see sdk-design.md §3.1)
public Builder clearFramework()
清空 `clearFramework`。
``` Framework identification (Level 1 extension, see sdk-design.md §3.1)
public Builder setFrameworkBytes(com.google.protobuf.ByteString value)
设置该配置项。
``` Framework identification (Level 1 extension, see sdk-design.md §3.1)
public java.lang.String getFrameworkVersion()
获取 `getFrameworkVersion`。
`string framework_version = 11;`
public com.google.protobuf.ByteString getFrameworkVersionBytes()
获取 `getFrameworkVersionBytes`。
`string framework_version = 11;`
public Builder setFrameworkVersion(java.lang.String value)
设置该配置项。
`string framework_version = 11;`
public Builder clearFrameworkVersion()
清空 `clearFrameworkVersion`。
`string framework_version = 11;`
public Builder setFrameworkVersionBytes(com.google.protobuf.ByteString value)
设置该配置项。
`string framework_version = 11;`
public java.lang.String getContextHash()
获取 `getContextHash`。
``` Context change detection
public com.google.protobuf.ByteString getContextHashBytes()
获取 `getContextHashBytes`。
``` Context change detection
public Builder setContextHash(java.lang.String value)
设置该配置项。
``` Context change detection
public Builder clearContextHash()
清空 `clearContextHash`。
``` Context change detection
public Builder setContextHashBytes(com.google.protobuf.ByteString value)
设置该配置项。
``` Context change detection
public boolean getIsCompacted()
获取 `getIsCompacted`。
``` whether the context has been compacted
public Builder setIsCompacted(boolean value)
设置该配置项。
``` whether the context has been compacted
public Builder clearIsCompacted()
清空 `clearIsCompacted`。
``` whether the context has been compacted
public int getEffectiveMessageCount()
获取 `getEffectiveMessageCount`。
``` effective messages after compaction (!= message_count)
public Builder setEffectiveMessageCount(int value)
设置该配置项。
``` effective messages after compaction (!= message_count)
public Builder clearEffectiveMessageCount()
清空 `clearEffectiveMessageCount`。
``` effective messages after compaction (!= message_count)

方法详情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/SessionSnapshot.java:609–612

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/SessionSnapshot.java:614–620

clear

public Builder clear()

清空或重置内部状态。

Clears or resets internal state.

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

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/SessionSnapshot.java:650–654

getDefaultInstanceForType

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

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.SessionSnapshot
返回io.agentscope.controlplane.协议.SessionSnapshot。Returns io agentscope controlplane proto session snapshot.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:656–659

build

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

构建并返回最终实例。

Creates and returns an instance.

返回Returns io.agentscope.controlplane.proto.SessionSnapshot
返回io.agentscope.controlplane.协议.SessionSnapshot。Returns io agentscope controlplane proto session snapshot.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:661–668

buildPartial

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

构建 buildPartial。

Builds the partial.

返回Returns io.agentscope.controlplane.proto.SessionSnapshot
返回io.agentscope.controlplane.协议.SessionSnapshot。Returns io agentscope controlplane proto session snapshot.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:670–676

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/SessionSnapshot.java:715–723

mergeFrom

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

设置该配置项。

Performs the merge from operation.

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

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

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

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/SessionSnapshot.java:780–865

getSessionId

public java.lang.String getSessionId()

获取会话标识。

string session_id = 1;

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

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/SessionSnapshot.java:889–901

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/SessionSnapshot.java:907–914

clearSessionId

public Builder clearSessionId()

清空会话标识。

string session_id = 1;

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

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/SessionSnapshot.java:930–938

getPhase

public java.lang.String getPhase()

获取阶段。

string phase = 2;

返回Returns java.lang.String
阶段。The phase.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:945–956

getPhaseBytes

public com.google.protobuf.ByteString getPhaseBytes()

获取阶段字节。

string phase = 2;

返回Returns com.google.protobuf.ByteString
字节用于阶段。The bytes for phase.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:961–973

setPhase

public Builder setPhase(java.lang.String value)

设置设置阶段。

string phase = 2;

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

clearPhase

public Builder clearPhase()

清空阶段。

string phase = 2;

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

setPhaseBytes

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

设置设置阶段字节。

string phase = 2;

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

getMessageCount

public int getMessageCount()

获取消息数量。

int32 message_count = 3;

返回Returns int
返回数值结果。The messageCount.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1017–1020

setMessageCount

public Builder setMessageCount(int value)

设置设置消息数量。

int32 message_count = 3;

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

clearMessageCount

public Builder clearMessageCount()

清空消息数量。

int32 message_count = 3;

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

getPromptTokens

public long getPromptTokens()

获取提示词令牌数。

int64 prompt_tokens = 4;

返回Returns long
返回数值结果。The promptTokens.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1049–1052

setPromptTokens

public Builder setPromptTokens(long value)

设置设置提示词令牌数。

int64 prompt_tokens = 4;

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

clearPromptTokens

public Builder clearPromptTokens()

清空提示词令牌数。

int64 prompt_tokens = 4;

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

getCompletionTokens

public long getCompletionTokens()

获取补全令牌数。

int64 completion_tokens = 5;

返回Returns long
返回数值结果。The completionTokens.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1081–1084

setCompletionTokens

public Builder setCompletionTokens(long value)

设置设置补全令牌数。

int64 completion_tokens = 5;

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

clearCompletionTokens

public Builder clearCompletionTokens()

清空补全令牌数。

int64 completion_tokens = 5;

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

getContextPressure

public double getContextPressure()

获取 getContextPressure。

double context_pressure = 6;

返回Returns double
返回数值结果。The contextPressure.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1113–1116

setContextPressure

public Builder setContextPressure(double value)

设置该配置项。

double context_pressure = 6;

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

clearContextPressure

public Builder clearContextPressure()

清空 clearContextPressure。

double context_pressure = 6;

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

getFramework

public java.lang.String getFramework()

获取 getFramework。

Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;

返回Returns java.lang.String
返回java.lang.String。The framework.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1149–1160

getFrameworkBytes

public com.google.protobuf.ByteString getFrameworkBytes()

获取 getFrameworkBytes。

Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes for framework.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1169–1181

setFramework

public Builder setFramework(java.lang.String value)

设置该配置项。

Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;

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

clearFramework

public Builder clearFramework()

清空 clearFramework。

Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;

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

setFrameworkBytes

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

设置该配置项。

Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;

参数Parameters
名称Name类型Type说明Description
valuecom.google.protobuf.ByteString值(类型 `com.google.protobuf.ByteString`)。The bytes for framework to set.
返回Returns Builder
返回当前实例,以支持链式调用。This builder for chaining.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1222–1230

getFrameworkVersion

public java.lang.String getFrameworkVersion()

获取 getFrameworkVersion。

string framework_version = 11;

返回Returns java.lang.String
返回java.lang.String。The frameworkVersion.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1237–1248

getFrameworkVersionBytes

public com.google.protobuf.ByteString getFrameworkVersionBytes()

获取 getFrameworkVersionBytes。

string framework_version = 11;

返回Returns com.google.protobuf.ByteString
字节用于 frameworkVersion。The bytes for frameworkVersion.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1253–1265

setFrameworkVersion

public Builder setFrameworkVersion(java.lang.String value)

设置该配置项。

string framework_version = 11;

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

clearFrameworkVersion

public Builder clearFrameworkVersion()

清空 clearFrameworkVersion。

string framework_version = 11;

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

setFrameworkVersionBytes

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

设置该配置项。

string framework_version = 11;

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

getContextHash

public java.lang.String getContextHash()

获取 getContextHash。

Context change detection string context_hash = 12;

返回Returns java.lang.String
返回java.lang.String。The contextHash.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1313–1324

getContextHashBytes

public com.google.protobuf.ByteString getContextHashBytes()

获取 getContextHashBytes。

Context change detection string context_hash = 12;

返回Returns com.google.protobuf.ByteString
字节用于 contextHash。The bytes for contextHash.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1333–1345

setContextHash

public Builder setContextHash(java.lang.String value)

设置该配置项。

Context change detection string context_hash = 12;

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

clearContextHash

public Builder clearContextHash()

清空 clearContextHash。

Context change detection string context_hash = 12;

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

setContextHashBytes

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

设置该配置项。

Context change detection string context_hash = 12;

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

getIsCompacted

public boolean getIsCompacted()

获取 getIsCompacted。

whether the context has been compacted bool is_compacted = 13;

返回Returns boolean
返回布尔值,表示判断结果。The isCompacted.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1405–1408

setIsCompacted

public Builder setIsCompacted(boolean value)

设置该配置项。

whether the context has been compacted bool is_compacted = 13;

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

clearIsCompacted

public Builder clearIsCompacted()

清空 clearIsCompacted。

whether the context has been compacted bool is_compacted = 13;

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

getEffectiveMessageCount

public int getEffectiveMessageCount()

获取 getEffectiveMessageCount。

effective messages after compaction (!= message_count) int32 effective_message_count = 14;

返回Returns int
返回数值结果。The effectiveMessageCount.
源码Source io/agentscope/controlplane/proto/SessionSnapshot.java:1449–1452

setEffectiveMessageCount

public Builder setEffectiveMessageCount(int value)

设置该配置项。

effective messages after compaction (!= message_count) int32 effective_message_count = 14;

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

clearEffectiveMessageCount

public Builder clearEffectiveMessageCount()

清空 clearEffectiveMessageCount。

effective messages after compaction (!= message_count) int32 effective_message_count = 14;

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