$ids * @return static */ public function filterById(Id|array $ids): static; /** * Filter the assistant entities in the repository by search query. * * @param string $status The status to filter by. * @return static Returns an instance of the repository with the filtered * assistant entities. */ public function search(string $query): static; /** * Sort the assistant entities in the repository. * * @param SortDirection $dir The sort direction. * @param SortParameter|null $param The sort parameter (optional). * @return static Returns an instance of the repository with the sorted * assistant entities. */ public function sort( SortDirection $dir, ?SortParameter $param = null ): static; /** * Retrieve assistant entities starting after a given assistant entity. * * @param AssistantEntity $cursor The assistant entity to start after. * @return Traversable Returns a traversable collection of * assistant entities. */ public function startingAfter(AssistantEntity $cursor): Traversable; /** * Retrieve assistant entities ending before a given assistant entity. * * @param AssistantEntity $cursor The assistant entity to end before. * @return Traversable Returns a traversable collection of * assistant entities. */ public function endingBefore(AssistantEntity $cursor): Traversable; }