Skip to main content
View module source on GitHub

ConfigDict

A class representing the configuration for the Maxim SDK. Attributes:

Config

A class representing the configuration for the Maxim SDK. Attributes:

get_config_dict

Converts a Config or ConfigDict to a dictionary with default values. Arguments: Returns: dict[str, Any]: A dictionary containing the configuration parameters with defaults applied.

Maxim

__init__

Initializes a new instance of the Maxim class. Arguments:

enable_prompt_management

Enables prompt management functionality with optional cache configuration. Arguments: Defaults to None (uses existing cache). Returns:

enable_exceptions

Enables or disables exception raising during logging operations. Arguments: Returns:

get_prompt

Retrieves a prompt based on the provided id and rule. Arguments: Returns:

get_prompts

Retrieves all prompts that match the given rule. Arguments: Returns:

get_prompt_chain

Retrieves a prompt chain based on the provided id and rule. Arguments: Returns:

get_folder_by_id

Retrieves a folder based on the provided id. Arguments: Returns:

get_folders

Retrieves all folders that match the given rule. Arguments: Returns:

logger

Creates a logger based on the provided configuration. Arguments: Returns:

create_test_run

Creates a test run builder based on the provided name and workspace id. Arguments: Returns:

chat_completion

Performs a chat completion request using the specified model and messages. Arguments: Returns:

cleanup

Cleans up the Maxim sync thread.