The client accepts max_items on actor.start(), actor.call() and task.call(), but Actor.start(), Actor.call() and Actor.call_task() don't expose it. A pay-per-result child run can't be capped without going through Actor.apify_client. The JS SDK passes it through, because its option types extend the client's.
Add max_items: int | None = None to the three methods and forward it to the client.
✍️ Drafted by Claude Code
The client accepts
max_itemsonactor.start(),actor.call()andtask.call(), butActor.start(),Actor.call()andActor.call_task()don't expose it. A pay-per-result child run can't be capped without going throughActor.apify_client. The JS SDK passes it through, because its option types extend the client's.Add
max_items: int | None = Noneto the three methods and forward it to the client.✍️ Drafted by Claude Code