ContextReportOrBuilder
public interface ContextReportOrBuilder extends com.google.protobuf.MessageOrBuilder
io/agentscope/controlplane/proto/ContextReportOrBuilder.java:8–145定义上下文报告或构建器契约的接口。位于 io.agentscope.controlplane.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getSessionId、getSessionIdBytes、getContextHash、getContextHashBytes、getCapturedAt、getSystemPrompt。
An interface in io.agentscope.controlplane.proto that defines the contract for components that deploys, schedules and serves agents. Declared in io.agentscope.controlplane.proto. Implements com.google.protobuf.MessageOrBuilder.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
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, ...) |
方法详情Method Detail
getSessionId
public java.lang.String getSessionId()
获取会话标识。
string session_id = 1;
java.lang.Stringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:16getSessionIdBytes
public com.google.protobuf.ByteString getSessionIdBytes()
获取会话标识字节。
string session_id = 1;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:21–22getContextHash
public java.lang.String getContextHash()
获取 getContextHash。
string context_hash = 2;
java.lang.Stringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:28getContextHashBytes
public com.google.protobuf.ByteString getContextHashBytes()
获取 getContextHashBytes。
string context_hash = 2;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:33–34getCapturedAt
public long getCapturedAt()
获取 getCapturedAt。
unix milliseconds int64 captured_at = 3;
longio/agentscope/controlplane/proto/ContextReportOrBuilder.java:44getSystemPrompt
public java.lang.String getSystemPrompt()
获取系统提示词。
string system_prompt = 4;
java.lang.Stringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:50getSystemPromptBytes
public com.google.protobuf.ByteString getSystemPromptBytes()
获取系统提示词字节。
string system_prompt = 4;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:55–56getMessages
public com.google.protobuf.ByteString getMessages()
获取消息。
JSON array of {role, content, is_compaction?} bytes messages = 5;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:66getTools
public com.google.protobuf.ByteString getTools()
获取工具。
JSON array of ToolInfo bytes tools = 6;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:76getIsCompacted
public boolean getIsCompacted()
获取 getIsCompacted。
bool is_compacted = 7;
booleanio/agentscope/controlplane/proto/ContextReportOrBuilder.java:82getCompactionSummary
public java.lang.String getCompactionSummary()
获取压缩摘要。
string compaction_summary = 8;
java.lang.Stringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:88getCompactionSummaryBytes
public com.google.protobuf.ByteString getCompactionSummaryBytes()
获取压缩摘要字节。
string compaction_summary = 8;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:93–94getOriginalMessageCount
public int getOriginalMessageCount()
获取 getOriginalMessageCount。
int32 original_message_count = 9;
intio/agentscope/controlplane/proto/ContextReportOrBuilder.java:100getCompactedAt
public long getCompactedAt()
获取 getCompactedAt。
unix milliseconds int64 compacted_at = 10;
longio/agentscope/controlplane/proto/ContextReportOrBuilder.java:110getTotalTokens
public int getTotalTokens()
获取总数令牌数。
int32 total_tokens = 11;
intio/agentscope/controlplane/proto/ContextReportOrBuilder.java:116getMaxTokens
public int getMaxTokens()
获取最大令牌数。
int32 max_tokens = 12;
intio/agentscope/controlplane/proto/ContextReportOrBuilder.java:122getFramework
public java.lang.String getFramework()
获取 getFramework。
string framework = 13;
java.lang.Stringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:128getFrameworkBytes
public com.google.protobuf.ByteString getFrameworkBytes()
获取 getFrameworkBytes。
string framework = 13;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:133–134getFrameworkState
public com.google.protobuf.ByteString getFrameworkState()
获取 getFrameworkState。
framework-private JSON (graph state, session metadata, ...) bytes framework_state = 14;
com.google.protobuf.ByteStringio/agentscope/controlplane/proto/ContextReportOrBuilder.java:144