Class ContextReport

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

public final class ContextReport extends com.google.protobuf.GeneratedMessage implements ContextReportOrBuilder
 ContextReport is the Level-4 effective-context report, pushed on compaction
 or when context_hash changes (debounced). Written into context_snapshots.
 
Protobuf type agentscope.protocol.v1.ContextReport
See Also:
  • Field Details

    • SESSION_ID_FIELD_NUMBER

      public static final int SESSION_ID_FIELD_NUMBER
      See Also:
    • CONTEXT_HASH_FIELD_NUMBER

      public static final int CONTEXT_HASH_FIELD_NUMBER
      See Also:
    • CAPTURED_AT_FIELD_NUMBER

      public static final int CAPTURED_AT_FIELD_NUMBER
      See Also:
    • SYSTEM_PROMPT_FIELD_NUMBER

      public static final int SYSTEM_PROMPT_FIELD_NUMBER
      See Also:
    • MESSAGES_FIELD_NUMBER

      public static final int MESSAGES_FIELD_NUMBER
      See Also:
    • TOOLS_FIELD_NUMBER

      public static final int TOOLS_FIELD_NUMBER
      See Also:
    • IS_COMPACTED_FIELD_NUMBER

      public static final int IS_COMPACTED_FIELD_NUMBER
      See Also:
    • COMPACTION_SUMMARY_FIELD_NUMBER

      public static final int COMPACTION_SUMMARY_FIELD_NUMBER
      See Also:
    • ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER

      public static final int ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER
      See Also:
    • COMPACTED_AT_FIELD_NUMBER

      public static final int COMPACTED_AT_FIELD_NUMBER
      See Also:
    • TOTAL_TOKENS_FIELD_NUMBER

      public static final int TOTAL_TOKENS_FIELD_NUMBER
      See Also:
    • MAX_TOKENS_FIELD_NUMBER

      public static final int MAX_TOKENS_FIELD_NUMBER
      See Also:
    • FRAMEWORK_FIELD_NUMBER

      public static final int FRAMEWORK_FIELD_NUMBER
      See Also:
    • FRAMEWORK_STATE_FIELD_NUMBER

      public static final int FRAMEWORK_STATE_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 ContextReportOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

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

      public String getContextHash()
      string context_hash = 2;
      Specified by:
      getContextHash in interface ContextReportOrBuilder
      Returns:
      The contextHash.
    • getContextHashBytes

      public com.google.protobuf.ByteString getContextHashBytes()
      string context_hash = 2;
      Specified by:
      getContextHashBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for contextHash.
    • getCapturedAt

      public long getCapturedAt()
       unix milliseconds
       
      int64 captured_at = 3;
      Specified by:
      getCapturedAt in interface ContextReportOrBuilder
      Returns:
      The capturedAt.
    • getSystemPrompt

      public String getSystemPrompt()
      string system_prompt = 4;
      Specified by:
      getSystemPrompt in interface ContextReportOrBuilder
      Returns:
      The systemPrompt.
    • getSystemPromptBytes

      public com.google.protobuf.ByteString getSystemPromptBytes()
      string system_prompt = 4;
      Specified by:
      getSystemPromptBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for systemPrompt.
    • getMessages

      public com.google.protobuf.ByteString getMessages()
       JSON array of {role, content, is_compaction?}
       
      bytes messages = 5;
      Specified by:
      getMessages in interface ContextReportOrBuilder
      Returns:
      The messages.
    • getTools

      public com.google.protobuf.ByteString getTools()
       JSON array of ToolInfo
       
      bytes tools = 6;
      Specified by:
      getTools in interface ContextReportOrBuilder
      Returns:
      The tools.
    • getIsCompacted

      public boolean getIsCompacted()
      bool is_compacted = 7;
      Specified by:
      getIsCompacted in interface ContextReportOrBuilder
      Returns:
      The isCompacted.
    • getCompactionSummary

      public String getCompactionSummary()
      string compaction_summary = 8;
      Specified by:
      getCompactionSummary in interface ContextReportOrBuilder
      Returns:
      The compactionSummary.
    • getCompactionSummaryBytes

      public com.google.protobuf.ByteString getCompactionSummaryBytes()
      string compaction_summary = 8;
      Specified by:
      getCompactionSummaryBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for compactionSummary.
    • getOriginalMessageCount

      public int getOriginalMessageCount()
      int32 original_message_count = 9;
      Specified by:
      getOriginalMessageCount in interface ContextReportOrBuilder
      Returns:
      The originalMessageCount.
    • getCompactedAt

      public long getCompactedAt()
       unix milliseconds
       
      int64 compacted_at = 10;
      Specified by:
      getCompactedAt in interface ContextReportOrBuilder
      Returns:
      The compactedAt.
    • getTotalTokens

      public int getTotalTokens()
      int32 total_tokens = 11;
      Specified by:
      getTotalTokens in interface ContextReportOrBuilder
      Returns:
      The totalTokens.
    • getMaxTokens

      public int getMaxTokens()
      int32 max_tokens = 12;
      Specified by:
      getMaxTokens in interface ContextReportOrBuilder
      Returns:
      The maxTokens.
    • getFramework

      public String getFramework()
      string framework = 13;
      Specified by:
      getFramework in interface ContextReportOrBuilder
      Returns:
      The framework.
    • getFrameworkBytes

      public com.google.protobuf.ByteString getFrameworkBytes()
      string framework = 13;
      Specified by:
      getFrameworkBytes in interface ContextReportOrBuilder
      Returns:
      The bytes for framework.
    • getFrameworkState

      public com.google.protobuf.ByteString getFrameworkState()
       framework-private JSON (graph state, session metadata, ...)
       
      bytes framework_state = 14;
      Specified by:
      getFrameworkState in interface ContextReportOrBuilder
      Returns:
      The frameworkState.
    • 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 ContextReport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ContextReport.Builder newBuilder()
    • newBuilder

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

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

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

      public static ContextReport getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ContextReport> 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 ContextReport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder