1.1.1. datable_ai.core package

1.1.1.1. Submodules

1.1.1.2. datable_ai.core.llm module

class datable_ai.core.llm.LLM_TYPE(value)[source]

Bases: str, Enum

Enum representing the supported LLM types.

ANTHROPIC = 'ANTHROPIC'
AZURE_OPENAI = 'AZURE_OPENAI'
GOOGLE = 'GOOGLE'
OPENAI = 'OPENAI'
datable_ai.core.llm.create_langfuse_handler() LangchainCallbackHandler[source]

Create an instance of the Langfuse handler.

datable_ai.core.llm.create_llm(llm_name: LLM_TYPE) BaseChatModel[source]

Create an instance of the specified LLM type.

Args:

llm_name (LLM_TYPE): The type of LLM to create.

Returns:

BaseChatModel: An instance of the specified LLM type.

Raises:

ValueError: If an unsupported LLM type is provided.

1.1.1.3. Module contents