Skip to main content

render-lab-tasks-langsmith

Unreleased Python port: 12 registered tasks from render-lab/render-tasks. Python 3.12+, Render SDK 1.0.1. Requires core 0.1.1 or later.

From the repository root:

uv sync --all-packages --locked

Import render_lab_tasks_langsmith.tasks to register tasks. The package root is inert. Compose the exported app with Workflows.from_workflows; call tasks through ctx.run. Every operation also exports *_impl(ctx, input, *, deps=None) for injection. Client(http, env) accepts a caller-owned HTTPX client, and Deps(langsmith=client) injects it. Default dependencies open and close the HTTP client per invocation; credentials are read lazily at use. No HTTP retries or background vendor polling occur; retry.py owns the durable retry policies.

Task surface

Registered task Python export
langsmith.addFeedback add_feedback
langsmith.awaitReview await_review
langsmith.closeExperiment close_experiment
langsmith.createComparison create_comparison
langsmith.ensureDataset ensure_dataset
langsmith.ensureExperiment ensure_experiment
langsmith.gateExperiment gate_experiment
langsmith.getExperimentStats get_experiment_stats
langsmith.listExamples list_examples
langsmith.logExperimentRuns log_experiment_runs
langsmith.startReview start_review
langsmith.upsertExamples upsert_examples

Typed JSON inputs and results are in types.py. Task names and JSON field names match the pinned source; Python function names use snake_case.

Environment

Variable Requirement
LANGSMITH_API_KEY Required at first API call.
LANGSMITH_ENDPOINT Optional; https://api.smith.langchain.com by default.
LANGSMITH_WORKSPACE_ID Optional workspace ID; forwarded as x-tenant-id for all requests.

Behavior and limits

Uses direct HTTP, including the multipart example endpoint described by langsmith 0.8.1. Upsert lookup filters the requested stable IDs, avoiding the source first-page existence bug. list_examples defaults to a bounded 1000-row page and supplies nextOffset. LANGSMITH_WORKSPACE_ID applies to REST and SDK-replacement paths. These deliberate differences are recorded in ADR-0010. The source uses both SDK paths and /api/v1 REST paths; account routing and multipart support remain unverified. Review progress currently consumes one feedback response; vendor pagination and gate counts across different runs need live validation.

Verification

All registered tasks have hermetic contract fixtures executed independently against the pinned TS implementation. SDK-backed tasks also have explicit HTTP request fixtures. See tests/test_batch3_contracts.py and tests/test_batch3_edges.py. These are not live vendor results.

Vendor webhooks subpaths and other registration-free TS exports are outside this batch unless explicitly listed above. Full registered-task coverage does not imply all supporting exports are ported.

Pending scopes, test resources, replay, and hosted checks are in the live-testing backlog and verification tracker.

Webhook adapter

render_lab_tasks_langsmith.webhooks.langsmith_engine_adapter(on_event, ...) returns a registration-free adapter for render_lab_triggers. The callback receives the verified event and returns {"task": "namespace.task", "args": [event]} or None. The signing credential LANGSMITH_ENGINE_WEBHOOK_SECRET is read inside verification unless provided explicitly. Importing this module does not register tasks. Signature checks use the raw body; live delivery remains in the testing backlog.

Installation

pip install render-lab-tasks-langsmith==0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

render_lab_tasks_langsmith-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

render_lab_tasks_langsmith-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file render_lab_tasks_langsmith-0.1.0.tar.gz.

File metadata

File hashes

Hashes for render_lab_tasks_langsmith-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c80987aa0b0dd5bfe9fa4cf1c9613b8b2345e63555bf81b6dbd683bd85235965
MD5 d8edb41459f86376d17e45f6b52696b1
BLAKE2b-256 95e6abd9af06d9034134d976e703f8c9f416c7062e230c7438f1b22f3eb8b65f

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_langsmith-0.1.0.tar.gz:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file render_lab_tasks_langsmith-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for render_lab_tasks_langsmith-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9f7918b1aeca569cc3a18b169a19afa9bd243c64736fa297a3cc279925f307
MD5 e22b36bbe1c9abbe1b1f325bb6133ca8
BLAKE2b-256 289b0c5cc8d5129c4a2e28ec43a0cf7b3632b1387cb5f5a9bf82540c147947f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_lab_tasks_langsmith-0.1.0-py3-none-any.whl:

Publisher: publish.yml on render-lab/render-tasks-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page