Package io.agentscope.aistio.proto
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContextReport is the Level-4 effective-context report, pushed on compaction or when context_hash changes (debounced).Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongunix millisecondslongunix millisecondsstring compaction_summary = 8;com.google.protobuf.ByteStringstring compaction_summary = 8;string context_hash = 2;com.google.protobuf.ByteStringstring context_hash = 2;static ContextReportstatic final com.google.protobuf.Descriptors.Descriptorstring framework = 13;com.google.protobuf.ByteStringstring framework = 13;com.google.protobuf.ByteStringframework-private JSON (graph state, session metadata, ...)booleanbool is_compacted = 7;intint32 max_tokens = 12;com.google.protobuf.ByteStringJSON array of {role, content, is_compaction?}intint32 original_message_count = 9;com.google.protobuf.Parser<ContextReport>intstring session_id = 1;com.google.protobuf.ByteStringstring session_id = 1;string system_prompt = 4;com.google.protobuf.ByteStringstring system_prompt = 4;com.google.protobuf.ByteStringgetTools()JSON array of ToolInfointint32 total_tokens = 11;inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ContextReport.Builderstatic ContextReport.BuildernewBuilder(ContextReport prototype) protected ContextReport.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ContextReportparseDelimitedFrom(InputStream input) static ContextReportparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContextReportparseFrom(byte[] data) static ContextReportparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContextReportparseFrom(com.google.protobuf.ByteString data) static ContextReportparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContextReportparseFrom(com.google.protobuf.CodedInputStream input) static ContextReportparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContextReportparseFrom(InputStream input) static ContextReportparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ContextReportparseFrom(ByteBuffer data) static ContextReportparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ContextReport>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSessionId
string session_id = 1;- Specified by:
getSessionIdin interfaceContextReportOrBuilder- Returns:
- The sessionId.
-
getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()string session_id = 1;- Specified by:
getSessionIdBytesin interfaceContextReportOrBuilder- Returns:
- The bytes for sessionId.
-
getContextHash
string context_hash = 2;- Specified by:
getContextHashin interfaceContextReportOrBuilder- Returns:
- The contextHash.
-
getContextHashBytes
public com.google.protobuf.ByteString getContextHashBytes()string context_hash = 2;- Specified by:
getContextHashBytesin interfaceContextReportOrBuilder- Returns:
- The bytes for contextHash.
-
getCapturedAt
public long getCapturedAt()unix milliseconds
int64 captured_at = 3;- Specified by:
getCapturedAtin interfaceContextReportOrBuilder- Returns:
- The capturedAt.
-
getSystemPrompt
string system_prompt = 4;- Specified by:
getSystemPromptin interfaceContextReportOrBuilder- Returns:
- The systemPrompt.
-
getSystemPromptBytes
public com.google.protobuf.ByteString getSystemPromptBytes()string system_prompt = 4;- Specified by:
getSystemPromptBytesin interfaceContextReportOrBuilder- Returns:
- The bytes for systemPrompt.
-
getMessages
public com.google.protobuf.ByteString getMessages()JSON array of {role, content, is_compaction?}bytes messages = 5;- Specified by:
getMessagesin interfaceContextReportOrBuilder- Returns:
- The messages.
-
getTools
public com.google.protobuf.ByteString getTools()JSON array of ToolInfo
bytes tools = 6;- Specified by:
getToolsin interfaceContextReportOrBuilder- Returns:
- The tools.
-
getIsCompacted
public boolean getIsCompacted()bool is_compacted = 7;- Specified by:
getIsCompactedin interfaceContextReportOrBuilder- Returns:
- The isCompacted.
-
getCompactionSummary
string compaction_summary = 8;- Specified by:
getCompactionSummaryin interfaceContextReportOrBuilder- Returns:
- The compactionSummary.
-
getCompactionSummaryBytes
public com.google.protobuf.ByteString getCompactionSummaryBytes()string compaction_summary = 8;- Specified by:
getCompactionSummaryBytesin interfaceContextReportOrBuilder- Returns:
- The bytes for compactionSummary.
-
getOriginalMessageCount
public int getOriginalMessageCount()int32 original_message_count = 9;- Specified by:
getOriginalMessageCountin interfaceContextReportOrBuilder- Returns:
- The originalMessageCount.
-
getCompactedAt
public long getCompactedAt()unix milliseconds
int64 compacted_at = 10;- Specified by:
getCompactedAtin interfaceContextReportOrBuilder- Returns:
- The compactedAt.
-
getTotalTokens
public int getTotalTokens()int32 total_tokens = 11;- Specified by:
getTotalTokensin interfaceContextReportOrBuilder- Returns:
- The totalTokens.
-
getMaxTokens
public int getMaxTokens()int32 max_tokens = 12;- Specified by:
getMaxTokensin interfaceContextReportOrBuilder- Returns:
- The maxTokens.
-
getFramework
string framework = 13;- Specified by:
getFrameworkin interfaceContextReportOrBuilder- Returns:
- The framework.
-
getFrameworkBytes
public com.google.protobuf.ByteString getFrameworkBytes()string framework = 13;- Specified by:
getFrameworkBytesin interfaceContextReportOrBuilder- 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:
getFrameworkStatein interfaceContextReportOrBuilder- Returns:
- The frameworkState.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static ContextReport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ContextReport.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-