Class MemoryCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class MemoryCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
content
final MemoryCreateParams.Body.Builder content(String content)
The UTF-8 text content of the new memory. Pass
""to create an empty memory.The maximum size is 100 kB (102,400 bytes).
-
content
final MemoryCreateParams.Body.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final MemoryCreateParams.Body.Builder content(JsonField<String> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final MemoryCreateParams.Body.Builder path(String path)
The path of the new memory, such as
/projects/foo/notes.md. Paths are case-sensitive.A path starts with
/and has 1 to 20 segments. A segment can't be empty and can't be.or... A path can't contain control characters, format characters, or the line and paragraph separators U+2028 and U+2029. It must be in Unicode Normalization Form C and at most 1,024 bytes long.
-
path
final MemoryCreateParams.Body.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MemoryCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MemoryCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MemoryCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MemoryCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MemoryCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MemoryCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .path()
-
-
-
-