chatglm.cpp icon indicating copy to clipboard operation
chatglm.cpp copied to clipboard

How to construct a ToolCallMessage?

Open codingl2k1 opened this issue 1 year ago • 0 comments

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!

codingl2k1 avatar Dec 20 '23 04:12 codingl2k1