chatglm.cpp
chatglm.cpp copied to clipboard
How to construct a ToolCallMessage?
Currently, our system returns an openai compatible restful response to user and accepts restful requests from user. In a tool call conversation, I need to construct a tool call message from a restful request. But, there is no way to construct a ToolCallMessage.
from chatglm_cpp._C import ToolCallMessage
ToolCallMessage() # {TypeError}chatglm_cpp._C.ToolCallMessage: No constructor defined!