MemoryBankService class final

A service for managing memories for LLM applications.

Constructors

MemoryBankService({required Client client})
Creates a MemoryBankService using client for transport.
MemoryBankService.fromApiKey([String? apiKey])
Creates a MemoryBankService that does authentication through an API key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
createMemory(CreateMemoryRequest request) Future<Operation<Memory, CreateMemoryOperationMetadata>>
Create a Memory.
deleteMemory(DeleteMemoryRequest request) Future<Operation<Empty, DeleteMemoryOperationMetadata>>
Delete a Memory.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
generateMemories(GenerateMemoriesRequest request) Future<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>>
Generate memories.
getIamPolicy(GetIamPolicyRequest request) Future<Policy>
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
getLocation(GetLocationRequest request) Future<Location>
Gets information about a location.
getMemory(GetMemoryRequest request) Future<Memory>
Get a Memory.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
listLocations(ListLocationsRequest request) Future<ListLocationsResponse>
Lists information about the supported locations for this service.
listMemories(ListMemoriesRequest request) Future<ListMemoriesResponse>
List Memories.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveMemories(RetrieveMemoriesRequest request) Future<RetrieveMemoriesResponse>
Retrieve memories.
setIamPolicy(SetIamPolicyRequest request) Future<Policy>
Sets the access control policy on the specified resource. Replaces any existing policy.
testIamPermissions(TestIamPermissionsRequest request) Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
toString() String
A string representation of this object.
inherited
updateMemory(UpdateMemoryRequest request) Future<Operation<Memory, UpdateMemoryOperationMetadata>>
Update a Memory.
waitOperation(WaitOperationRequest request) Future<Operation<ProtoMessage, ProtoMessage>>
Provides the Operations service functionality in this service.

Operators

operator ==(Object other) bool
The equality operator.
inherited