Syntax
api.createKnowledgeChunk(params)
Description
Creates a knowledge chunk in a knowledge source. A knowledge chunk is a discrete piece of knowledge containing text and optional chunk metadata that can be searched and retrieved during agent interactions. Parameters:params:CreateKnowledgeChunkParams— configuration object for the knowledge chunk. The object contains the following parameters:
Returns:
Promise<{}> — a promise that resolves to an empty object when the knowledge chunk is created.