Class ChatCompletionContentPartText
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartTextLearn about text inputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPartText.BuilderA builder for ChatCompletionContentPartText.
public final classChatCompletionContentPartText.PromptCacheBreakpointMarks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
Method Summary
Modifier and Type Method Description final Stringtext()The text content. final JsonValue_type()The type of the content part. final Optional<ChatCompletionContentPartText.PromptCacheBreakpoint>promptCacheBreakpoint()Marks the exact end of a reusable prompt prefix. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<ChatCompletionContentPartText.PromptCacheBreakpoint>_promptCacheBreakpoint()Returns the raw JSON value of promptCacheBreakpoint. final Map<String, JsonValue>_additionalProperties()final ChatCompletionContentPartText.BuildertoBuilder()final ChatCompletionContentPartTextvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPartText.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionContentPartText. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the content part.
Expected to always return the following:
JsonValue.from("text")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
promptCacheBreakpoint
final Optional<ChatCompletionContentPartText.PromptCacheBreakpoint> promptCacheBreakpoint()
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_promptCacheBreakpoint
final JsonField<ChatCompletionContentPartText.PromptCacheBreakpoint> _promptCacheBreakpoint()
Returns the raw JSON value of promptCacheBreakpoint.
Unlike promptCacheBreakpoint, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPartText.Builder toBuilder()
-
validate
final ChatCompletionContentPartText validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ChatCompletionContentPartText.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionContentPartText.
The following fields are required:
.text()
-
-
-
-