langchain_huggingface.chat_models.huggingface
.TGI_MESSAGE¶
- class langchain_huggingface.chat_models.huggingface.TGI_MESSAGE(role: str, content: str, tool_calls: List[Dict])[源代码]¶
发送给 TextGenInference API 的消息。
属性
role
content
tool_calls
方法
__init__
(role, content, tool_calls)- 参数
role (str) –
content (str) –
tool_calls (List[Dict]) –
- __init__(role: str, content: str, tool_calls: List[Dict]) None ¶
- 参数
role (str) –
content (str) –
tool_calls (List[Dict]) –
- 返回类型
None