prometheux_chain Python SDK. Every
function is re-exported at the top level, so you call it as px.<function>(...):
import prometheux_chain as px
ontology_id = px.save_ontology(ontology_name="my_ontology")
{project_id} are supplied as function arguments.
A few functions are generators that stream events as they arrive
(newline-delimited JSON or a WebSocket). They are flagged
below — iterate over the return value rather than awaiting a
single result. See Streaming responses.
Config
Theconfig object reads and writes local SDK settings (token, backend URL, LLM
keys). See Config for the full list of keys.
| Function | Description |
|---|---|
config.get(key, default=None) | Read a local config value. |
config.set(key, value) | Set a local config value. |
config.update_config(updates) | Set multiple config values at once. |
Ontologies
| Function | Endpoint | Description |
|---|---|---|
save_ontology(...) | POST /ontologies/save | Create or update an ontology. |
list_ontologies(...) | GET /ontologies/list | List visible ontologies across scopes. |
load_ontology(...) | GET /ontologies/load | Load full details for one ontology. |
copy_ontology(...) | POST /ontologies/copy | Duplicate an ontology. |
list_templates(...) | GET /ontologies/list-templates | Browse marketplace templates. |
import_template(...) | POST /ontologies/import-template | Create an ontology from a template. |
export_ontology(...) | POST /ontologies/export-project | Serialize an ontology to a portable payload. |
import_ontology(...) | POST /ontologies/import-project | Restore an ontology from a payload. |
export_workspace(...) | POST /ontologies/export-workspace | Export every ontology in the workspace. |
import_workspace(...) | POST /ontologies/import-workspace | Restore a full workspace. |
create_ontology_from_context(...) | POST /ontologies/create-from-context | Build an ontology from text/files via the LLM. |
create_snapshot(...) | POST /ontologies/snapshots/create | Capture a point-in-time snapshot. |
list_snapshots(...) | GET /ontologies/snapshots/list | List an ontology’s snapshots. |
restore_snapshot(...) | POST /ontologies/snapshots/restore | Restore an ontology from a snapshot. |
delete_snapshot(...) | POST /ontologies/snapshots/delete | Delete a snapshot. |
cleanup_ontologies(...) | POST /ontologies/cleanup | Delete one ontology or all. |
Ontology sharing
| Function | Endpoint | Description |
|---|---|---|
create_share(...) | POST /ontologies/share | Share an ontology as viewer/editor. |
list_shares(...) | GET /ontologies/share/list | List shares you created (outbox). |
update_share_role(...) | POST /ontologies/share/update-role | Change a share between viewer/editor. |
revoke_share(...) | POST /ontologies/share/revoke | Revoke a share you granted. |
list_inbox(...) | GET /ontologies/share/inbox | List shares granted to you (inbox). |
accept_share(...) | POST /ontologies/share/accept | Accept a pending share. |
leave_share(...) | POST /ontologies/share/leave | Detach from an accepted share. |
sync_inbox(...) | POST /ontologies/share/sync | Reconcile local shares with the source of truth. |
Concepts
| Function | Endpoint | Description |
|---|---|---|
save_concept(...) | POST /concepts/{project_id}/save | Create or update a concept. |
list_concepts(...) | GET /concepts/{project_id}/list | List concepts in a project. |
run_concept(...) | POST /concepts/{project_id}/run/{concept_name} | Run a concept and its dependency chain. |
run_concept_stream(...) | WS /concepts/{project_id}/run-stream/{concept_name} | Run a concept, streaming progress frames. |
rename_concept(...) | POST /concepts/{project_id}/rename | Rename a concept and its dependents. |
reorder_concepts(...) | POST /concepts/{project_id}/reorder | Set concept display order. |
fetch_results(...) | GET /concepts/{project_id}/fetch | Read persisted output rows (paginated). |
search_results(...) | POST /concepts/{project_id}/search | Filter output rows by term/columns. |
get_execution_status(...) | GET /concepts/{project_id}/execution-status | Latest run status for one project. |
get_execution_statuses(...) | GET /concepts/execution-statuses | Run statuses across all projects. |
generate_concept_description(...) | POST /concepts/{project_id}/generate-description | LLM-generate a concept description. |
get_concept_description(...) | GET /concepts/{project_id}/description | Read/lazily-generate a description. |
llm_analysis(...) | POST /concepts/{project_id}/llm | Ask a question over predicate data. |
download_concept(...) | GET /concepts/{project_id}/download | Export results to CSV / download a file. |
cleanup_concepts(...) | POST /concepts/{project_id}/cleanup | Delete concepts. |
Data sources & files
| Function | Endpoint | Description |
|---|---|---|
connect_sources(...) | POST /data/connect | Register a database/file source. |
list_sources(...) | GET /data/list | List registered sources. |
list_sheets(...) | POST /data/list-sheets | List sheets in a spreadsheet source. |
list_demo_sources(...) | GET /data/demo-sources | List onboarding demo sources. |
refresh_sources(...) | POST /data/refresh | Re-probe and reconcile sources. |
infer_schema(...) | POST /data/infer-schema | Generate Vadalog binds from a connection. |
preview_datasource(...) | POST /data/preview | Preview rows from a bound source. |
all_pairs_join(...) | POST /data/all-pairs-join | Discover joins across sources. |
upload_file(...) | POST /data/files/upload | Upload a file to disk/. |
list_files(...) | GET /data/files/list | List files in disk/. |
make_directory(...) | POST /data/files/mkdir | Create a directory in disk/. |
move_file(...) | POST /data/files/move | Move/rename a file or directory. |
delete_files(...) | POST /data/files/delete | Delete files/directories. |
download_file(...) | GET /data/files/download | Download a file from disk/. |
cleanup_sources(...) | POST /data/cleanup | Remove data sources. |
Schema
| Function | Endpoint | Description |
|---|---|---|
save_ontology_schema(...) | POST /concepts/{project_id}/save-ontology-schema | Persist an ontology’s schema. |
load_ontology_schema(...) | GET /concepts/{project_id}/load-ontology-schema | Load an ontology’s schema. |
update_concept_ontology_schema_type(...) | PATCH /concepts/{project_id}/concepts/{concept_name}/ontology-schema-type | Mark a concept as node/edge. |
add_to_lineage(...) | POST /concepts/{project_id}/add-to-lineage | Add a node/edge to the lineage. |
import_owl(...) | POST /concepts/{project_id}/import-owl | Import OWL into editor JSON. |
Knowledge graph
| Function | Endpoint | Description |
|---|---|---|
build_graph(...) | POST /kgs/{project_id}/build-graph/{output_predicate} | Build a graph from an edge predicate. |
run_graph_analytics(...) | POST /kgs/{project_id}/graph-analytics/{output_predicate} | Run an analytics algorithm on a graph. |
list_graph_functions(...) | GET /kgs/graph-functions | List available analytics functions. |
visualize_concept_lineage(...) | POST /kgs/{project_id}/visualize-concept-lineage | Return the concept dependency DAG. |
Context layer (knowledge)
| Function | Endpoint | Description |
|---|---|---|
list_context_notes(...) | GET /knowledge/context | List context notes. |
create_context_note(...) | POST /knowledge/context | Create a context note. |
get_context_note(...) | GET /knowledge/context/{note_id} | Read a context note. |
update_context_note(...) | PATCH /knowledge/context/{note_id} | Update a context note. |
delete_context_note(...) | DELETE /knowledge/context/{note_id} | Delete a context note. |
search_context_notes(...) | POST /knowledge/context/search | Semantic search over notes. |
create_context_notes_from_file(...) | POST /knowledge/context/from-file | Ingest a file as context notes. |
auto_seed(...) | POST /knowledge/auto-seed | Profile sources, stream observations. |
ontology_text(...) | GET /knowledge/project/{project_id}/text | Render the ontology document. |
interview_template(...) | GET /knowledge/interview/template | Onboarding interview template. |
submit_interview(...) | POST /knowledge/interview | Submit onboarding interview answers. |
onboarding_status(...) | GET /knowledge/onboarding-status | Report onboarding progress. |
AI agent
| Function | Endpoint | Description |
|---|---|---|
agent_chat(...) | POST /agent/{project_id}/chat | Stream a conversation with the agent. |
agent_reset(...) | POST /agent/{project_id}/reset | Clear a session’s history. |
Chat history
| Function | Endpoint | Description |
|---|---|---|
list_sessions(...) | GET /chat-history/sessions | List agent chat sessions. |
get_session(...) | GET /chat-history/sessions/{session_id} | Load a session with messages. |
rename_session(...) | PATCH /chat-history/sessions/{session_id} | Rename a session. |
delete_session(...) | DELETE /chat-history/sessions/{session_id} | Delete a session. |
Apps
| Function | Endpoint | Description |
|---|---|---|
list_all_apps(...) | GET /apps/list | List apps across ontologies. |
list_apps(...) | GET /apps/{project_id}/list | List apps in an ontology. |
get_app(...) | GET /apps/{project_id}/{app_id} | Load an app. |
save_app(...) | POST /apps/{project_id}/save | Create or update an app. |
delete_app(...) | DELETE /apps/{project_id}/{app_id} | Delete an app. |
Schedules
| Function | Endpoint | Description |
|---|---|---|
create_policy(...) | POST /schedules/{project_id}/policies | Attach a cron/data-change policy. |
list_policies(...) | GET /schedules/{project_id}/policies | List policies in a project. |
get_policy(...) | GET /schedules/{project_id}/policies/{policy_id} | Load a policy. |
update_policy(...) | PATCH /schedules/{project_id}/policies/{policy_id} | Update or enable/disable a policy. |
delete_policy(...) | DELETE /schedules/{project_id}/policies/{policy_id} | Delete a policy. |
trigger_policy(...) | POST /schedules/{project_id}/policies/{policy_id}/trigger | Fire a policy run immediately. |
get_run_history(...) | GET /schedules/{project_id}/policies/{policy_id}/runs | Read a policy’s run history. |
Alerts
| Function | Endpoint | Description |
|---|---|---|
get_alert_history(...) | GET /alerts/history | List stored alerts. |
reprocess_alert(...) | POST /alerts/{alert_id}/reprocess | Re-run an alert’s concept. |
Compute
| Function | Endpoint | Description |
|---|---|---|
check_compute_availability(...) | POST /compute/availability | Check machine/Databricks availability. |
Vadalog
| Function | Endpoint | Description |
|---|---|---|
analyze_program(...) | POST /vadalog/analyze | Inspect a program’s predicate structure. |
parse_binds(...) | POST /vadalog/parse-binds | Separate rules from bind annotations. |
build_bind(...) | POST /vadalog/build-bind | Rewrite a bind for a new predicate. |
evaluate_program(...) | POST /vadalog/evaluate | Evaluate a Vadalog program directly. |
Vadalingo
| Function | Endpoint | Description |
|---|---|---|
translate_nl_to_vadalog(...) | POST /vadalingo/{project_id}/translate/nl-to-vadalog | Translate natural language to Vadalog. |
translate_sql_to_vadalog(...) | POST /vadalingo/{project_id}/translate/sql-to-vadalog | Translate SQL to Vadalog. |
translate_rdf_to_vadalog(...) | POST /vadalingo/{project_id}/translate/rdf-to-vadalog | Translate RDF to Vadalog. |
translate_owl_to_vadalog(...) | POST /vadalingo/{project_id}/translate/owl-to-vadalog | Translate OWL to Vadalog. |
Account & configuration
| Function | Endpoint | Description |
|---|---|---|
get_role(...) | GET /users/get-role | Get the caller’s role. |
get_usage_status(...) | GET /users/usage-status | LLM/embedding usage and limits. |
get_login_activity(...) | GET /users/login-activity | Recent access IPs/sessions. |
list_llm_models(...) | POST /users/llm-models | List models for an LLM provider. |
save_user_config(...) | POST /users/save-config | Persist server-side user config. |
load_user_config(...) | GET /users/load-config | Load server-side user config. |
Authentication
| Function | Endpoint | Description |
|---|---|---|
issue_token(...) | POST /auth/issue-token | Mint a new API key. |
list_tokens(...) | GET /auth/tokens | List your API keys’ metadata. |
revoke_token(...) | POST /auth/revoke | Revoke the current token. |
revoke_specific_token(...) | POST /auth/revoke/{jti} | Revoke a token by ID. |
revoke_all_tokens(...) | POST /auth/revoke-all | Revoke all your tokens. |

