AS AgentScopeAPI 手册 / API Reference

ContextReportOrBuilder

public interface ContextReportOrBuilder extends com.google.protobuf.MessageOrBuilder
源码Source 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;

返回Returns java.lang.String
会话标识。The sessionId.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:16

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/ContextReportOrBuilder.java:21–22

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/ContextReportOrBuilder.java:28

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/ContextReportOrBuilder.java:33–34

getCapturedAt

public long getCapturedAt()

获取 getCapturedAt。

unix milliseconds int64 captured_at = 3;

返回Returns long
返回数值结果。The capturedAt.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:44

getSystemPrompt

public java.lang.String getSystemPrompt()

获取系统提示词。

string system_prompt = 4;

返回Returns java.lang.String
返回java.lang.String。The systemPrompt.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:50

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/ContextReportOrBuilder.java:55–56

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/ContextReportOrBuilder.java:66

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/ContextReportOrBuilder.java:76

getIsCompacted

public boolean getIsCompacted()

获取 getIsCompacted。

bool is_compacted = 7;

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

getCompactionSummary

public java.lang.String getCompactionSummary()

获取压缩摘要。

string compaction_summary = 8;

返回Returns java.lang.String
返回java.lang.String。The compactionSummary.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:88

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/ContextReportOrBuilder.java:93–94

getOriginalMessageCount

public int getOriginalMessageCount()

获取 getOriginalMessageCount。

int32 original_message_count = 9;

返回Returns int
返回数值结果。The originalMessageCount.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:100

getCompactedAt

public long getCompactedAt()

获取 getCompactedAt。

unix milliseconds int64 compacted_at = 10;

返回Returns long
返回数值结果。The compactedAt.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:110

getTotalTokens

public int getTotalTokens()

获取总数令牌数。

int32 total_tokens = 11;

返回Returns int
返回数值结果。The totalTokens.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:116

getMaxTokens

public int getMaxTokens()

获取最大令牌数。

int32 max_tokens = 12;

返回Returns int
返回数值结果。The maxTokens.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:122

getFramework

public java.lang.String getFramework()

获取 getFramework。

string framework = 13;

返回Returns java.lang.String
返回java.lang.String。The framework.
源码Source io/agentscope/controlplane/proto/ContextReportOrBuilder.java:128

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/ContextReportOrBuilder.java:133–134

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/ContextReportOrBuilder.java:144
基于官方固定版本源码静态生成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.