Class ChatCompletionToolMessageParam
-
- All Implemented Interfaces:
public final class ChatCompletionToolMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatCompletionToolMessageParam.Builder
A builder for ChatCompletionToolMessageParam.
public final class
ChatCompletionToolMessageParam.Content
The contents of the tool message.
-
Method Summary
Modifier and Type Method Description final ChatCompletionToolMessageParam.Content
content()
The contents of the tool message. final JsonValue
_role()
The role of the messages author, in this case tool
.final String
toolCallId()
Tool call that this message is responding to. final JsonField<ChatCompletionToolMessageParam.Content>
_content()
Returns the raw JSON value of content. final JsonField<String>
_toolCallId()
Returns the raw JSON value of toolCallId. final Map<String, JsonValue>
_additionalProperties()
final ChatCompletionToolMessageParam
validate()
final ChatCompletionToolMessageParam.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatCompletionToolMessageParam.Builder
builder()
Returns a mutable builder for constructing an instance of ChatCompletionToolMessageParam. -
-
Method Detail
-
content
final ChatCompletionToolMessageParam.Content content()
The contents of the tool message.
-
_role
final JsonValue _role()
The role of the messages author, in this case
tool
.Expected to always return the following:
JsonValue.from("tool")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
toolCallId
final String toolCallId()
Tool call that this message is responding to.
-
_content
final JsonField<ChatCompletionToolMessageParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_toolCallId
final JsonField<String> _toolCallId()
Returns the raw JSON value of toolCallId.
Unlike toolCallId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ChatCompletionToolMessageParam validate()
-
toBuilder
final ChatCompletionToolMessageParam.Builder toBuilder()
-
builder
final static ChatCompletionToolMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionToolMessageParam.
The following fields are required:
.content() .toolCallId()
-
-
-
-