chunk • AI Agent SDK
chunk: Chunk text using the configured chunking strategy.
chunk
Method
</div>
This is a method of the Chunking class in the chunking module.
Chunk text using the configured chunking strategy.
Signature
def chunk(text: Union[str, List[str]]) -> Union[List[Any], List[List[Any]]]Parameters
ParamField
UnionNo description available.
Returns
ResponseField
Union[List[Any], List[List[Any]]]The result of the operation.
Uses
chunkerwarnings.warn
Used By
Source
View on GitHubpraisonaiagents/knowledge/chunking.py at line 236