ontocast.agent.chunk_text
¶
Text chunking agent for OntoCast.
This module provides functionality for splitting text into manageable chunks that can be processed independently, ensuring optimal processing of large documents.
chunk_text(state, tools)
¶
Split text into manageable chunks.
This function takes the converted document text and splits it into smaller, manageable chunks that can be processed independently.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state
|
AgentState
|
The current agent state containing the text to chunk. |
required |
tools
|
ToolBox
|
The toolbox instance providing utility functions. |
required |
Returns:
Name | Type | Description |
---|---|---|
AgentState |
AgentState
|
Updated state with text chunks. |