AS AgentScopeAPI 手册 / API Reference

ContextReport

public final class ContextReport extends com.google.protobuf.GeneratedMessage implements ContextReportOrBuilder
源码Source io/agentscope/controlplane/proto/ContextReport.java:16–1734

上下文报告,承载智能体的部署、调度与服务化运行。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage,实现 ContextReportOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、getSessionId、getSessionIdBytes、getContextHash、getContextHashBytes。


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

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
``` ContextReport is the Level-4 effective-context report, pushed on compaction or when context_hash changes (debounced).

字段摘要Field Summary

字段Field类型Type说明Description
SESSION_ID_FIELD_NUMBER
staticfinal
int
会话标识 FIELD 数量字段。
The SESSION ID FIELD NUMBER field.
CONTEXT_HASH_FIELD_NUMBER
staticfinal
int
上下文 HASH FIELD 数量字段。
The CONTEXT HASH FIELD NUMBER field.
CAPTURED_AT_FIELD_NUMBER
staticfinal
int
CAPTURED AT FIELD 数量字段。
The CAPTURED AT FIELD NUMBER field.
SYSTEM_PROMPT_FIELD_NUMBER
staticfinal
int
系统提示词 FIELD 数量字段。
The SYSTEM PROMPT FIELD NUMBER field.
MESSAGES_FIELD_NUMBER
staticfinal
int
消息 FIELD 数量字段。
The MESSAGES FIELD NUMBER field.
TOOLS_FIELD_NUMBER
staticfinal
int
工具 FIELD 数量字段。
The TOOLS FIELD NUMBER field.
IS_COMPACTED_FIELD_NUMBER
staticfinal
int
是 COMPACTED FIELD 数量字段。
The IS COMPACTED FIELD NUMBER field.
COMPACTION_SUMMARY_FIELD_NUMBER
staticfinal
int
压缩摘要 FIELD 数量字段。
The COMPACTION SUMMARY FIELD NUMBER field.
ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER
staticfinal
int
ORIGINAL 消息数量 FIELD 数量字段。
The ORIGINAL MESSAGE COUNT FIELD NUMBER field.
COMPACTED_AT_FIELD_NUMBER
staticfinal
int
COMPACTED AT FIELD 数量字段。
The COMPACTED AT FIELD NUMBER field.
TOTAL_TOKENS_FIELD_NUMBER
staticfinal
int
总数令牌数 FIELD 数量字段。
The TOTAL TOKENS FIELD NUMBER field.
MAX_TOKENS_FIELD_NUMBER
staticfinal
int
最大令牌数 FIELD 数量字段。
The MAX TOKENS FIELD NUMBER field.
FRAMEWORK_FIELD_NUMBER
staticfinal
int
FRAMEWORK FIELD 数量字段。
The FRAMEWORK FIELD NUMBER field.
FRAMEWORK_STATE_FIELD_NUMBER
staticfinal
int
FRAMEWORK 状态 FIELD 数量字段。
The FRAMEWORK STATE FIELD NUMBER field.

方法摘要Method Summary

方法Method说明Description
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
staticfinal
获取描述符。
Returns the descriptor.
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
返回 `internalGetFieldAccessorTable` 结果。
Returns the internal get field accessor table.
public java.lang.String getSessionId()
获取会话标识。
`string session_id = 1;`
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
`string session_id = 1;`
public java.lang.String getContextHash()
获取 `getContextHash`。
`string context_hash = 2;`
public com.google.protobuf.ByteString getContextHashBytes()
获取 `getContextHashBytes`。
`string context_hash = 2;`
public long getCapturedAt()
获取 `getCapturedAt`。
``` unix milliseconds
public java.lang.String getSystemPrompt()
获取系统提示词。
`string system_prompt = 4;`
public com.google.protobuf.ByteString getSystemPromptBytes()
获取系统提示词字节。
`string system_prompt = 4;`
public com.google.protobuf.ByteString getMessages()
获取消息。
``` JSON array of {role, content, is_compaction?}
public com.google.protobuf.ByteString getTools()
获取工具。
``` JSON array of ToolInfo
public boolean getIsCompacted()
获取 `getIsCompacted`。
`bool is_compacted = 7;`
public java.lang.String getCompactionSummary()
获取压缩摘要。
`string compaction_summary = 8;`
public com.google.protobuf.ByteString getCompactionSummaryBytes()
获取压缩摘要字节。
`string compaction_summary = 8;`
public int getOriginalMessageCount()
获取 `getOriginalMessageCount`。
`int32 original_message_count = 9;`
public long getCompactedAt()
获取 `getCompactedAt`。
``` unix milliseconds
public int getTotalTokens()
获取总数令牌数。
`int32 total_tokens = 11;`
public int getMaxTokens()
获取最大令牌数。
`int32 max_tokens = 12;`
public java.lang.String getFramework()
获取 `getFramework`。
`string framework = 13;`
public com.google.protobuf.ByteString getFrameworkBytes()
获取 `getFrameworkBytes`。
`string framework = 13;`
public com.google.protobuf.ByteString getFrameworkState()
获取 `getFrameworkState`。
``` framework-private JSON (graph state, session metadata, ...)
public final boolean isInitialized()
final
判断是否已初始化。
Returns whether the initialized.
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
设置写入到。
Performs the write to operation.
public int getSerializedSize()
获取 `getSerializedSize`。
Returns the serialized size.
public boolean equals(java.lang.Object obj)
设置该参数。
Performs the equals operation.
public int hashCode()
返回 `hashCode` 结果。
Returns the hash code.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.io.InputStream input) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
static
解析 `parseDelimitedFrom`。
Parses the delimited from.
public static io.agentscope.controlplane.proto.ContextReport parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析 `parseDelimitedFrom`。
Parses the delimited from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
static
解析来自。
Parses the from.
public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static
解析来自。
Parses the from.
public Builder newBuilderForType()
创建构建器用于类型。
Returns the new builder for type.
public static Builder newBuilder()
static
创建构建器。
Returns the new builder.
public static Builder newBuilder(io.agentscope.controlplane.proto.ContextReport prototype)
static
创建构建器。
Performs the new builder operation.
public Builder toBuilder()
返回到构建器。
Returns the to builder.
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
创建构建器用于类型。
Performs the new builder for type operation.
public static io.agentscope.controlplane.proto.ContextReport getDefaultInstance()
static
获取默认实例。
Returns the default instance.
public static com.google.protobuf.Parser<ContextReport> parser()
static
返回解析器。
Returns the parser.
public com.google.protobuf.Parser<ContextReport> getParserForType()
获取解析器用于类型。
Returns the parser for type.
public io.agentscope.controlplane.proto.ContextReport getDefaultInstanceForType()
获取默认实例用于类型。
Returns the default instance for type.

