Knowledge • AI Agent SDK
Knowledge: Class reference for Knowledge
Knowledge
Defined in the knowledge module.
AI Agent
Constructor
ParamField
AnyNo description available.
ParamField
AnyNo description available.
Methods
config()
Instance method.
memory()Initialize knowledge adapter using protocol-driven approach.
markdown()Instance method.
chunker()Instance method.
store()Store a memory.
get_all()Retrieve all memories.
get()Retrieve a specific memory by ID.
search()Search for memories related to a query.
update()Update a memory.
history()Get the history of changes for a memory.
delete()Delete a memory.
delete_all()Delete all memories.
reset()Reset all memories.
normalize_content()Normalize content for consistent storage.
add()Read file content and store it in memory.
index()Index a directory or file for knowledge retrieval.
get_corpus_stats()Get statistics about the indexed corpus.
Source
View on GitHubpraisonaiagents/knowledge/knowledge.py at line 57