Class BetaManagedAgentsMemoryStore.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemoryStore.BuilderA builder for BetaManagedAgentsMemoryStore.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsMemoryStore.Builder id(String id)
The unique ID of the memory store (
memstore_...). Use it to attach the store to a session.
-
id
final BetaManagedAgentsMemoryStore.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaManagedAgentsMemoryStore.Builder archivedAt(OffsetDateTime archivedAt)
When the memory store was archived, in RFC 3339, or
nullif it hasn't been.Archiving can't be undone. An archived store can't be attached to new sessions. You can't create or update its memories or update the store. You can still read and delete its memories, redact their versions, and delete the store.
See the memory guide to learn more about archiving.
-
archivedAt
final BetaManagedAgentsMemoryStore.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsMemoryStore.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaManagedAgentsMemoryStore.Builder createdAt(OffsetDateTime createdAt)
When the memory store was created, in RFC 3339.
-
createdAt
final BetaManagedAgentsMemoryStore.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaManagedAgentsMemoryStore.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. Empty string when unset.
-
description
final BetaManagedAgentsMemoryStore.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 BetaManagedAgentsMemoryStore.Builder metadata(BetaManagedAgentsMemoryStore.Metadata metadata)
Key-value pairs for your own use, such as the end user that the store belongs to.
A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters. You can't filter lists by metadata.
-
metadata
final BetaManagedAgentsMemoryStore.Builder metadata(JsonField<BetaManagedAgentsMemoryStore.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.
-
name
final BetaManagedAgentsMemoryStore.Builder name(String name)
Human-readable name for the store. 1–255 characters. The store's mount-path slug under
/mnt/memory/is derived from this name.
-
name
final BetaManagedAgentsMemoryStore.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.
-
type
final BetaManagedAgentsMemoryStore.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("memory_store")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaManagedAgentsMemoryStore.Builder updatedAt(OffsetDateTime updatedAt)
When the memory store was last changed, in RFC 3339.
Changing its
name,description, ormetadataupdates it. Archiving the store does too. Changes to the store's memories don't.
-
updatedAt
final BetaManagedAgentsMemoryStore.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsMemoryStore.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsMemoryStore.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMemoryStore.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMemoryStore.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMemoryStore.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMemoryStore build()
Returns an immutable instance of BetaManagedAgentsMemoryStore.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .createdAt() .description() .metadata() .name() .updatedAt()
-
-
-
-