Package com.openai.models
Class FileChunkingStrategy
-
- All Implemented Interfaces:
public final class FileChunkingStrategy
The strategy used to chunk the file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
FileChunkingStrategy.Visitor
An interface that defines how to map each variant of FileChunkingStrategy to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<StaticFileChunkingStrategyObject>
static_()
final Optional<OtherFileChunkingStrategyObject>
other()
This is returned when the chunking strategy is unknown. final Boolean
isStatic()
final Boolean
isOther()
final StaticFileChunkingStrategyObject
asStatic()
final OtherFileChunkingStrategyObject
asOther()
This is returned when the chunking strategy is unknown. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(FileChunkingStrategy.Visitor<T> visitor)
final FileChunkingStrategy
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileChunkingStrategy
ofStatic(StaticFileChunkingStrategyObject static_)
final static FileChunkingStrategy
ofOther(OtherFileChunkingStrategyObject other)
This is returned when the chunking strategy is unknown. -
-
Method Detail
-
static_
final Optional<StaticFileChunkingStrategyObject> static_()
-
other
final Optional<OtherFileChunkingStrategyObject> other()
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategy
concept was introduced in the API.
-
asStatic
final StaticFileChunkingStrategyObject asStatic()
-
asOther
final OtherFileChunkingStrategyObject asOther()
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategy
concept was introduced in the API.
-
accept
final <T extends Any> T accept(FileChunkingStrategy.Visitor<T> visitor)
-
validate
final FileChunkingStrategy validate()
-
ofStatic
final static FileChunkingStrategy ofStatic(StaticFileChunkingStrategyObject static_)
-
ofOther
final static FileChunkingStrategy ofOther(OtherFileChunkingStrategyObject other)
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategy
concept was introduced in the API.
-
-
-
-