Skip to content

Commit c6f67bb

Browse files
committed
improve javadocs
1 parent 91da522 commit c6f67bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiMessage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiToolMessage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)