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 Type
    Method
    Description
    long
    int64 completion_tokens = 5;
    Context change detection
    com.google.protobuf.ByteString
    Context change detection
    double
    double context_pressure = 6;
    int
    effective messages after compaction (!
    Framework identification (Level 1 extension, see sdk-design.md §3.1)
    com.google.protobuf.ByteString
    Framework identification (Level 1 extension, see sdk-design.md §3.1)
    string framework_version = 11;
    com.google.protobuf.ByteString
    string framework_version = 11;
    boolean
    whether the context has been compacted
    int
    int32 message_count = 3;
    string phase = 2;
    com.google.protobuf.ByteString
    string phase = 2;
    long
    int64 prompt_tokens = 4;
    string session_id = 1;
    com.google.protobuf.ByteString
    string session_id = 1;

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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.