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 |
|---|---|---|
lines | List<String> | 执行 `lines` 方法。 line contents at the time of capture (defensively copied; never `null`) |
updatedAt | double | 执行已更新 At相关操作。 file modification timestamp in epoch seconds with millisecond fraction |
bytes | double | 执行字节相关操作。 approximate size of the cached entry in kilobytes (UTF-8 byte sum / 1024) |
filePath | String | 执行文件路径相关操作。 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–43updatedAt
double updatedAt执行已更新 At相关操作。
file modification timestamp in epoch seconds with millisecond fraction
源码Source
io/agentscope/core/state/ReadCacheEntry.java:31–43bytes
double bytes执行字节相关操作。
approximate size of the cached entry in kilobytes (UTF-8 byte sum / 1024)
源码Source
io/agentscope/core/state/ReadCacheEntry.java:31–43filePath
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 |
|---|---|---|
lines | List<String> | lines(类型 `List`)。The lines. |
updatedAt | double | 已更新 At(类型 `double`)。The updated at. |
bytes | double | 字节(类型 `double`)。The bytes. |
filePath | String | 文件路径(类型 `String`)。The file path. |
源码Source
io/agentscope/core/state/ReadCacheEntry.java:37–42