字段详情Field Detail

SESSION_ID_FIELD_NUMBER

public static final int SESSION_ID_FIELD_NUMBER
staticfinal

会话标识 FIELD 数量字段。声明为 public static final int SESSION_ID_FIELD_NUMBER。

The SESSION ID FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:58

CONTEXT_HASH_FIELD_NUMBER

public static final int CONTEXT_HASH_FIELD_NUMBER
staticfinal

上下文 HASH FIELD 数量字段。声明为 public static final int CONTEXT_HASH_FIELD_NUMBER。

The CONTEXT HASH FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:97

CAPTURED_AT_FIELD_NUMBER

public static final int CAPTURED_AT_FIELD_NUMBER
staticfinal

CAPTURED AT FIELD 数量字段。声明为 public static final int CAPTURED_AT_FIELD_NUMBER。

The CAPTURED AT FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:136

SYSTEM_PROMPT_FIELD_NUMBER

public static final int SYSTEM_PROMPT_FIELD_NUMBER
staticfinal

系统提示词 FIELD 数量字段。声明为 public static final int SYSTEM_PROMPT_FIELD_NUMBER。

The SYSTEM PROMPT FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:151

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
staticfinal

消息 FIELD 数量字段。声明为 public static final int MESSAGES_FIELD_NUMBER。

The MESSAGES FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:190

TOOLS_FIELD_NUMBER

public static final int TOOLS_FIELD_NUMBER
staticfinal

工具 FIELD 数量字段。声明为 public static final int TOOLS_FIELD_NUMBER。

The TOOLS FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:205

IS_COMPACTED_FIELD_NUMBER

public static final int IS_COMPACTED_FIELD_NUMBER
staticfinal

是 COMPACTED FIELD 数量字段。声明为 public static final int IS_COMPACTED_FIELD_NUMBER。

The IS COMPACTED FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:220

COMPACTION_SUMMARY_FIELD_NUMBER

public static final int COMPACTION_SUMMARY_FIELD_NUMBER
staticfinal

压缩摘要 FIELD 数量字段。声明为 public static final int COMPACTION_SUMMARY_FIELD_NUMBER。

