Skip to content

docs: update evaluator SDK Python async examples#4775

Merged
sineha-mani merged 3 commits into
mainfrom
docs-evaluators-await
Jul 7, 2026
Merged

docs: update evaluator SDK Python async examples#4775
sineha-mani merged 3 commits into
mainfrom
docs-evaluators-await

Conversation

@sineha-mani

Copy link
Copy Markdown
Contributor

Summary

  • Update Python evaluator SDK examples to use await with Client().evaluators methods.
  • Add notes clarifying that current Python evaluator methods are async and should run inside an async function.
  • Adjust list examples to await a page or async-iterate the paginator.

Test plan

  • git diff --check

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, sineha-mani! When it's ready for review, please add the relevant reviewers:

  • @katmayb or @fjmorris (LangSmith)

@github-actions github-actions Bot added internal langsmith For docs changes to LangSmith labels Jul 7, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>

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.

Approved pending following change:

In the Prerequisites section, after:

In the following examples, replace placeholders such as <evaluator-uuid> with the corresponding information from LangSmith.

add something like:

All python async examples on this page assume they run inside `async def main(): ... asyncio.run(main())`, as shown in the [create a code evaluator example](#code-evaluator).

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Mintlify preview branch generated: preview-docsev-1783462547-87637e9

Site preview: https://langchain-5e9cc07a-preview-docsev-1783462547-87637e9.mintlify.app

Important

Preview links may take a few minutes to start working while the deployment finishes.

Changed documentation pages (preview deep links):

@sineha-mani sineha-mani merged commit c3ce753 into main Jul 7, 2026
23 checks passed
@sineha-mani sineha-mani deleted the docs-evaluators-await branch July 7, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal langsmith For docs changes to LangSmith

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants