Skip to content

ListMemoryExtractionJobs

Source: src/AWS/BedrockAgentCore/ListMemoryExtractionJobs.ts

Lists the memory’s long-term extraction jobs.

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

// init
const listMemoryExtractionJobs = yield* AgentCore.ListMemoryExtractionJobs(memory);
return {
fetch: Effect.gen(function* () {
// runtime
const result = yield* listMemoryExtractionJobs({});
return HttpServerResponse.json({
count: result.jobs.length,
});
}),
};