Class MemoryStoreCreateParams.Body
-
- All Implemented Interfaces:
public final class MemoryStoreCreateParams.BodyRequest parameters for creating a
memory_store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMemoryStoreCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the memory store, 1 to 255 characters long, without control characters. final Optional<String>description()Free-text description of what the store contains, up to 1,024 characters. final Optional<MemoryStoreCreateParams.Metadata>metadata()Key-value pairs for your own use, such as the end user that the store belongs to. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<MemoryStoreCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final Map<String, JsonValue>_additionalProperties()final MemoryStoreCreateParams.Body.BuildertoBuilder()final MemoryStoreCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MemoryStoreCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static MemoryStoreCreateParams.Bodyof(String name)Returns an immutable instance of Body with the required name set to the given value. -
-
Method Detail
-
name
final 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.
-
description
final Optional<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.
-
metadata
final Optional<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.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<MemoryStoreCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MemoryStoreCreateParams.Body.Builder toBuilder()
-
validate
final MemoryStoreCreateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static MemoryStoreCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.name()
-
of
final static MemoryStoreCreateParams.Body of(String name)
-
-
-
-