From dff0da251f0cda95a453497f63eb2a4545312087 Mon Sep 17 00:00:00 2001 From: Pooya Paridel Date: Wed, 25 Nov 2026 17:33:44 +0000 Subject: [PATCH] docs(extensions): say when an error keeps its class The README said that an AgentCore error that leaves the agentcore_session handler keeps its class. That is true only when the handler raises the error itself. An AgentCore error that crosses a child context that the handler created reaches the caller as ChildContextError, with its message but not its class. So the README now states both cases, as the docstring does. --- packages/aws-durable-execution-sdk-python-extensions/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-durable-execution-sdk-python-extensions/README.md b/packages/aws-durable-execution-sdk-python-extensions/README.md index c97de3f13..99428b87c 100644 --- a/packages/aws-durable-execution-sdk-python-extensions/README.md +++ b/packages/aws-durable-execution-sdk-python-extensions/README.md @@ -343,7 +343,7 @@ The operation records these operations, each with a subtype from `AgentcoreOpera - For each job, such as `draft`: a child context `draft` with the subtype `AgentcoreSessionJob`, a callback `draft.callback` with the subtype `AgentcoreCallback`, and a step `draft.request` with the subtype `AgentcoreRequest`. - `review.stop`, the step that calls `StopRuntimeSession` after the handler, with the subtype `AgentcoreStop`. A failed stop is logged, and does not hide the handler's result or error. -A failed job raises `AgentcoreDeliveryError`, `AgentcoreJobFailedError`, or `AgentcoreTimeoutError`, as from `agentcore`. An AgentCore error that leaves the handler reaches the caller with its own class. Any other error from the handler reaches the caller as `ChildContextError`. +A failed job raises `AgentcoreDeliveryError`, `AgentcoreJobFailedError`, or `AgentcoreTimeoutError`, as from `agentcore`. An AgentCore error that the handler raises itself reaches the caller with its own class. An AgentCore error that crosses a child context that the handler created reaches the caller as `ChildContextError`, with its message but not its class. Any other error from the handler reaches the caller as `ChildContextError`. ### Rules for AgentCore jobs