The COMPACTION SUMMARY FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:231

ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER

public static final int ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER
staticfinal

ORIGINAL 消息数量 FIELD 数量字段。声明为 public static final int ORIGINAL_MESSAGE_COUNT_FIELD_NUMBER。

The ORIGINAL MESSAGE COUNT FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:270

COMPACTED_AT_FIELD_NUMBER

public static final int COMPACTED_AT_FIELD_NUMBER
staticfinal

COMPACTED AT FIELD 数量字段。声明为 public static final int COMPACTED_AT_FIELD_NUMBER。

The COMPACTED AT FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:281

TOTAL_TOKENS_FIELD_NUMBER

public static final int TOTAL_TOKENS_FIELD_NUMBER
staticfinal

总数令牌数 FIELD 数量字段。声明为 public static final int TOTAL_TOKENS_FIELD_NUMBER。

The TOTAL TOKENS FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:296

MAX_TOKENS_FIELD_NUMBER

public static final int MAX_TOKENS_FIELD_NUMBER
staticfinal

最大令牌数 FIELD 数量字段。声明为 public static final int MAX_TOKENS_FIELD_NUMBER。

The MAX TOKENS FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:307

FRAMEWORK_FIELD_NUMBER

public static final int FRAMEWORK_FIELD_NUMBER
staticfinal

FRAMEWORK FIELD 数量字段。声明为 public static final int FRAMEWORK_FIELD_NUMBER。

The FRAMEWORK FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:318

FRAMEWORK_STATE_FIELD_NUMBER

public static final int FRAMEWORK_STATE_FIELD_NUMBER
staticfinal

FRAMEWORK 状态 FIELD 数量字段。声明为 public static final int FRAMEWORK_STATE_FIELD_NUMBER。

The FRAMEWORK STATE FIELD NUMBER field.

源码Source io/agentscope/controlplane/proto/ContextReport.java:357

方法详情Method Detail

getDescriptor

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

获取描述符。

Returns the descriptor.

返回Returns com.google.protobuf.Descriptors.Descriptor
返回com.google.protobuf.Descriptors.Descriptor。Returns com google protobuf descriptors descriptor.
源码Source io/agentscope/controlplane/proto/ContextReport.java:45–48

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

返回 internalGetFieldAccessorTable 结果。

Returns the internal get field accessor table.

返回Returns com.google.protobuf.GeneratedMessage.FieldAccessorTable
返回com.google.protobuf.GeneratedMessage.FieldAccessorTable。Returns com google protobuf generated message field accessor table.
源码Source io/agentscope/controlplane/proto/ContextReport.java:50–56

getSessionId

public java.lang.String getSessionId()

获取会话标识。

string session_id = 1;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/controlplane/proto/ContextReport.java:65–77

getSessionIdBytes

public com.google.protobuf.ByteString getSessionIdBytes()

获取会话标识字节。

string session_id = 1;

返回Returns com.google.protobuf.ByteString
字节用于会话标识。The bytes for sessionId.
源码Source io/agentscope/controlplane/proto/ContextReport.java:82–95

getContextHash

public java.lang.String getContextHash()

获取 getContextHash。

string context_hash = 2;

返回Returns java.lang.String
返回java.lang.String。The contextHash.
源码Source io/agentscope/controlplane/proto/ContextReport.java:104–116

getContextHashBytes

public com.google.protobuf.ByteString getContextHashBytes()

获取 getContextHashBytes。

string context_hash = 2;

返回Returns com.google.protobuf.ByteString
字节用于 contextHash。The bytes for contextHash.
源码Source io/agentscope/controlplane/proto/ContextReport.java:121–134

getCapturedAt

public long getCapturedAt()

获取 getCapturedAt。

unix milliseconds int64 captured_at = 3;

返回Returns long
返回数值结果。The capturedAt.
源码Source io/agentscope/controlplane/proto/ContextReport.java:146–149

getSystemPrompt

public java.lang.String getSystemPrompt()

获取系统提示词。

string system_prompt = 4;

返回Returns java.lang.String
返回java.lang.String。The systemPrompt.
源码Source io/agentscope/controlplane/proto/ContextReport.java:158–170

getSystemPromptBytes

public com.google.protobuf.ByteString getSystemPromptBytes()

获取系统提示词字节。

string system_prompt = 4;

返回Returns com.google.protobuf.ByteString
字节用于 systemPrompt。The bytes for systemPrompt.
源码Source io/agentscope/controlplane/proto/ContextReport.java:175–188

