Interface ImportMemoriesOptions
Hierarchy (View Summary)
- TimeoutOptions
- ImportMemoriesOptions
Properties
Optionaltimeout
timeout?: number
Seconds to wait for this call. Defaults to the client's own timeout.
Optionaldomain
domain?: string
The domain to import into. Pass this or ImportMemoriesOptions.sessionId.
OptionalsessionId
sessionId?: string
The session to record the batch against, which supplies the domain.
What MemoryOperations.importMemories takes beyond the memories.
Name a domain or a session — never neither. An import that names neither is refused before anything is sent. Naming a session records the batch as part of that work and supplies the domain; naming a domain alone imports into it directly. Naming both is allowed, and the service takes the domain from the session.
There is deliberately nothing here for a batch size. The service's cap bounds one call, not one import, so the SDK divides a longer batch into calls of that size and sends them in order — the caller hands over whatever it has and never chunks against a number the SDK would otherwise have to publish. The consequence to know is that TimeoutOptions.timeout bounds each of those calls rather than the import as a whole.