Building blocks of processing that transform data in Cognee pipelines
task_config
.resolve_data_directories
, ingest_data
classify_documents
check_permissions_on_dataset
extract_chunks_from_documents
extract_graph_from_data
summarize_text
, summarize_code
add_data_points
Task API & Constructor
executable
: Any Python callable (function, coroutine, generator, async generator)task_config
: Configuration for batching, error handling, and loggingdefault_params
: Parameters that are always passed to the executableSupported Task Types
async def
Writing a Custom Task
Execution Flow