Skip to content

Commit 8f088dc

Browse files
authored
[NA] [SDK] Remove name parameter from search_prompts method (#3229)
1 parent 214ea21 commit 8f088dc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sdks/python/src/opik/api_objects/opik_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,14 +1279,11 @@ def get_all_prompts(self, name: str) -> List[Prompt]:
12791279
)
12801280
return self.get_prompt_history(name)
12811281

1282-
def search_prompts(
1283-
self, name: Optional[str] = None, filter_string: Optional[str] = None
1284-
) -> List[Prompt]:
1282+
def search_prompts(self, filter_string: Optional[str] = None) -> List[Prompt]:
12851283
"""
12861284
Retrieve the latest prompt versions for the given search parameters.
12871285
12881286
Parameters:
1289-
name: The substring of the prompt name to search for. If you have an exact name, consider using the `get_prompt` method instead since the name is a unique identifier.
12901287
filter_string: A filter string to narrow down the search using Opik Query Language (OQL).
12911288
The format is: "<COLUMN> <OPERATOR> <VALUE> [AND <COLUMN> <OPERATOR> <VALUE>]*"
12921289

0 commit comments

Comments
 (0)