Skip to content

GetMemoryRecord

Source: src/AWS/BedrockAgentCore/GetMemoryRecord.ts

Fetches a single extracted long-term memory record.

Bind a Memory inside a function runtime to call the AgentCore data-plane API against it. Provide AgentCore.GetMemoryRecordHttp on the Function effect to implement the binding.

// init
const getMemoryRecord = yield* AgentCore.GetMemoryRecord(memory);
return {
fetch: Effect.gen(function* () {
// runtime
const result = yield* getMemoryRecord({ memoryRecordId });
return HttpServerResponse.json({ record: result.memoryRecord });
}),
};