Class SessionSnapshot

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.agentscope.aistio.proto.SessionSnapshot
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SessionSnapshotOrBuilder, Serializable

public final class SessionSnapshot extends com.google.protobuf.GeneratedMessage implements SessionSnapshotOrBuilder
Protobuf type agentscope.protocol.v1.SessionSnapshot
See Also:
  • Field Details

    • SESSION_ID_FIELD_NUMBER

      public static final int SESSION_ID_FIELD_NUMBER
      See Also:
    • PHASE_FIELD_NUMBER

      public static final int PHASE_FIELD_NUMBER
      See Also:
    • MESSAGE_COUNT_FIELD_NUMBER

      public static final int MESSAGE_COUNT_FIELD_NUMBER
      See Also:
    • PROMPT_TOKENS_FIELD_NUMBER

      public static final int PROMPT_TOKENS_FIELD_NUMBER
      See Also:
    • COMPLETION_TOKENS_FIELD_NUMBER

      public static final int COMPLETION_TOKENS_FIELD_NUMBER
      See Also:
    • CONTEXT_PRESSURE_FIELD_NUMBER

      public static final int CONTEXT_PRESSURE_FIELD_NUMBER
      See Also:
    • FRAMEWORK_FIELD_NUMBER

      public static final int FRAMEWORK_FIELD_NUMBER
      See Also:
    • FRAMEWORK_VERSION_FIELD_NUMBER

      public static final int FRAMEWORK_VERSION_FIELD_NUMBER
      See Also:
    • CONTEXT_HASH_FIELD_NUMBER

      public static final int CONTEXT_HASH_FIELD_NUMBER
      See Also:
    • IS_COMPACTED_FIELD_NUMBER

      public static final int IS_COMPACTED_FIELD_NUMBER
      See Also:
    • EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER

      public static final int EFFECTIVE_MESSAGE_COUNT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSessionId

      public String getSessionId()
      string session_id = 1;
      Specified by:
      getSessionId in interface SessionSnapshotOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
      string session_id = 1;
      Specified by:
      getSessionIdBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for sessionId.
    • getPhase

      public String getPhase()
      string phase = 2;
      Specified by:
      getPhase in interface SessionSnapshotOrBuilder
      Returns:
      The phase.
    • getPhaseBytes

      public com.google.protobuf.ByteString getPhaseBytes()
      string phase = 2;
      Specified by:
      getPhaseBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for phase.
    • getMessageCount

      public int getMessageCount()
      int32 message_count = 3;
      Specified by:
      getMessageCount in interface SessionSnapshotOrBuilder
      Returns:
      The messageCount.
    • getPromptTokens

      public long getPromptTokens()
      int64 prompt_tokens = 4;
      Specified by:
      getPromptTokens in interface SessionSnapshotOrBuilder
      Returns:
      The promptTokens.
    • getCompletionTokens

      public long getCompletionTokens()
      int64 completion_tokens = 5;
      Specified by:
      getCompletionTokens in interface SessionSnapshotOrBuilder
      Returns:
      The completionTokens.
    • getContextPressure

      public double getContextPressure()
      double context_pressure = 6;
      Specified by:
      getContextPressure in interface SessionSnapshotOrBuilder
      Returns:
      The contextPressure.
    • getFramework

      public String getFramework()
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Specified by:
      getFramework in interface SessionSnapshotOrBuilder
      Returns:
      The framework.
    • getFrameworkBytes

      public com.google.protobuf.ByteString getFrameworkBytes()
       Framework identification (Level 1 extension, see sdk-design.md §3.1)
       
      string framework = 10;
      Specified by:
      getFrameworkBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for framework.
    • getFrameworkVersion

      public String getFrameworkVersion()
      string framework_version = 11;
      Specified by:
      getFrameworkVersion in interface SessionSnapshotOrBuilder
      Returns:
      The frameworkVersion.
    • getFrameworkVersionBytes

      public com.google.protobuf.ByteString getFrameworkVersionBytes()
      string framework_version = 11;
      Specified by:
      getFrameworkVersionBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for frameworkVersion.
    • getContextHash

      public String getContextHash()
       Context change detection
       
      string context_hash = 12;
      Specified by:
      getContextHash in interface SessionSnapshotOrBuilder
      Returns:
      The contextHash.
    • getContextHashBytes

      public com.google.protobuf.ByteString getContextHashBytes()
       Context change detection
       
      string context_hash = 12;
      Specified by:
      getContextHashBytes in interface SessionSnapshotOrBuilder
      Returns:
      The bytes for contextHash.
    • getIsCompacted

      public boolean getIsCompacted()
       whether the context has been compacted
       
      bool is_compacted = 13;
      Specified by:
      getIsCompacted in interface SessionSnapshotOrBuilder
      Returns:
      The isCompacted.
    • getEffectiveMessageCount

      public int getEffectiveMessageCount()
       effective messages after compaction (!= message_count)
       
      int32 effective_message_count = 14;
      Specified by:
      getEffectiveMessageCount in interface SessionSnapshotOrBuilder
      Returns:
      The effectiveMessageCount.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SessionSnapshot parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SessionSnapshot parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SessionSnapshot parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SessionSnapshot parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SessionSnapshot parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SessionSnapshot parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SessionSnapshot parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SessionSnapshot.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SessionSnapshot.Builder newBuilder()
    • newBuilder

      public static SessionSnapshot.Builder newBuilder(SessionSnapshot prototype)
    • toBuilder

      public SessionSnapshot.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SessionSnapshot.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SessionSnapshot getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SessionSnapshot> parser()
    • getParserForType

      public com.google.protobuf.Parser<SessionSnapshot> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SessionSnapshot getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder