You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Optional. Indicates whether natural language memory generation should be disabled for all requests. By default, natural language memory generation is enabled. Set this to `true` when you only want to generate structured memories. */
469
+
disableNaturalLanguageMemories?: boolean;
452
470
}
453
471
454
472
/** Configuration for how to generate memories. */
/** Required. Represents the ID of the schema. Must be 1-63 characters, start with a lowercase letter, and consist of lowercase letters, numbers, and hyphens. */
507
+
id?: string;
508
+
/** Required. Represents the OpenAPI schema of the structured memories. The schema `type` cannot be `ARRAY` when `memory_type` is `STRUCTURED_PROFILE`. */
509
+
schema?: genaiTypes.Schema;
510
+
/** Optional. Represents the type of the structured memories associated with the schema. If not set, then `STRUCTURED_PROFILE` will be used. */
511
+
memoryType?: MemoryType;
512
+
}
513
+
514
+
/** Represents configuration for organizing structured memories for a particular scope. */
515
+
exportdeclareinterfaceStructuredMemoryConfig{
516
+
/** Optional. Represents the scope keys (i.e. 'user_id') for which to use this config. A request's scope must include all of the provided keys for the config to be used (order does not matter). If empty, then the config will be used for all requests that do not have a more specific config. Only one default config is allowed per Memory Bank. */
517
+
scopeKeys?: string[];
518
+
/** Optional. Represents configuration of the structured memories' schemas. */
/** Optional. Configuration for automatic TTL ("time-to-live") of the memories in the Memory Bank. If not set, TTL will not be applied automatically. The TTL can be explicitly set by modifying the `expire_time` of each Memory resource. */
/** Output only. Timestamp when this Memory was most recently updated. */
1030
1076
updateTime?: string;
1077
+
/** Optional. Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided. */
1078
+
memoryType?: MemoryType;
1079
+
/** Optional. Represents the structured content of the memory. */
1080
+
structuredContent?: MemoryStructuredContent;
1031
1081
}
1032
1082
1033
1083
/** Operation that has an agent engine memory as a response. */
/** Name of the agent engine to retrieve memory profiles from. */
1456
+
name: string;
1457
+
/** The scope of the memories to retrieve.
1458
+
1459
+
A memory must have exactly the same scope as the scope provided here to be
1460
+
retrieved (i.e. same keys and values). Order does not matter, but it is
1461
+
case-sensitive. */
1462
+
scope: Record<string,string>;
1463
+
config?: RetrieveMemoryProfilesConfig;
1464
+
}
1465
+
1466
+
/** A memory profile. */
1467
+
exportdeclareinterfaceMemoryProfile{
1468
+
/** Represents the ID of the schema. This ID corresponds to the `schema_id` defined inside the SchemaConfig, under StructuredMemoryCustomizationConfig. */
1469
+
schemaId?: string;
1470
+
/** Represents the profile data. */
1471
+
profile?: Record<string,unknown>;
1472
+
}
1473
+
1474
+
/** The response for retrieving memory profiles. */
1475
+
exportclassRetrieveProfilesResponse{
1476
+
/** The memory profiles. */
1477
+
memoryProfiles?: Record<string,MemoryProfile>;
1478
+
/** The retrieved structured profiles, which match the schemas under the requested scope. The key is the ID of the schema that the profile is linked with, which corresponds to the `schema_id` defined inside the `SchemaConfig`, under `StructuredMemoryCustomizationConfig`. */
/** Identifier. The resource name of the Memory Revision. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}` */
1579
1680
name?: string;
1681
+
/** Output only. Represents the structured value of the memory at the time of revision creation. */
1682
+
structuredData?: Record<string,unknown>;
1580
1683
}
1581
1684
1582
1685
/** Config for listing Agent Engine memory revisions. */
0 commit comments