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,)Methods
Section titled “Methods”async run(task: dict) -> RolloutDumpResponse
Section titled “async run(task: dict) -> RolloutDumpResponse”async setup(task: dict) -> None
Section titled “async setup(task: dict) -> None”No-op for this adapter.
async shutdown() -> None
Section titled “async shutdown() -> None”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.