Class MemoryStoreCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class MemoryStoreCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final MemoryStoreCreateParams.Body.Builder name(String name)
The name of the memory store, 1 to 255 characters long, without control characters. Names don't have to be unique in a workspace.
In a session, the store's directory under
/mnt/memory/is based on this name. The name is lowercased and every run of characters other than ASCII letters and digits becomes one hyphen. The session's memory store resource gives the exact path inmount_path.See the memory guide to learn more about how agents access memory stores.
-
name
final MemoryStoreCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final MemoryStoreCreateParams.Body.Builder description(String description)
Free-text description of what the store contains, up to 1,024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent.
-
description
final MemoryStoreCreateParams.Body.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final MemoryStoreCreateParams.Body.Builder metadata(MemoryStoreCreateParams.Metadata metadata)
Key-value pairs for your own use, such as the end user that the store belongs to. The agent doesn't see them.
A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters.
-
metadata
final MemoryStoreCreateParams.Body.Builder metadata(JsonField<MemoryStoreCreateParams.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MemoryStoreCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MemoryStoreCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MemoryStoreCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MemoryStoreCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MemoryStoreCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MemoryStoreCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-