AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

KnowledgeBaseRecord

class KnowledgeBaseRecord(_RecordBase)
源码Source agentscope/app/storage/_model/_knowledge_base.py:87–144

知识库记录,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包,继承自 _RecordBase。

Stores per-user metadata for a knowledge base; the actual chunks and vectors live in the configured VectorStoreBase backend. Each record is the canonical authorisation gate: HTTP handlers and middleware look the record up by (user_id, id) before talking to the vector store.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
user_idstr
所有者用户标识。
Field(description='The owner user id.')
dataKnowledgeBaseData
数据字段。
—

属性详情Attribute Detail

user_id

str = Field(description='The owner user id.')

所有者用户标识。

The owner user id.

源码Source agentscope/app/storage/_model/_knowledge_base.py:97

data

KnowledgeBaseData

数据字段。声明为 KnowledgeBaseData。

The data field.

源码Source agentscope/app/storage/_model/_knowledge_base.py:100
基于官方固定版本源码静态生成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.