File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ static OpenAiSystemMessage system(@Nonnull final String message) {
6161 * A convenience method to create a tool message.
6262 *
6363 * @param message the message content.
64+ * @param toolCallId identifier of the tool call this message is responding to.
6465 * @return the tool message.
6566 */
6667 @ Nonnull
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ public class OpenAiToolMessage implements OpenAiMessage {
3232 @ Nonnull private final String toolCallId ;
3333
3434 /**
35- * Creates a new tool message from a string.
35+ * Creates a new tool message from a string and tool call id .
3636 *
3737 * @param message the first message.
38+ * @param toolCallId identifier of the tool call this message is responding to.
3839 */
3940 OpenAiToolMessage (@ Nonnull final String message , @ Nonnull final String toolCallId ) {
4041 this (new OpenAiMessageContent (List .of (new OpenAiTextItem (message ))), toolCallId );
You can’t perform that action at this time.
0 commit comments