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)
UTF-8 text content for the new memory. Maximum 100 kB (102,400 bytes). Required; pass
""explicitly to create an empty memory.
-
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)
Hierarchical path for the new memory, e.g.
/projects/foo/notes.md. Must start with/, contain at least one non-empty segment, and be at most 1,024 bytes. Must not contain empty segments,.or..segments, control or format characters, and must be NFC-normalized. Paths are case-sensitive.
-
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()
-
-
-
-