The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
huggingface: docstrings (#23148)
Leonid Ganeline41f7620989a2
diff --git a/libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py b/libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.pyindex 3399715f82..23c3165509 100644--- a/libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py+++ b/libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py@@ -42,12 +42,16 @@ DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful, and honest assistant."@dataclassclass TGI_RESPONSE:+ """Response from the TextGenInference API."""+choices: List[Any]usage: Dict@dataclassclass TGI_MESSAGE:+ """Message to send to the TextGenInference API."""+role: strcontent: strtool_calls: List[Dict]@@ -141,8 +145,7 @@ def _is_huggingface_pipeline(llm: Any) -> bool:class ChatHuggingFace(BaseChatModel):- """- Wrapper for using Hugging Face LLM's as ChatModels.+ """Hugging Face LLM's as ChatModels.Works with `HuggingFaceTextGenInference`, `HuggingFaceEndpoint`,`HuggingFaceHub`, and `HuggingFacePipeline` LLMs.