Skip to content

Commit 9cdcebc

Browse files
authored
docs: Fix python map function in agent md to include Sequence parame… (#444)
…ter. *Issue #, if available:* *Description of changes:* The python map processor has 4 parameters. Updating Agent.MD to reflect the 4th parameter By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent fe2682e commit 9cdcebc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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:) -> dict:
501502
return ctx.step(lambda _: process(item), name=f"process-{index}")
502503

503504
results = context.map(

0 commit comments

Comments
 (0)