Skip to content

ListActors

Source: src/AWS/BedrockAgentCore/ListActors.ts

Lists the actors that have recorded events in the memory.

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

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