llms#

Experimental LLM classes provide access to the large language model (LLM) APIs and services.

Classes

llms.anthropic_functions.TagParser()

Parser for the tool tags.

llms.jsonformer_decoder.JsonFormer

Jsonformer wrapped LLM using HuggingFace Pipeline API.

llms.llamaapi.ChatLlamaAPI

Chat model using the Llama API.

llms.lmformatenforcer_decoder.LMFormatEnforcer

LMFormatEnforcer wrapped LLM using HuggingFace Pipeline API.

llms.rellm_decoder.RELLM

RELLM wrapped LLM using HuggingFace Pipeline API.

Functions

llms.jsonformer_decoder.import_jsonformer()

Lazily import of the jsonformer package.

llms.lmformatenforcer_decoder.import_lmformatenforcer()

Lazily import of the lmformatenforcer package.

llms.ollama_functions.convert_to_ollama_tool(tool)

Convert a tool to an Ollama tool.

llms.ollama_functions.parse_response(message)

Extract function_call from AIMessage.

llms.rellm_decoder.import_rellm()

Lazily import of the rellm package.

Deprecated classes

llms.anthropic_functions.AnthropicFunctions

Deprecated since version 0.0.54: Use langchain_anthropic.experimental.ChatAnthropicTools instead.

llms.ollama_functions.OllamaFunctions

Deprecated since version 0.0.64: Use langchain_ollama.ChatOllama instead.