AS AgentScopeAPI 手册 / API Reference

ReadCacheEntry

public record ReadCacheEntry( @JsonProperty("lines") List<String> lines, @JsonProperty("updated_at") double updatedAt, @JsonProperty("bytes") double bytes, @JsonProperty("file_path") String filePath)
源码Source io/agentscope/core/state/ReadCacheEntry.java:31–43

承载读取缓存条目数据的记录类型。位于 io.agentscope.core.state 包。核心成员包括 lines、updatedAt、bytes、filePath、ReadCacheEntry。

Snapshot of a file's contents kept in the tool read cache.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
linesList<String>
执行 `lines` 方法。
line contents at the time of capture (defensively copied; never `null`)
updatedAtdouble
执行已更新 At相关操作。
file modification timestamp in epoch seconds with millisecond fraction
bytesdouble
执行字节相关操作。
approximate size of the cached entry in kilobytes (UTF-8 byte sum / 1024)
filePathString
执行文件路径相关操作。
absolute path to the cached file (never `null`)

构造器摘要Constructor Summary

构造器Constructor说明Description
public ReadCacheEntry(List<String> lines, double updatedAt, double bytes, String filePath)
初始化 `ReadCacheEntry` 实例。
Creates a new instance.

记录组件详情Record Component Detail

lines

List<String> lines

执行 lines 方法。

line contents at the time of capture (defensively copied; never null)

源码Source io/agentscope/core/state/ReadCacheEntry.java:31–43

updatedAt

double updatedAt

执行已更新 At相关操作。

file modification timestamp in epoch seconds with millisecond fraction

源码Source io/agentscope/core/state/ReadCacheEntry.java:31–43

bytes

double bytes

执行字节相关操作。

approximate size of the cached entry in kilobytes (UTF-8 byte sum / 1024)

源码Source io/agentscope/core/state/ReadCacheEntry.java:31–43

filePath

String filePath

执行文件路径相关操作。

absolute path to the cached file (never null)

源码Source io/agentscope/core/state/ReadCacheEntry.java:31–43

构造器详情Constructor Detail

ReadCacheEntry

public ReadCacheEntry(List<String> lines, double updatedAt, double bytes, String filePath)

初始化 ReadCacheEntry 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
linesList<String>lines(类型 `List`)。The lines.
updatedAtdouble已更新 At(类型 `double`)。The updated at.
bytesdouble字节(类型 `double`)。The bytes.
filePathString文件路径(类型 `String`)。The file path.
源码Source io/agentscope/core/state/ReadCacheEntry.java:37–42
基于官方固定版本源码静态生成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.