Skip to content

Add push_dataset helpers to the experimental API client#1848

Merged
dmontagu merged 10 commits intomainfrom
hosted-datasets-pr3-push-dataset
Apr 10, 2026
Merged

Add push_dataset helpers to the experimental API client#1848
dmontagu merged 10 commits intomainfrom
hosted-datasets-pr3-push-dataset

Conversation

@dmontagu
Copy link
Copy Markdown
Contributor

@dmontagu dmontagu commented Apr 8, 2026

Summary

  • add push_dataset(...) and async push_dataset(...) to the experimental datasets API client
  • infer dataset schemas from typed pydantic_evals.Dataset[...] instances and fall back to explicit overrides
  • reject dataset-level evaluators for now, since hosted datasets do not store them yet
  • cover create-new and update-after-409 flows in sync and async tests

Validation

  • uv run ruff check logfire/experimental/api_client.py tests/test_datasets_client.py
  • uv run pyright logfire/experimental/api_client.py tests/test_datasets_client.py
  • uv run pytest tests/test_datasets_client.py -q

@dmontagu dmontagu self-assigned this Apr 8, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 8, 2026

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 82fd970
Status: ✅  Deploy successful!
Preview URL: https://db4b6785.logfire-docs.pages.dev
Branch Preview URL: https://hosted-datasets-pr3-push-dat.logfire-docs.pages.dev

View logs

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@dmontagu dmontagu force-pushed the hosted-datasets-pr3-push-dataset branch from 4aca180 to 9a0416e Compare April 9, 2026 14:59
devin-ai-integration[bot]

This comment was marked as resolved.

Comment thread docs/evaluate/datasets/sdk.md Outdated
Comment thread docs/evaluate/datasets/sdk.md Outdated
Comment thread docs/evaluate/datasets/sdk.md Outdated
Comment thread docs/evaluate/datasets/evaluations.md Outdated
Comment thread docs/evaluate/datasets/evaluations.md
Comment thread docs/evaluate/datasets/evaluations.md Outdated
Comment thread logfire/experimental/api_client.py
dmontagu added 4 commits April 9, 2026 14:30
- Fix NoneType inference in _get_dataset_type_args so Dataset[..., None]
  no longer emits a {"type": "null"} schema (Devin review)
- Remove input_type/output_type/metadata_type overrides from push_dataset;
  rely on the Dataset generic parameters instead
- Document that case-level evaluators round-trip through the API but are
  not yet visible in the Logfire UI
- Reframe evaluations.md around local vs hosted datasets with logfire.configure
  examples, and update pydantic-evals docs links
These fields are no longer needed in the experimental dataset client.
Removes parameters, logic, tests, and documentation references.
@dmontagu dmontagu merged commit b68c838 into main Apr 10, 2026
17 checks passed
@dmontagu dmontagu deleted the hosted-datasets-pr3-push-dataset branch April 10, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants