AS AgentScopeAPI 手册 / API Reference

SessionSnapshotOrBuilder

public interface SessionSnapshotOrBuilder extends com.google.protobuf.MessageOrBuilder
源码Source 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;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.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/aistio/proto/SessionSnapshotOrBuilder.java:21–22

getPhase

public java.lang.String getPhase()

获取阶段。

string phase = 2;

返回Returns java.lang.String
阶段。The phase.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:28

getPhaseBytes

public com.google.protobuf.ByteString getPhaseBytes()

获取阶段字节。

string phase = 2;

返回Returns com.google.protobuf.ByteString
字节用于阶段。The bytes for phase.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:33–34

getMessageCount

public int getMessageCount()

获取消息数量。

int32 message_count = 3;

返回Returns int
返回数值结果。The messageCount.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:40

getPromptTokens

public long getPromptTokens()

获取提示词令牌数。

int64 prompt_tokens = 4;

返回Returns long
返回数值结果。The promptTokens.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:46

getCompletionTokens

public long getCompletionTokens()

获取补全令牌数。

int64 completion_tokens = 5;

返回Returns long
返回数值结果。The completionTokens.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:52

getContextPressure

public double getContextPressure()

获取 getContextPressure。

double context_pressure = 6;

返回Returns double
返回数值结果。The contextPressure.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:58

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/aistio/proto/SessionSnapshotOrBuilder.java:68

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/aistio/proto/SessionSnapshotOrBuilder.java:77–78

getFrameworkVersion

public java.lang.String getFrameworkVersion()

获取 getFrameworkVersion。

string framework_version = 11;

返回Returns java.lang.String
返回java.lang.String。The frameworkVersion.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:84

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/aistio/proto/SessionSnapshotOrBuilder.java:89–90

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/aistio/proto/SessionSnapshotOrBuilder.java:100

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/aistio/proto/SessionSnapshotOrBuilder.java:109–110

getIsCompacted

public boolean getIsCompacted()

获取 getIsCompacted。

whether the context has been compacted bool is_compacted = 13;

返回Returns boolean
返回布尔值,表示判断结果。The isCompacted.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:120

getEffectiveMessageCount

public int getEffectiveMessageCount()

获取 getEffectiveMessageCount。

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

返回Returns int
返回数值结果。The effectiveMessageCount.
源码Source io/agentscope/aistio/proto/SessionSnapshotOrBuilder.java:130
基于官方固定版本源码静态生成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.