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

SessionKnowledgeConfig

class SessionKnowledgeConfig(BaseModel)
源码Source agentscope/app/storage/_model/_session.py:198–222

会话知识库配置,保存相关配置项。位于 agentscope.app.storage 包。

Persists which knowledge bases the agent should retrieve from for this session and how the :class:~agentscope.middleware.RAGMiddleware should be configured. parameters carries the user-tunable middleware fields verbatim (mirrors :attr:ChatModelConfig.parameters); the accepted keys and value types are described by :meth:RAGMiddleware.Config.model_json_schema.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
knowledge_base_idslist[str]
`knowledge_base_ids` 字段。
Field(default_factory=list)
parametersdict
参数字段。
Field(default_factory=dict)

属性详情Attribute Detail

knowledge_base_ids

list[str] = Field(default_factory=list)

knowledge_base_ids 字段。声明为 list[str]。

The knowledge base ids field.

源码Source agentscope/app/storage/_model/_session.py:210

parameters

dict = Field(default_factory=dict)

参数字段。声明为 dict。

The parameters field.

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