Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extend coverage of API #827

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open

feat: extend coverage of API #827

wants to merge 43 commits into from

Conversation

RichardKruemmel
Copy link
Contributor

@RichardKruemmel RichardKruemmel commented Aug 1, 2024

  • fetch_scores
  • fetch_promtps
  • get_datasets
  • get_dataset_items
  • fetch_score

@RichardKruemmel RichardKruemmel self-assigned this Aug 1, 2024
langfuse/api/resources/score/client.py Outdated Show resolved Hide resolved
tests/test_core_sdk.py Show resolved Hide resolved
tests/test_core_sdk.py Outdated Show resolved Hide resolved
@RichardKruemmel RichardKruemmel marked this pull request as ready for review August 2, 2024 18:03
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Disclaimer: Experimental PR review

PR Summary

The pull request extends the Langfuse API coverage by adding new methods for fetching scores, prompts, and datasets, and updating the linking of dataset items.

  • Added fetch_score, fetch_scores, fetch_prompts, get_datasets, and get_dataset_items methods in langfuse/client.py.
  • Updated link method in DatasetItemClient to handle various input types.
  • Added new test cases in tests/test_core_sdk.py to validate the new API endpoints and ensure correct data retrieval.

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

tests/test_core_sdk.py Outdated Show resolved Hide resolved
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