getMessages

public com.google.protobuf.ByteString getMessages()

获取消息。

JSON array of {role, content, is_compaction?} bytes messages = 5;

返回Returns com.google.protobuf.ByteString
消息。The messages.
源码Source io/agentscope/controlplane/proto/ContextReport.java:200–203

getTools

public com.google.protobuf.ByteString getTools()

获取工具。

JSON array of ToolInfo bytes tools = 6;

返回Returns com.google.protobuf.ByteString
工具。The tools.
源码Source io/agentscope/controlplane/proto/ContextReport.java:215–218

getIsCompacted

public boolean getIsCompacted()

获取 getIsCompacted。

bool is_compacted = 7;

返回Returns boolean
返回布尔值,表示判断结果。The isCompacted.
源码Source io/agentscope/controlplane/proto/ContextReport.java:226–229

getCompactionSummary

public java.lang.String getCompactionSummary()

获取压缩摘要。

string compaction_summary = 8;

返回Returns java.lang.String
返回java.lang.String。The compactionSummary.
源码Source io/agentscope/controlplane/proto/ContextReport.java:238–250

getCompactionSummaryBytes

public com.google.protobuf.ByteString getCompactionSummaryBytes()

获取压缩摘要字节。

string compaction_summary = 8;

返回Returns com.google.protobuf.ByteString
字节用于 compactionSummary。The bytes for compactionSummary.
源码Source io/agentscope/controlplane/proto/ContextReport.java:255–268

getOriginalMessageCount

public int getOriginalMessageCount()

获取 getOriginalMessageCount。

int32 original_message_count = 9;

返回Returns int
返回数值结果。The originalMessageCount.
源码Source io/agentscope/controlplane/proto/ContextReport.java:276–279

getCompactedAt

public long getCompactedAt()

获取 getCompactedAt。

unix milliseconds int64 compacted_at = 10;

返回Returns long
返回数值结果。The compactedAt.
源码Source io/agentscope/controlplane/proto/ContextReport.java:291–294

getTotalTokens

public int getTotalTokens()

获取总数令牌数。

int32 total_tokens = 11;

返回Returns int
返回数值结果。The totalTokens.
源码Source io/agentscope/controlplane/proto/ContextReport.java:302–305

getMaxTokens

public int getMaxTokens()

获取最大令牌数。

int32 max_tokens = 12;

返回Returns int
返回数值结果。The maxTokens.
源码Source io/agentscope/controlplane/proto/ContextReport.java:313–316

getFramework

public java.lang.String getFramework()

获取 getFramework。

string framework = 13;

返回Returns java.lang.String
返回java.lang.String。The framework.
源码Source io/agentscope/controlplane/proto/ContextReport.java:325–337

getFrameworkBytes

public com.google.protobuf.ByteString getFrameworkBytes()

获取 getFrameworkBytes。

string framework = 13;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes for framework.
源码Source io/agentscope/controlplane/proto/ContextReport.java:342–355

getFrameworkState

public com.google.protobuf.ByteString getFrameworkState()

获取 getFrameworkState。

framework-private JSON (graph state, session metadata, ...) bytes framework_state = 14;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The frameworkState.
源码Source io/agentscope/controlplane/proto/ContextReport.java:367–370

isInitialized

public final boolean isInitialized()
final

判断是否已初始化。

Returns whether the initialized.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/controlplane/proto/ContextReport.java:373–381

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException

设置写入到。

Performs the write to operation.

参数Parameters
名称Name类型Type说明Description
outputcom.google.protobuf.CodedOutputStream输出(类型 `com.google.protobuf.CodedOutputStream`)。The output.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:383–429

getSerializedSize

public int getSerializedSize()

获取 getSerializedSize。

Returns the serialized size.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/controlplane/proto/ContextReport.java:431–491

equals

public boolean equals(java.lang.Object obj)

设置该参数。

Performs the equals operation.

参数Parameters
名称Name类型Type说明Description
objjava.lang.Objectobj(类型 `java.lang.Object`)。The obj.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/controlplane/proto/ContextReport.java:493–533

hashCode

public int hashCode()

返回 hashCode 结果。

