Package io.agentscope.aistio.proto
Interface SessionSnapshotOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SessionSnapshot,SessionSnapshot.Builder
public interface SessionSnapshotOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongint64 completion_tokens = 5;Context change detectioncom.google.protobuf.ByteStringContext change detectiondoubledouble context_pressure = 6;inteffective messages after compaction (!Framework identification (Level 1 extension, see sdk-design.md §3.1)com.google.protobuf.ByteStringFramework identification (Level 1 extension, see sdk-design.md §3.1)string framework_version = 11;com.google.protobuf.ByteStringstring framework_version = 11;booleanwhether the context has been compactedintint32 message_count = 3;getPhase()string phase = 2;com.google.protobuf.ByteStringstring phase = 2;longint64 prompt_tokens = 4;string session_id = 1;com.google.protobuf.ByteStringstring session_id = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSessionId
String getSessionId()string session_id = 1;- Returns:
- The sessionId.
-
getSessionIdBytes
com.google.protobuf.ByteString getSessionIdBytes()string session_id = 1;- Returns:
- The bytes for sessionId.
-
getPhase
String getPhase()string phase = 2;- Returns:
- The phase.
-
getPhaseBytes
com.google.protobuf.ByteString getPhaseBytes()string phase = 2;- Returns:
- The bytes for phase.
-
getMessageCount
int getMessageCount()int32 message_count = 3;- Returns:
- The messageCount.
-
getPromptTokens
long getPromptTokens()int64 prompt_tokens = 4;- Returns:
- The promptTokens.
-
getCompletionTokens
long getCompletionTokens()int64 completion_tokens = 5;- Returns:
- The completionTokens.
-
getContextPressure
double getContextPressure()double context_pressure = 6;- Returns:
- The contextPressure.
-
getFramework
String getFramework()Framework identification (Level 1 extension, see sdk-design.md §3.1)
string framework = 10;- Returns:
- The framework.
-
getFrameworkBytes
com.google.protobuf.ByteString getFrameworkBytes()Framework identification (Level 1 extension, see sdk-design.md §3.1)
string framework = 10;- Returns:
- The bytes for framework.
-
getFrameworkVersion
String getFrameworkVersion()string framework_version = 11;- Returns:
- The frameworkVersion.
-
getFrameworkVersionBytes
com.google.protobuf.ByteString getFrameworkVersionBytes()string framework_version = 11;- Returns:
- The bytes for frameworkVersion.
-
getContextHash
String getContextHash()Context change detection
string context_hash = 12;- Returns:
- The contextHash.
-
getContextHashBytes
com.google.protobuf.ByteString getContextHashBytes()Context change detection
string context_hash = 12;- Returns:
- The bytes for contextHash.
-
getIsCompacted
boolean getIsCompacted()whether the context has been compacted
bool is_compacted = 13;- Returns:
- The isCompacted.
-
getEffectiveMessageCount
int getEffectiveMessageCount()effective messages after compaction (!= message_count)
int32 effective_message_count = 14;- Returns:
- The effectiveMessageCount.
-