Skip to main content

Function: addLore

addLore(params): Promise<void>

Adds a piece of lore to the lore database. Lore can include static information like documents, historical facts, game lore, etc.

Parameters

NameTypeDefault valueDescription
paramsObjectundefinedThe parameters for adding lore.
params.contentContentundefinedThe actual content of the lore.
params.embedContent?ContentundefinedOptional content used to generate an embedding if different from content.
params.room_id?`${string}-${string}-${string}-${string}-${string}`zeroUuidThe room ID associated with the lore, defaults to a zero UUID.
params.runtimeBgentRuntimeundefinedThe runtime environment of the agent.
params.sourcestringundefinedThe source of the lore content.
params.user_id?`${string}-${string}-${string}-${string}-${string}`zeroUuidThe user ID associated with the lore, defaults to a zero UUID.

Returns

Promise<void>

A promise that resolves when the lore has been added successfully.