Returns the hash code.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/controlplane/proto/ContextReport.java:535–576

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datajava.nio.ByteBuffer数据(类型 `java.nio.ByteBuffer`)。The data.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:578–582

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datajava.nio.ByteBuffer数据(类型 `java.nio.ByteBuffer`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:583–588

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datacom.google.protobuf.ByteString数据(类型 `com.google.protobuf.ByteString`)。The data.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:589–593

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
datacom.google.protobuf.ByteString数据(类型 `com.google.protobuf.ByteString`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:594–599

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
databyte[]数据(类型 `byte[]`)。The data.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:600–603

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
databyte[]数据(类型 `byte[]`)。The data.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • com.google.protobuf.InvalidProtocolBufferException 可能抛出 `com.google.protobuf.InvalidProtocolBufferException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:604–609

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.io.InputStream input) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:610–614

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:615–621

parseDelimitedFrom

public static io.agentscope.controlplane.proto.ContextReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
static

解析 parseDelimitedFrom。

Parses the delimited from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:623–627

parseDelimitedFrom

public static io.agentscope.controlplane.proto.ContextReport parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析 parseDelimitedFrom。

Parses the delimited from.

参数Parameters
名称Name类型Type说明Description
inputjava.io.InputStream输入消息(类型 `java.io.InputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:629–635

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:636–641

parseFrom

public static io.agentscope.controlplane.proto.ContextReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static

解析来自。

Parses the from.

参数Parameters
名称Name类型Type说明Description
inputcom.google.protobuf.CodedInputStream输入消息(类型 `com.google.protobuf.CodedInputStream`)。The input.
extensionRegistrycom.google.protobuf.ExtensionRegistryLite扩展注册表(类型 `com.google.protobuf.ExtensionRegistryLite`)。The extension registry.
返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
抛出Throws
  • java.io.IOException 可能抛出 `java.io.IOException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/controlplane/proto/ContextReport.java:642–648

newBuilderForType

public Builder newBuilderForType()

创建构建器用于类型。

Returns the new builder for type.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/ContextReport.java:650–651

newBuilder

public static Builder newBuilder()
static

创建构建器。

Returns the new builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/ContextReport.java:652–654

newBuilder

public static Builder newBuilder(io.agentscope.controlplane.proto.ContextReport prototype)
static

创建构建器。

Performs the new builder operation.

参数Parameters
名称Name类型Type说明Description
prototypeio.agentscope.controlplane.proto.ContextReportprototype(类型 `io.agentscope.controlplane.proto.ContextReport`)。The prototype.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/ContextReport.java:655–657

toBuilder

public Builder toBuilder()

返回到构建器。

Returns the to builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/ContextReport.java:658–662

newBuilderForType

protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)

创建构建器用于类型。

Performs the new builder for type operation.

参数Parameters
名称Name类型Type说明Description
parentcom.google.protobuf.GeneratedMessage.BuilderParent父级(类型 `com.google.protobuf.GeneratedMessage.BuilderParent`)。The parent.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/controlplane/proto/ContextReport.java:664–669

getDefaultInstance

public static io.agentscope.controlplane.proto.ContextReport getDefaultInstance()
static

获取默认实例。

Returns the default instance.

返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
源码Source io/agentscope/controlplane/proto/ContextReport.java:1694–1696

parser

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

返回解析器。

Returns the parser.

返回Returns com.google.protobuf.Parser<ContextReport>
返回com.google.protobuf.解析器。Returns com google protobuf parser.
源码Source io/agentscope/controlplane/proto/ContextReport.java:1720–1722

getParserForType

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

获取解析器用于类型。

Returns the parser for type.

返回Returns com.google.protobuf.Parser<ContextReport>
返回com.google.protobuf.解析器。Returns com google protobuf parser.
源码Source io/agentscope/controlplane/proto/ContextReport.java:1724–1727

getDefaultInstanceForType

public io.agentscope.controlplane.proto.ContextReport getDefaultInstanceForType()

获取默认实例用于类型。

Returns the default instance for type.

返回Returns io.agentscope.controlplane.proto.ContextReport
返回io.agentscope.controlplane.协议.ContextReport。Returns io agentscope controlplane proto context report.
源码Source io/agentscope/controlplane/proto/ContextReport.java:1729–1732

嵌套类详情Nested Class Detail

Builder

public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements io.agentscope.controlplane.proto.ContextReportOrBuilder

构建器,用于构建并配置目标实例。位于 io.agentscope.controlplane.proto 包,继承自 com.google.protobuf.GeneratedMessage.Builder<Builder>,实现 io.agentscope.controlplane.proto.ContextReportOrBuilder。核心成员包括 getDescriptor、internalGetFieldAccessorTable、clear、getDescriptorForType、getDefaultInstanceForType、build。


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

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.