Concepts API
The Concepts API allows you to manage and execute Vadalog concepts within projects. This is one of the core APIs for working with logical reasoning and data analysis.Save Concept
Save or update a concept with Vadalog logic and optional Python scripts.- Python SDK
- REST API
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | str | Yes | The project identifier |
definition | str | Yes | The Vadalog rules, SQL query, or Python logic defining the concept |
python_scripts | dict | No | Dictionary of Python scripts to inject |
scope | str | No | The scope of the concept. Defaults to "user" |
description | str | No | Human-readable description of the concept |
concept_type | str | No | "logic" or "sql". Defaults to "logic" |
concept_name | str | Conditional | Required for SQL concepts |
Python Script Injection Requirements
When using Python script injection withsave_concept, there are specific requirements:
1. Main Function Requirement
Every Python script must contain amain() function:
2. Tabular Output Format
Themain() function must return results as a list of dictionaries:
3. Concept Head Alignment
Output column names must match the parameters in the concept head:4. Standalone Concept Rule
Python script concepts must be standalone:Run Concept
Execute a concept with specified parameters.- Python SDK
- REST API
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | str | Yes | The project identifier |
concept_name | str | Yes | The name of the concept to run |
params | dict | No | Parameters to pass to the concept execution |
scope | str | No | The scope of the project. Defaults to "user" |
force_rerun | bool | No | Force rerun even if results exist. Defaults to True |
persist_outputs | bool | No | Persist the outputs. Defaults to False |
Fetch Results
Paginated fetch of stored results for an output predicate.- Python SDK
- REST API
List Concepts
List all concepts in a project.- Python SDK
- REST API
Cleanup Concepts
Delete concepts from a project.- Python SDK
- REST API

