Skip to content

Conversation

alexkuzmik
Copy link
Collaborator

Details

Remove obsolete name parameter from search_prompts method.

Change checklist

  • User facing
  • Documentation update

Issues

  • Resolves #
  • OPIK-NA

Testing

Updated e2e tests

Documentation

Updated docs

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 09:16
@alexkuzmik alexkuzmik requested review from a team as code owners September 4, 2025 09:16
Copy link
Contributor

github-actions bot commented Sep 4, 2025

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the deprecated name parameter from the search_prompts method in the Python SDK, standardizing the API to use only the filter_string parameter with Opik Query Language (OQL) for filtering prompts by name and other criteria.

Key changes:

  • Simplifies the search_prompts API by removing the redundant name parameter
  • Updates all usage to use OQL filtering via filter_string instead
  • Maintains backward compatibility by providing equivalent functionality through OQL syntax

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
sdks/python/src/opik/api_objects/opik_client.py Removes name parameter from search_prompts method signature and implementation
sdks/python/tests/e2e/test_prompt.py Updates test cases to use OQL filtering instead of the removed name parameter
apps/opik-documentation/documentation/fern/docs/prompt_engineering/prompt_management.mdx Updates documentation examples to demonstrate OQL filtering syntax

@alexkuzmik alexkuzmik merged commit cbf5ff4 into main Sep 4, 2025
88 checks passed
@alexkuzmik alexkuzmik deleted the alexkuzmik/improve-search-prompts-api branch September 4, 2025 09:33
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.

1 participant