Skip to content

Add Sample_Advanced_ContentSource for document grounding sources#48643

Draft
changjian-wang wants to merge 9 commits intomainfrom
changjian-wang/sample-advanced-contentsource-grouding
Draft

Add Sample_Advanced_ContentSource for document grounding sources#48643
changjian-wang wants to merge 9 commits intomainfrom
changjian-wang/sample-advanced-contentsource-grouding

Conversation

@changjian-wang
Copy link
Copy Markdown
Member

@changjian-wang changjian-wang commented Mar 31, 2026

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Changjian Wang and others added 8 commits March 31, 2026 15:21
Demonstrates ContentSource grounding from document analysis:
- Part 1: DocumentSource from analysis (page, polygon, boundingBox)
- Part 2: ContentSource.parseAll() round-trip, DocumentSource.parse()
  typed method, and D(page) page-only format

Also fixes DocumentSource to support D(page) format (1 param) and
variable polygon point counts (>=3 pairs).
…rceAsync to enhance multi-segment parsing examples and update documentation comments
…andling; remove page-only format examples from samples and tests
…nates; update documentation for clarity on expected format and return values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants