Skip to content

docs: explain operation nesting trade-offs - #246

Open
yaythomas wants to merge 2 commits into
mainfrom
fix/nesting-documentation
Open

docs: explain operation nesting trade-offs#246
yaythomas wants to merge 2 commits into
mainfrom
fix/nesting-documentation

Conversation

@yaythomas

Copy link
Copy Markdown
Contributor

Summary

  • Document nested and flat map and parallel behavior across TypeScript,
    Python, Java, and C#.
  • Explain the observability, checkpoint, cost, and scale trade-offs.
  • Update equivalent nesting examples for all four SDKs.
  • Document TypeScript summaryGenerator configuration for map and parallel.
  • Complete Python and Java map item-namer coverage, including Java's flat
    nesting restriction.
  • Reconcile checkpointing guidance across the affected pages.

Closes #188.
Closes #244.
Closes #245.

Supersedes #194. Thanks @lyushher for the initial documentation and
discussion that shaped this update.

Validation

  • mdformat --check docs/
  • codespell docs/
  • python3 scripts/vendor_mermaid.py --check
  • python3 scripts/vendor_glightbox.py --check
  • python3 scripts/check_example_refs.py
  • zensical build --clean
  • Hidden-character scan
  • Python example syntax checks
  • Four-language nesting configuration smoke checks
  • git diff --check

An independent review completed with no actionable findings.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Document nested and flat behavior for map and parallel operations across
TypeScript, Python, Java, and C#.

Update configuration examples and reconcile checkpointing guidance.
Document TypeScript summary generators and Python and Java item naming.

Closes #188
Closes #244
Closes #245

Builds on the initial documentation and discussion by @lyushher in #194.
- Use the released generic MapConfig<TItem> in the C# examples and the
  map.md C# API block, and correct the C# map completion default to
  AllSuccessful() in the API block, factory list, and strategy table.
- Fix the Java map example, which failed to compile because
  HttpClient.send throws checked IOException and InterruptedException.
- Return get_results() from the Python map examples so they match their
  list[str] annotations and the other three languages.
- Add Python and Java item-namer examples and document the typed Java
  itemNamer overload, completing four-language naming coverage.
- Clarify both checkpointing preambles, which claimed the
  language-specific details describe nested mode while the C# tabs
  describe nested and flat.
@yaythomas
yaythomas had a problem deploying to ai-pr-review-runtime August 13, 2026 21:12 — with GitHub Actions Failure
@yaythomas
yaythomas had a problem deploying to ai-pr-review-runtime August 13, 2026 21:12 — with GitHub Actions Failure
Each item runs in its own [child context](child-context.md) and checkpoints its result
independently as it completes.
Each item runs in its own [child context](child-context.md). The default nested mode
checkpoints that context and its result. Flat mode omits the per-item context checkpoint to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants