AS AgentScopeAPI 手册 / API Reference

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
keyString
执行键相关操作。
the item's key within its namespace
valueMap<String, Object>
执行值相关操作。
the item's data as a string-keyed map
versionlong
执行版本相关操作。
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–36

value

Map<String, Object> value

执行值相关操作。

the item's data as a string-keyed map

源码Source io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:30–36

version

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
keyString键(类型 `String`)。The key.
valueMap<String, Object>值(类型 `Map`)。The value.
源码Source io/agentscope/harness/agent/filesystem/remote/store/StoreItem.java:33–35
基于官方固定版本源码静态生成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.