Class BetaManagedAgentsMemoryStoreResourceParam
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemoryStoreResourceParamParameters for attaching a memory store to an agent session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMemoryStoreResourceParam.BuilderA builder for BetaManagedAgentsMemoryStoreResourceParam.
public final classBetaManagedAgentsMemoryStoreResourceParam.AccessAccess mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.
-
Method Summary
Modifier and Type Method Description final StringmemoryStoreId()The memory store ID (memstore_...). final Optional<BetaManagedAgentsMemoryStoreResourceParam.Access>access()Access mode for the mounted store. final Optional<String>instructions()Per-attachment guidance for the agent on how to use this store. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("memory_store")final JsonField<String>_memoryStoreId()Returns the raw JSON value of memoryStoreId. final JsonField<BetaManagedAgentsMemoryStoreResourceParam.Access>_access()Returns the raw JSON value of access. final JsonField<String>_instructions()Returns the raw JSON value of instructions. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMemoryStoreResourceParam.BuildertoBuilder()final BetaManagedAgentsMemoryStoreResourceParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMemoryStoreResourceParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMemoryStoreResourceParam. final static BetaManagedAgentsMemoryStoreResourceParamof(String memoryStoreId)Returns an immutable instance of BetaManagedAgentsMemoryStoreResourceParam with the required memoryStoreId set to the given value. -
-
Method Detail
-
memoryStoreId
final String memoryStoreId()
The memory store ID (memstore_...). Must belong to the caller's organization and workspace.
-
access
final Optional<BetaManagedAgentsMemoryStoreResourceParam.Access> access()
Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.
-
instructions
final Optional<String> instructions()
Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("memory_store")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_memoryStoreId
final JsonField<String> _memoryStoreId()
Returns the raw JSON value of memoryStoreId.
Unlike memoryStoreId, this method doesn't throw if the JSON field has an unexpected type.
-
_access
final JsonField<BetaManagedAgentsMemoryStoreResourceParam.Access> _access()
Returns the raw JSON value of access.
Unlike access, this method doesn't throw if the JSON field has an unexpected type.
-
_instructions
final JsonField<String> _instructions()
Returns the raw JSON value of instructions.
Unlike instructions, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMemoryStoreResourceParam.Builder toBuilder()
-
validate
final BetaManagedAgentsMemoryStoreResourceParam 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 BetaManagedAgentsMemoryStoreResourceParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMemoryStoreResourceParam.
The following fields are required:
.memoryStoreId()
-
of
final static BetaManagedAgentsMemoryStoreResourceParam of(String memoryStoreId)
Returns an immutable instance of BetaManagedAgentsMemoryStoreResourceParam with the required memoryStoreId set to the given value.
-
-
-
-