SessionSnapshotOrBuilder
public interface SessionSnapshotOrBuilder extends com.google.protobuf.MessageOrBuilder
io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:8–131定义会话快照或构建器契约的接口。位于 io.agentscope.aistio.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getSessionId、getSessionIdBytes、getPhase、getPhaseBytes、getMessageCount、getPromptTokens。
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 java.lang.String getPhase() | 获取阶段。 `string phase = 2;` |
public com.google.protobuf.ByteString getPhaseBytes() | 获取阶段字节。 `string phase = 2;` |
public int getMessageCount() | 获取消息数量。 `int32 message_count = 3;` |
public long getPromptTokens() | 获取提示词令牌数。 `int64 prompt_tokens = 4;` |
public long getCompletionTokens() | 获取补全令牌数。 `int64 completion_tokens = 5;` |
public double getContextPressure() | 获取 `getContextPressure`。 `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 java.lang.String getFrameworkVersion() | 获取 `getFrameworkVersion`。 `string framework_version = 11;` |
public com.google.protobuf.ByteString getFrameworkVersionBytes() | 获取 `getFrameworkVersionBytes`。 `string framework_version = 11;` |
public java.lang.String getContextHash() | 获取 `getContextHash`。 ```
Context change detection |
public com.google.protobuf.ByteString getContextHashBytes() | 获取 `getContextHashBytes`。 ```
Context change detection |
public boolean getIsCompacted() | 获取 `getIsCompacted`。 ```
whether the context has been compacted |
public int getEffectiveMessageCount() | 获取 `getEffectiveMessageCount`。 ```
effective messages after compaction (!= message_count) |
方法详情Method Detail
getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:16getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:21–22getPhase
public java.lang.String getPhase()
获取阶段。
string phase = 2;
java.lang.Stringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:28getPhaseBytes
public com.google.protobuf.ByteString getPhaseBytes()
获取阶段字节。
string phase = 2;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:33–34getMessageCount
public int getMessageCount()
获取消息数量。
int32 message_count = 3;
intio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:40getPromptTokens
public long getPromptTokens()
获取提示词令牌数。
int64 prompt_tokens = 4;
longio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:46getCompletionTokens
public long getCompletionTokens()
获取补全令牌数。
int64 completion_tokens = 5;
longio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:52getContextPressure
public double getContextPressure()
获取 getContextPressure。
double context_pressure = 6;
doubleio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:58getFramework
public java.lang.String getFramework()
获取 getFramework。
Framework identification (Level 1 extension, see sdk-design.md §3.1) string framework = 10;
java.lang.Stringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:68getFrameworkBytes
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/aistio/proto/SessionSnapshotOrBuilder.java:77–78getFrameworkVersion
public java.lang.String getFrameworkVersion()
获取 getFrameworkVersion。
string framework_version = 11;
java.lang.Stringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:84getFrameworkVersionBytes
public com.google.protobuf.ByteString getFrameworkVersionBytes()
获取 getFrameworkVersionBytes。
string framework_version = 11;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:89–90getContextHash
public java.lang.String getContextHash()
获取 getContextHash。
Context change detection string context_hash = 12;
java.lang.Stringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:100getContextHashBytes
public com.google.protobuf.ByteString getContextHashBytes()
获取 getContextHashBytes。
Context change detection string context_hash = 12;
com.google.protobuf.ByteStringio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:109–110getIsCompacted
public boolean getIsCompacted()
获取 getIsCompacted。
whether the context has been compacted bool is_compacted = 13;
booleanio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:120getEffectiveMessageCount
public int getEffectiveMessageCount()
获取 getEffectiveMessageCount。
effective messages after compaction (!= message_count) int32 effective_message_count = 14;
intio/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:130