Skip to content

Commit 46c3ffd

Browse files
dhegbergyaythomas
authored andcommitted
(docs) Fix python map function in agent md to include Sequence parameter.
1 parent e5824f1 commit 46c3ffd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,10 @@ const allResults = results.getResults();
495495
**Python:**
496496

497497
```python
498+
from collections.abc import Sequence
498499
from aws_durable_execution_sdk_python.concurrency import MapConfig, CompletionConfig
499500

500-
def process_item(ctx: DurableContext, item: dict, index: int) -> dict:
501+
def process_item(ctx: DurableContext, item: dict, index: int, items: Sequence[dict]) -> dict:
501502
return ctx.step(lambda _: process(item), name=f"process-{index}")
502503

503504
results = context.map(

0 commit comments

Comments
 (0)