The config module provides an interface for reading and writing configuration values. It includes functions to load, retrieve, and update configuration values for the Prometheux platform.

Configuration Functions

Get Configuration Value

Retrieves a value from the configuration using the specified key.
Function Signature
ParametersReturnsThe value associated with the specified key, or None if the key does not exist.

Set Configuration Value

Sets a configuration value for the specified key.
Function Signature
Parameters

Update Multiple Configuration Values

Update multiple configuration values at once from a dictionary.
Function Signature
Parameters

Authentication Token

The PMTX_TOKEN can be configured in two ways:

Using Environment Variables

Using the SDK Configuration


Configuring LLMs

The Prometheux Chain exploits LLMs to generate more human-readable explanations, translations of Vadalog rules, graph rag and LLM output validation tasks. By default, no LLM is configured.

Setting up the LLM

To enable and configure an LLM, such as OpenAI’s GPT, follow these steps: 1. Set the LLM Provider:
2. Provide the API Key:

Default Configurations

The SDK uses the following default configurations:

User Management

Get User Role

Retrieve the current user’s role.
Function Signature

Get Usage Status

Get current API usage statistics and limits.
Function Signature

Get Login Activity

Return the distinct IP addresses that have accessed your workspace, with geolocation and access timestamps, most recent first.
Function Signature

List LLM Models

Return the available model names for a given LLM provider. The request body carries the provider name plus any provider-specific credentials needed to query its model catalog.
Function Signature
Parameters

Save User Config

Persist user-scoped configuration on the server (for example UI preferences).
Function Signature
ParametersReturnsA string status or message from the server.

Load User Config

Load user-scoped configuration from the server.
Function Signature
ParametersReturnsA dictionary of configuration key-value pairs.

Complete Configuration Example