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
public final class
FileChunkingStrategy.Deserializer
public final class
FileChunkingStrategy.Serializer
-
Method Summary
-
-
Method Detail
-
staticFileChunkingStrategyObject
final Optional<StaticFileChunkingStrategyObject> staticFileChunkingStrategyObject()
-
otherFileChunkingStrategyObject
final Optional<OtherFileChunkingStrategyObject> otherFileChunkingStrategyObject()
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.
-
isStaticFileChunkingStrategyObject
final Boolean isStaticFileChunkingStrategyObject()
-
isOtherFileChunkingStrategyObject
final Boolean isOtherFileChunkingStrategyObject()
-
asStaticFileChunkingStrategyObject
final StaticFileChunkingStrategyObject asStaticFileChunkingStrategyObject()
-
asOtherFileChunkingStrategyObject
final OtherFileChunkingStrategyObject asOtherFileChunkingStrategyObject()
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()
-
ofStaticFileChunkingStrategyObject
final static FileChunkingStrategy ofStaticFileChunkingStrategyObject(StaticFileChunkingStrategyObject staticFileChunkingStrategyObject)
-
ofOtherFileChunkingStrategyObject
final static FileChunkingStrategy ofOtherFileChunkingStrategyObject(OtherFileChunkingStrategyObject otherFileChunkingStrategyObject)
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.
-
-
-
-