Package com.braintrustdata.api.models
Class PromptData.Prompt.Chat.Message.Assistant
-
- All Implemented Interfaces:
public final class PromptData.Prompt.Chat.Message.Assistant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptData.Prompt.Chat.Message.Assistant.BuilderA builder for Assistant.
public final classPromptData.Prompt.Chat.Message.Assistant.Rolepublic final classPromptData.Prompt.Chat.Message.Assistant.FunctionCall
-
Method Summary
-
-
Method Detail
-
role
final PromptData.Prompt.Chat.Message.Assistant.Role role()
-
functionCall
final Optional<PromptData.Prompt.Chat.Message.Assistant.FunctionCall> functionCall()
-
toolCalls
final Optional<List<ChatCompletionMessageToolCall>> toolCalls()
-
_role
final JsonField<PromptData.Prompt.Chat.Message.Assistant.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_functionCall
final JsonField<PromptData.Prompt.Chat.Message.Assistant.FunctionCall> _functionCall()
Returns the raw JSON value of functionCall.
Unlike functionCall, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_toolCalls
final JsonField<List<ChatCompletionMessageToolCall>> _toolCalls()
Returns the raw JSON value of toolCalls.
Unlike toolCalls, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptData.Prompt.Chat.Message.Assistant.Builder toBuilder()
-
validate
final PromptData.Prompt.Chat.Message.Assistant validate()
-
builder
final static PromptData.Prompt.Chat.Message.Assistant.Builder builder()
Returns a mutable builder for constructing an instance of Assistant.
The following fields are required:
.role()
-
-
-
-