@elizaos/core v1.0.0-beta.51 / KnowledgeItem
Type Alias: KnowledgeItem
KnowledgeItem:
object
Represents a single item of knowledge that can be processed and stored by the agent.
Knowledge items consist of content (text and optional structured data) and metadata.
These items are typically added to the agent's knowledge base via AgentRuntime.addKnowledge
and retrieved using AgentRuntime.getKnowledge
.
The id
is a unique identifier for the knowledge item, often derived from its source or content.
Type declaration​
id​
id:
UUID
A Universally Unique Identifier for this specific knowledge item.
content​
content:
Content
The actual content of the knowledge item, which must include text and can have other fields.
metadata?​
optional
metadata:MemoryMetadata
Optional metadata associated with this knowledge item, conforming to MemoryMetadata
.