Allow manually setting ToolCallId of Message #316
-
Bug ReportOverviewI want to build a message with a
To ReproduceSteps to reproduce the behavior:
Expected behaviorI have constructor or a public setter to set the |
Beta Was this translation helpful? Give feedback.
Answered by
StephenHodgson
Jun 3, 2024
Replies: 1 comment 17 replies
-
Is this for assistants or for chat requests? Both should be possible. |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, yes I seem to be confused. for Chat Request it is a bit different since you have to pass the
Tool
object you intend to use back with a newMessage
with theRole.Tool
and the function result.You are correct, There should be a way to set the
ToolCallId
in theMessage.ctr
.That being said, I believe that the
Tool.Id
is prepopulated from the API response object, and you won't actually know which tool id to use yourself. I think atm you have to pass aTool
obj…