Skip to content

[Epic]: agentcore_session - run several jobs in one AgentCore session #954

Open
5 of 16 issues completed
Open

Description

@ParidelPooya

Add agentcore_session: run several jobs in one Amazon Bedrock AgentCore Runtime session from a durable function. It builds on agentcore(), which runs one job per session.

API

agentcore_session creates one session, runs a handler that sends jobs with session.invoke, and stops the session when the handler ends. Jobs share the session's files and memory.

Rules for developers (documented, not enforced)

  1. The runtime idle timeout must be longer than any wait between jobs. Otherwise AgentCore gives the session ID a new microVM, and the session state is lost.
  2. The session timeout must fit the runtime's maxLifetime.
  3. Parallel invoke calls on one session are the developer's responsibility.

Plan

Each item is one small pull request. Items without a dependency can run in parallel.

The twin epic is aws/aws-durable-execution-sdk-js#1245.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageIssue needs triageprojectThe issues with an ongoing project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions