StoreItem
public record StoreItem(String key, Map<String, Object> value, long version)
源码Source
io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:30–36承载存储条目数据的记录类型。位于 io.agentscope.harness.agent.filesystem.remote.store 包。核心成员包括 key、value、version、StoreItem。
A single item retrieved from a BaseStore.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
key | String | 执行键相关操作。 the item's key within its namespace |
value | Map<String, Object> | 执行值相关操作。 the item's data as a string-keyed map |
version | long | 执行版本相关操作。 monotonically increasing version counter; starts at 1 and increments on every
successful `BaseStore#put` or `BaseStore#putIfVersion`. A value of
`0` means the version is unknown (e.g. items returned by legacy implementations
that predate versioning). |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public StoreItem(String key, Map<String, Object> value) | 初始化 `StoreItem` 实例。 Back-compat constructor for code that does not yet supply a version. |
记录组件详情Record Component Detail
key
String key执行键相关操作。
the item's key within its namespace
源码Source
io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:30–36value
Map<String, Object> value执行值相关操作。
the item's data as a string-keyed map
源码Source
io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:30–36version
long version执行版本相关操作。
monotonically increasing version counter; starts at 1 and increments on every
successful BaseStore#put or BaseStore#putIfVersion. A value of
0 means the version is unknown (e.g. items returned by legacy implementations
that predate versioning).
源码Source
io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:30–36构造器详情Constructor Detail
StoreItem
public StoreItem(String key, Map<String, Object> value)
初始化 StoreItem 实例。
Back-compat constructor for code that does not yet supply a version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
key | String | 键(类型 `String`)。The key. |
value | Map<String, Object> | 值(类型 `Map`)。The value. |
源码Source
io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:33–35