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

ChunkerConfig

class ChunkerConfig(BaseModel)
源码Source agentscope/app/storage/_model/_knowledge_base.py:11–30

切分器配置,保存相关配置项。位于 agentscope.app.storage 包。

Stores the chunker type identifier (as declared by ChunkerBase.chunker_type) and the keyword-argument parameters used to reconstruct it at indexing time.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
typestr
类型字段。
Field(description='Chunker type identifier, as declared by ``ChunkerBase.chunker_type``.')
parametersdict
参数字段。
Field(default_factory=dict, description='Keyword arguments used to build ``ChunkerBase.Parameters``.')

属性详情Attribute Detail

type

str = Field(description='Chunker type identifier, as declared by ``ChunkerBase.chunker_type``.')

类型字段。声明为 str。

Chunker type identifier, as declared by ChunkerBase.chunker_type.

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

parameters

dict = Field(default_factory=dict, description='Keyword arguments used to build ``ChunkerBase.Parameters``.')

参数字段。声明为 dict。

Keyword arguments used to build ChunkerBase.Parameters.

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