Class MemoryUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class MemoryUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
content
final MemoryUpdateParams.Body.Builder content(String content)
New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to leave the content unchanged (e.g., for a rename-only update).
-
content
final MemoryUpdateParams.Body.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final MemoryUpdateParams.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 MemoryUpdateParams.Body.Builder path(String path)
New path for the memory (a rename). 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. The memory'sidis preserved across renames. Omit to leave the path unchanged.
-
path
final MemoryUpdateParams.Body.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final MemoryUpdateParams.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.
-
precondition
final MemoryUpdateParams.Body.Builder precondition(BetaManagedAgentsPrecondition precondition)
Optimistic-concurrency precondition: the update applies only if the memory's stored
content_sha256equals the supplied value. On mismatch, the request returnsmemory_precondition_failed_error(HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requestedcontentandpath, the server returns 200 instead of 409.
-
precondition
final MemoryUpdateParams.Body.Builder precondition(JsonField<BetaManagedAgentsPrecondition> precondition)
Sets Builder.precondition to an arbitrary JSON value.
You should usually call Builder.precondition with a well-typed BetaManagedAgentsPrecondition value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MemoryUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MemoryUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MemoryUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MemoryUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MemoryUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MemoryUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-