Home / Class/ TGI_MESSAGE Class — langchain Architecture

TGI_MESSAGE Class — langchain Architecture

Architecture documentation for the TGI_MESSAGE class in huggingface.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f3c658c5_b81a_94d3_b33e_fcda7590517f["TGI_MESSAGE"]
  d84d1503_7d4c_e393_0d48_409c5faa5e2d["huggingface.py"]
  f3c658c5_b81a_94d3_b33e_fcda7590517f -->|defined in| d84d1503_7d4c_e393_0d48_409c5faa5e2d

Relationship Graph

Source Code

libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py lines 93–98

class TGI_MESSAGE:
    """Message to send to the TextGenInference API."""

    role: str
    content: str
    tool_calls: list[dict]

Frequently Asked Questions

What is the TGI_MESSAGE class?
TGI_MESSAGE is a class in the langchain codebase, defined in libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py.
Where is TGI_MESSAGE defined?
TGI_MESSAGE is defined in libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py at line 93.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free