Skip to content

HTTP rollout session

module: agentcore_rl_toolkit.rollout_session.agentcore_http_session

class AgentCoreHttpSession(RolloutSession)

Section titled “class AgentCoreHttpSession(RolloutSession)”

One Runtime session. The caller owns the application payload.

Constructor

AgentCoreHttpSession(
session_id: str,
session_state: PersistentDict,
*,
agentcore_runtime_arn: str,
)

async run(task: dict) -> RolloutDumpResponse

Section titled “async run(task: dict) -> RolloutDumpResponse”

No-op for this adapter.

Stop this session once; cleanup failures must not hide rollout failures.

with_client(session_id: str, client: AgentCoreHttpClient, session_state: PersistentDict | None = None) -> AgentCoreHttpSession

Section titled “with_client(session_id: str, client: AgentCoreHttpClient, session_state: PersistentDict | None = None) -> AgentCoreHttpSession”

A session over a caller-owned client, which the caller also closes.