SessionSnapshot
public final class SessionSnapshot extends com.google.protobuf.GeneratedMessage implements SessionSnapshotOrBuilder
io/agentscope/controlplane/proto/SessionSnapshot.java:11–1533会话快照,承载智能体的部署、调度与服务化运行。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage,实现 SessionSnapshotOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、getSessionId、getSessionIdBytes、getPhase、getPhaseBytes。
Protobuf type agentscope.protocol.v1.SessionSnapshot
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 Protobuf type `agentscope.protocol.v1.SessionSnapshot` |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
SESSION_ID_FIELD_NUMBERstaticfinal | int | 会话标识 FIELD 数量字段。 The SESSION ID FIELD NUMBER field. |
PHASE_FIELD_NUMBERstaticfinal | int | 阶段 FIELD 数量字段。 The PHASE FIELD NUMBER field. |
MESSAGE_COUNT_FIELD_NUMBERstaticfinal | int | 消息数量 FIELD 数量字段。 The MESSAGE COUNT FIELD NUMBER field. |
PROMPT_TOKENS_FIELD_NUMBERstaticfinal | int | 提示词令牌数 FIELD 数量字段。 The PROMPT TOKENS FIELD NUMBER field. |
COMPLETION_TOKENS_FIELD_NUMBERstaticfinal | int | 补全令牌数 FIELD 数量字段。 The COMPLETION TOKENS FIELD NUMBER field. |
CONTEXT_PRESSURE_FIELD_NUMBERstaticfinal | int | 上下文 PRESSURE FIELD 数量字段。 The CONTEXT PRESSURE FIELD NUMBER field. |
FRAMEWORK_FIELD_NUMBERstaticfinal | int | FRAMEWORK FIELD 数量字段。 The FRAMEWORK FIELD NUMBER field. |
FRAMEWORK_VERSION_FIELD_NUMBERstaticfinal | int | FRAMEWORK 版本 FIELD 数量字段。 The FRAMEWORK VERSION FIELD NUMBER field. |
CONTEXT_HASH_FIELD_NUMBERstaticfinal | int | 上下文 HASH FIELD 数量字段。 The CONTEXT HASH FIELD NUMBER field. |
IS_COMPACTED_FIELD_NUMBERstaticfinal | int | 是 COMPACTED FIELD 数量字段。 The IS COMPACTED FIELD NUMBER field. |
EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBERstaticfinal | int | EFFECTIVE 消息数量 FIELD 数量字段。 The EFFECTIVE MESSAGE COUNT FIELD NUMBER field. |
方法摘要Method Summary
字段详情Field Detail
SESSION_ID_FIELD_NUMBER
public static final int SESSION_ID_FIELD_NUMBER
会话标识 FIELD 数量字段。声明为 public static final int SESSION_ID_FIELD_NUMBER。
The SESSION ID FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:50PHASE_FIELD_NUMBER
public static final int PHASE_FIELD_NUMBER
阶段 FIELD 数量字段。声明为 public static final int PHASE_FIELD_NUMBER。
The PHASE FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:89MESSAGE_COUNT_FIELD_NUMBER
public static final int MESSAGE_COUNT_FIELD_NUMBER
消息数量 FIELD 数量字段。声明为 public static final int MESSAGE_COUNT_FIELD_NUMBER。
The MESSAGE COUNT FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:128PROMPT_TOKENS_FIELD_NUMBER
public static final int PROMPT_TOKENS_FIELD_NUMBER
提示词令牌数 FIELD 数量字段。声明为 public static final int PROMPT_TOKENS_FIELD_NUMBER。
The PROMPT TOKENS FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:139COMPLETION_TOKENS_FIELD_NUMBER
public static final int COMPLETION_TOKENS_FIELD_NUMBER
补全令牌数 FIELD 数量字段。声明为 public static final int COMPLETION_TOKENS_FIELD_NUMBER。
The COMPLETION TOKENS FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:150CONTEXT_PRESSURE_FIELD_NUMBER
public static final int CONTEXT_PRESSURE_FIELD_NUMBER
上下文 PRESSURE FIELD 数量字段。声明为 public static final int CONTEXT_PRESSURE_FIELD_NUMBER。
The CONTEXT PRESSURE FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:161FRAMEWORK_FIELD_NUMBER
public static final int FRAMEWORK_FIELD_NUMBER
FRAMEWORK FIELD 数量字段。声明为 public static final int FRAMEWORK_FIELD_NUMBER。
The FRAMEWORK FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:172FRAMEWORK_VERSION_FIELD_NUMBER
public static final int FRAMEWORK_VERSION_FIELD_NUMBER
FRAMEWORK 版本 FIELD 数量字段。声明为 public static final int FRAMEWORK_VERSION_FIELD_NUMBER。
The FRAMEWORK VERSION FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:219CONTEXT_HASH_FIELD_NUMBER
public static final int CONTEXT_HASH_FIELD_NUMBER
上下文 HASH FIELD 数量字段。声明为 public static final int CONTEXT_HASH_FIELD_NUMBER。
The CONTEXT HASH FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:258IS_COMPACTED_FIELD_NUMBER
public static final int IS_COMPACTED_FIELD_NUMBER
是 COMPACTED FIELD 数量字段。声明为 public static final int IS_COMPACTED_FIELD_NUMBER。
The IS COMPACTED FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:305EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER
public static final int EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER
EFFECTIVE 消息数量 FIELD 数量字段。声明为 public static final int EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER。
The EFFECTIVE MESSAGE COUNT FIELD NUMBER field.
io/agentscope/controlplane/proto/SessionSnapshot.java:320方法详情Method Detail
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
获取描述符。
Returns the descriptor.
com.google.protobuf.Descriptors.Descriptorio/agentscope/controlplane/proto/SessionSnapshot.java:37–40internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 internalGetFieldAccessorTable 结果。
Returns the internal get field accessor table.
com.google.protobuf.GeneratedMessage.FieldAccessorTableio/agentscope/controlplane/proto/SessionSnapshot.java:42–48getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/SessionSnapshot.java:57–69getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionSnapshot.java:74–87getPhase
public java.lang.String getPhase()
获取阶段。
string phase = 2;
java.lang.Stringio/agentscope/controlplane/proto/SessionSnapshot.java:96–108getPhaseBytes
public com.google.protobuf.ByteString getPhaseBytes()
获取阶段字节。
string phase = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionSnapshot.java:113–126getMessageCount
public int getMessageCount()
获取消息数量。
int32 message_count = 3;
intio/agentscope/controlplane/proto/SessionSnapshot.java:134–137getPromptTokens
public long getPromptTokens()
获取提示词令牌数。
int64 prompt_tokens = 4;
longio/agentscope/controlplane/proto/SessionSnapshot.java:145–148getCompletionTokens
public long getCompletionTokens()
获取补全令牌数。
int64 completion_tokens = 5;
longio/agentscope/controlplane/proto/SessionSnapshot.java:156–159getContextPressure
public double getContextPressure()
获取 getContextPressure。
double context_pressure = 6;
doubleio/agentscope/controlplane/proto/SessionSnapshot.java:167–170getFramework
public java.lang.String getFramework()
获取 getFramework。
Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;
java.lang.Stringio/agentscope/controlplane/proto/SessionSnapshot.java:183–195getFrameworkBytes
public com.google.protobuf.ByteString getFrameworkBytes()
获取 getFrameworkBytes。
Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionSnapshot.java:204–217getFrameworkVersion
public java.lang.String getFrameworkVersion()
获取 getFrameworkVersion。
string framework_version = 11;
java.lang.Stringio/agentscope/controlplane/proto/SessionSnapshot.java:226–238getFrameworkVersionBytes
public com.google.protobuf.ByteString getFrameworkVersionBytes()
获取 getFrameworkVersionBytes。
string framework_version = 11;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionSnapshot.java:243–256getContextHash
public java.lang.String getContextHash()
获取 getContextHash。
Context change detection string context_hash = 12;
java.lang.Stringio/agentscope/controlplane/proto/SessionSnapshot.java:269–281getContextHashBytes
public com.google.protobuf.ByteString getContextHashBytes()
获取 getContextHashBytes。
Context change detection string context_hash = 12;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/SessionSnapshot.java:290–303getIsCompacted
public boolean getIsCompacted()
获取 getIsCompacted。
whether the context has been compacted bool is_compacted = 13;
booleanio/agentscope/controlplane/proto/SessionSnapshot.java:315–318getEffectiveMessageCount
public int getEffectiveMessageCount()
获取 getEffectiveMessageCount。
effective messages after compaction (!= message_count) int32 effective_message_count = 14;
intio/agentscope/controlplane/proto/SessionSnapshot.java:330–333isInitialized
public final boolean isInitialized()
判断是否已初始化。
Returns whether the initialized.
booleanio/agentscope/controlplane/proto/SessionSnapshot.java:336–344writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
设置写入到。
Performs the write to operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
output | com.google.protobuf.CodedOutputStream | 输出(类型 `com.google.protobuf.CodedOutputStream`)。The output. |
java.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:346–383getSerializedSize
public int getSerializedSize()
获取 getSerializedSize。
Returns the serialized size.
intio/agentscope/controlplane/proto/SessionSnapshot.java:385–433equals
public boolean equals(java.lang.Object obj)
设置该参数。
Performs the equals operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
obj | java.lang.Object | obj(类型 `java.lang.Object`)。The obj. |
booleanio/agentscope/controlplane/proto/SessionSnapshot.java:435–470hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
intio/agentscope/controlplane/proto/SessionSnapshot.java:472–508parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | java.nio.ByteBuffer | 数据(类型 `java.nio.ByteBuffer`)。The data. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:510–514parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | java.nio.ByteBuffer | 数据(类型 `java.nio.ByteBuffer`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:515–520parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | com.google.protobuf.ByteString | 数据(类型 `com.google.protobuf.ByteString`)。The data. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:521–525parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | com.google.protobuf.ByteString | 数据(类型 `com.google.protobuf.ByteString`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:526–531parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | byte[] | 数据(类型 `byte[]`)。The data. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:532–535parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
data | byte[] | 数据(类型 `byte[]`)。The data. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotcom.google.protobuf.InvalidProtocolBufferException可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:536–541parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(java.io.InputStream input) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:542–546parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:547–553parseDelimitedFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
解析 parseDelimitedFrom。
Parses the delimited from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:555–559parseDelimitedFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析 parseDelimitedFrom。
Parses the delimited from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | java.io.InputStream | 输入消息(类型 `java.io.InputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:561–567parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:568–573parseFrom
public static io.agentscope.controlplane.proto.SessionSnapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
解析来自。
Parses the from.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
input | com.google.protobuf.CodedInputStream | 输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input. |
extensionRegistry | com.google.protobuf.ExtensionRegistryLite | 扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry. |
io.agentscope.controlplane.proto.SessionSnapshotjava.io.IOException可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
io/agentscope/controlplane/proto/SessionSnapshot.java:574–580newBuilderForType
public Builder newBuilderForType()
创建构建器用于类型。
Returns the new builder for type.
Builderio/agentscope/controlplane/proto/SessionSnapshot.java:582–583newBuilder
public static Builder newBuilder()
创建构建器。
Returns the new builder.
Builderio/agentscope/controlplane/proto/SessionSnapshot.java:584–586newBuilder
public static Builder newBuilder(io.agentscope.controlplane.proto.SessionSnapshot prototype)
创建构建器。
Performs the new builder operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
prototype | io.agentscope.controlplane.proto.SessionSnapshot | prototype(类型 `io.agentscope.controlplane.proto.SessionSnapshot`)。The prototype. |
Builderio/agentscope/controlplane/proto/SessionSnapshot.java:587–589toBuilder
public Builder toBuilder()
返回到构建器。
Returns the to builder.
Builderio/agentscope/controlplane/proto/SessionSnapshot.java:590–594newBuilderForType
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
创建构建器用于类型。
Performs the new builder for type operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
parent | com.google.protobuf.GeneratedMessage.BuilderParent | 父级(类型 `com.google.protobuf.GeneratedMessage.BuilderParent`)。The parent. |
Builderio/agentscope/controlplane/proto/SessionSnapshot.java:596–601getDefaultInstance
public static io.agentscope.controlplane.proto.SessionSnapshot getDefaultInstance()
获取默认实例。
Returns the default instance.
io.agentscope.controlplane.proto.SessionSnapshotio/agentscope/controlplane/proto/SessionSnapshot.java:1493–1495parser
public static com.google.protobuf.Parser<SessionSnapshot> parser()
返回解析器。
Returns the parser.
com.google.protobuf.Parser<SessionSnapshot>io/agentscope/controlplane/proto/SessionSnapshot.java:1519–1521getParserForType
public com.google.protobuf.Parser<SessionSnapshot> getParserForType()
获取解析器用于类型。
Returns the parser for type.
com.google.protobuf.Parser<SessionSnapshot>io/agentscope/controlplane/proto/SessionSnapshot.java:1523–1526getDefaultInstanceForType
public io.agentscope.controlplane.proto.SessionSnapshot getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.
io.agentscope.controlplane.proto.SessionSnapshotio/agentscope/controlplane/proto/SessionSnapshot.java:1528–1531嵌套类详情Nested Class Detail
Builder
public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.SessionSnapshotOrBuilder构建器,用于构建并配置目标实例。位于 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