asRequestFunctionMessage method
Converts a response function message to a request function message, so that it can be used in the next request.
You should pass the response function message's toolCallId
to this method, since it is required when requesting it.
Implementation
RequestFunctionMessage asRequestFunctionMessage({
required String toolCallId,
}) {
return RequestFunctionMessage(
content: this.content,
role: this.role,
toolCallId: toolCallId,
);
}